Changeset 1338 in svn for trunk/modules/EnergyScale.cc
- Timestamp:
- Nov 21, 2013, 11:38:22 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/EnergyScale.cc
r1141 r1338 2 2 /** \class EnergyScale 3 3 * 4 * Performs transverse momentum resolution smearing.4 * Applies energy scale. 5 5 * 6 6 * $Date$ … … 62 62 // import input array 63 63 64 fInputArray = ImportArray(GetString("InputArray", " ParticlePropagator/stableParticles"));64 fInputArray = ImportArray(GetString("InputArray", "FastJetFinder/jets")); 65 65 fItInputArray = fInputArray->MakeIterator(); 66 66 67 67 // create output array 68 68 69 fOutputArray = ExportArray(GetString("OutputArray", " stableParticles"));69 fOutputArray = ExportArray(GetString("OutputArray", "jets")); 70 70 } 71 71 … … 88 88 while((candidate = static_cast<Candidate*>(fItInputArray->Next()))) 89 89 { 90 momentum = candidate->Momentum; 91 92 scale = fFormula->Eval(momentum.Pt(),momentum.Eta()); 93 94 if(scale>0)momentum *= scale; 95 96 candidate = static_cast<Candidate*>(candidate->Clone()); 97 candidate->Momentum = momentum; 90 momentum = candidate->Momentum; 98 91 99 fOutputArray->Add(candidate);92 scale = fFormula->Eval(momentum.Pt(), momentum.Eta()); 100 93 94 if(scale > 0.0) momentum *= scale; 95 96 candidate = static_cast<Candidate*>(candidate->Clone()); 97 candidate->Momentum = momentum; 98 99 fOutputArray->Add(candidate); 101 100 } 102 101 }
Note:
See TracChangeset
for help on using the changeset viewer.