Changes in modules/SimpleCalorimeter.cc [fc6300d:e5767b57] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/SimpleCalorimeter.cc
rfc6300d re5767b57 150 150 fEnergySignificanceMin = GetDouble("EnergySignificanceMin", 0.0); 151 151 152 // flag that says if current calo is Ecal of Hcal (will then fill correct values of Eem and Ehad)153 fIsEcal = GetBool("IsEcal", false);154 155 152 // switch on or off the dithering of the center of calorimeter towers 156 f SmearTowerCenter = GetBool("SmearTowerCenter", true);153 fDitherTowerCenter = GetBool("DitherTowerCenter", true); 157 154 158 155 // read resolution formulas … … 412 409 if(energy < fEnergyMin || energy < fEnergySignificanceMin*sigma) energy = 0.0; 413 410 414 if(f SmearTowerCenter)411 if(fDitherTowerCenter) 415 412 { 416 413 eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]); … … 427 424 fTower->Position.SetPtEtaPhiE(1.0, eta, phi, time); 428 425 fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); 429 430 fTower->Eem = (!fIsEcal) ? 0 : energy;431 fTower->Ehad = (fIsEcal) ? 0 : energy;432 426 433 427 fTower->Edges[0] = fTowerEdges[0]; … … 453 447 pt = energy / TMath::CosH(eta); 454 448 455 tower->Eem = (!fIsEcal) ? 0 : energy;456 tower->Ehad = (fIsEcal) ? 0 : energy;457 458 449 tower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); 459 450 fEFlowTowerOutputArray->Add(tower);
Note:
See TracChangeset
for help on using the changeset viewer.