- Timestamp:
- Oct 15, 2021, 11:37:55 AM (3 years ago)
- Branches:
- master
- Children:
- 10c0ebe
- Parents:
- 83e77ee
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/DualReadoutCalorimeter.cc
r83e77ee reee94204 510 510 if(!fTower) return; 511 511 512 513 512 // if no hadronic energy, use ECAL resolution 514 513 if (fHCalTowerEnergy <= fHCalEnergyMin) … … 528 527 529 528 energy = LogNormal(energy, sigma); 530 //cout<<energy<<","<<ecalEnergy<<","<<hcalEnergy<<endl;531 529 532 530 if(energy < fEnergyMin || energy < fEnergySignificanceMin*sigma) energy = 0.0; … … 561 559 562 560 // check whether barrel or endcap tower 563 if ((fTowerRmax - fTower->Position.Perp()) < 1.e-06 && TMath::Abs(eta) > 0.) 561 562 // endcap 563 if (TMath::Abs(fTower->Position.Pt() - fTowerRmax) > 1.e-06 && TMath::Abs(eta) > 0.){ 564 564 r = fTower->Position.Z()/TMath::SinH(eta); 565 else 565 } 566 // barrel 567 else { 566 568 r = fTower->Position.Pt(); 569 } 567 570 568 571 fTower->Position.SetPtEtaPhiE(r, eta, phi, time); 569 570 572 fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); 571 573 fTower->L = fTower->Position.Vect().Mag(); 572 //cout<<" tower pt, eta, phi, l, tof: "<<fTower->Momentum.E()<<", "<<fTower->Momentum.Eta()<<", "<<fTower->Momentum.Phi()<<", "<<fTower->L<<", "<<fTower->Position.T()/2.99792458E2<<endl;573 574 574 575 fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); -
modules/SimpleCalorimeter.cc
r83e77ee reee94204 450 450 pt = energy / TMath::CosH(eta); 451 451 452 // check whether barrel or endcap tower453 if ( (fTowerRmax - fTower->Position.Perp()) < 1.e-06 && TMath::Abs(eta) > 0.)452 // endcap 453 if (TMath::Abs(fTower->Position.Pt() - fTowerRmax) > 1.e-06 && TMath::Abs(eta) > 0.){ 454 454 r = fTower->Position.Z()/TMath::SinH(eta); 455 else 455 } 456 // barrel 457 else { 456 458 r = fTower->Position.Pt(); 459 } 457 460 458 461 fTower->Position.SetPtEtaPhiE(r, eta, phi, time);
Note:
See TracChangeset
for help on using the changeset viewer.