Changes in modules/SimpleCalorimeter.cc [01f457a:7c0fcd5] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/SimpleCalorimeter.cc
r01f457a r7c0fcd5 147 147 } 148 148 */ 149 150 // read min E value for towers to be saved151 fEnergyMin = GetDouble("TowerMinEnergy", 0.0);152 fSigmaMin = GetDouble("TowerMinSignificance", 0.0);153 154 149 // read resolution formulas 155 150 fResolutionFormula->Compile(GetString("ResolutionFormula", "0")); … … 407 402 time = (fTowerWeightTime < 1.0E-09 ) ? 0 : fTowerTime/fTowerWeightTime; 408 403 409 sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy);410 411 energy = (energy < fEnergyMin || energy < fSigmaMin*sigma) ? 0 : energy;412 413 404 eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]); 414 405 phi = gRandom->Uniform(fTowerEdges[2], fTowerEdges[3]); … … 432 423 // fill energy flow candidates 433 424 energy -= fTrackEnergy; 434 if(energy < fEnergyMin || energy < fSigmaMin*fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy)) energy = 0.0;425 if(energy < 0.0) energy = 0.0; 435 426 436 427 // save energy excess as an energy flow tower
Note:
See TracChangeset
for help on using the changeset viewer.