Changes in modules/SimpleCalorimeter.cc [4b9a2dc:82575a3] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/SimpleCalorimeter.cc
r4b9a2dc r82575a3 129 129 } 130 130 */ 131 132 // read min E value for towers to be saved133 fEnergyMin = GetDouble("TowerMinEnergy", 0.0);134 fSigmaMin = GetDouble("TowerMinSignificance", 0.0);135 136 131 // read resolution formulas 137 132 fResolutionFormula->Compile(GetString("ResolutionFormula", "0")); … … 389 384 time = (fTowerWeightTime < 1.0E-09 ) ? 0 : fTowerTime/fTowerWeightTime; 390 385 391 sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy);392 393 energy = (energy < fEnergyMin || energy < fSigmaMin*sigma) ? 0 : energy;394 395 386 eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]); 396 387 phi = gRandom->Uniform(fTowerEdges[2], fTowerEdges[3]); … … 414 405 // fill energy flow candidates 415 406 energy -= fTrackEnergy; 416 if(energy < fEnergyMin || energy < fSigmaMin*fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy)) energy = 0.0;407 if(energy < 0.0) energy = 0.0; 417 408 418 409 // save energy excess as an energy flow tower
Note:
See TracChangeset
for help on using the changeset viewer.