Changeset 5eda6767 in git for modules/DualReadoutCalorimeter.cc
- Timestamp:
- Mar 18, 2021, 6:28:10 PM (4 years ago)
- Branches:
- master
- Children:
- cb80e6f
- Parents:
- d1678fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/DualReadoutCalorimeter.cc
rd1678fd r5eda6767 247 247 fItParticleInputArray->Reset(); 248 248 number = -1; 249 fTowerRmax=0.; 249 250 while((particle = static_cast<Candidate*>(fItParticleInputArray->Next()))) 250 251 { 251 252 const TLorentzVector &particlePosition = particle->Position; 252 253 ++number; 254 255 // compute maximum radius (needed in FinalizeTower to assess whether barrel or endcap tower) 256 if (particlePosition.Perp() > fTowerRmax) 257 fTowerRmax=particlePosition.Perp(); 253 258 254 259 pdgCode = TMath::Abs(particle->PID); … … 558 563 } 559 564 560 r = TMath::Sqrt(fTower->Position.X()*fTower->Position.X()+fTower->Position.Y()*fTower->Position.Y()); 565 // check whether barrel or endcap tower 566 if (fTower->Position.Perp() < fTowerRmax && TMath::Abs(eta) > 0.) 567 r = fTower->Position.Z()/TMath::SinH(eta); 568 else 569 r = fTower->Position.Pt(); 561 570 562 571 if(sumWeight > 0.0)
Note:
See TracChangeset
for help on using the changeset viewer.