Changeset 1317 in svn for trunk/modules/JetPileUpSubtractor.cc
- Timestamp:
- Nov 4, 2013, 1:14:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/JetPileUpSubtractor.cc
r1315 r1317 83 83 void JetPileUpSubtractor::Process() 84 84 { 85 Candidate *candidate ;85 Candidate *candidate, *object; 86 86 TLorentzVector momentum, area; 87 87 Double_t eta = 0.0; 88 88 Double_t rho = 0.0; 89 90 if(!fRhoInputArray) return;91 89 92 90 // loop over all input candidates … … 100 98 // find rho 101 99 rho = 0.0; 102 while((candidate = static_cast<Candidate*>(fItRhoInputArray->Next())))100 if(fRhoInputArray) 103 101 { 104 if(eta >= candidate->Edges[0] && eta < candidate->Edges[1]) 102 fItRhoInputArray->Reset(); 103 while((object = static_cast<Candidate*>(fItRhoInputArray->Next()))) 105 104 { 106 rho = candidate->Momentum.Pt(); 105 if(eta >= object->Edges[0] && eta < object->Edges[1]) 106 { 107 rho = object->Momentum.Pt(); 108 } 107 109 } 108 } 110 } 109 111 110 112 // apply pile-up correction … … 112 114 113 115 momentum -= rho * area; 114 116 115 117 if(momentum.Pt() <= fJetPTMin) continue; 116 118
Note:
See TracChangeset
for help on using the changeset viewer.