Changeset d1678fd in git for modules/SimpleCalorimeter.cc
- Timestamp:
- Mar 17, 2021, 5:07:53 PM (4 years ago)
- Branches:
- master
- Children:
- 5eda6767
- Parents:
- 9cc5aeb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/SimpleCalorimeter.cc
r9cc5aeb rd1678fd 394 394 fTowerEnergy += energy; 395 395 396 fTowerTime += energy * position.T();397 fTowerTimeWeight += energy ;396 fTowerTime += energy * energy * position.T(); //sigma_t ~ 1/E 397 fTowerTimeWeight += energy * energy; 398 398 399 399 fTower->AddCandidate(particle); 400 fTower->Position = position; 401 400 402 } 401 403 … … 409 411 { 410 412 Candidate *tower, *track, *mother; 411 Double_t energy, neutralEnergy, pt, eta, phi ;413 Double_t energy, neutralEnergy, pt, eta, phi, r; 412 414 Double_t sigma, neutralSigma; 413 415 Double_t time; … … 442 444 443 445 pt = energy / TMath::CosH(eta); 444 445 fTower->Position.SetPtEtaPhiE(1.0, eta, phi, time); 446 r = TMath::Sqrt(fTower->Position.X()*fTower->Position.X()+fTower->Position.Y()*fTower->Position.Y()); 447 448 fTower->Position.SetPtEtaPhiE(r, eta, phi, time); 446 449 fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); 447 450
Note:
See TracChangeset
for help on using the changeset viewer.