Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/SimpleCalorimeter.cc

    r01f457a r7c0fcd5  
    147147  }
    148148*/
    149 
    150   // read min E value for towers to be saved
    151   fEnergyMin = GetDouble("TowerMinEnergy", 0.0);
    152   fSigmaMin  = GetDouble("TowerMinSignificance", 0.0);
    153  
    154149  // read resolution formulas
    155150  fResolutionFormula->Compile(GetString("ResolutionFormula", "0"));
     
    407402  time = (fTowerWeightTime < 1.0E-09 ) ? 0 : fTowerTime/fTowerWeightTime;
    408403
    409   sigma = fResolutionFormula->Eval(0.0, fTowerEta, 0.0, energy);
    410  
    411   energy = (energy < fEnergyMin || energy < fSigmaMin*sigma) ? 0 : energy;
    412  
    413404  eta = gRandom->Uniform(fTowerEdges[0], fTowerEdges[1]);
    414405  phi = gRandom->Uniform(fTowerEdges[2], fTowerEdges[3]);
     
    432423  // fill energy flow candidates
    433424  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;
    435426   
    436427  // save energy excess as an energy flow tower
Note: See TracChangeset for help on using the changeset viewer.