Changeset 7aea88d in git
- Timestamp:
- Jul 28, 2015, 3:12:14 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- d1942df
- Parents:
- fb4337d
- git-author:
- Michele Selvaggi <michele.selvaggi@…> (07/28/15 15:11:03)
- git-committer:
- Michele Selvaggi <michele.selvaggi@…> (07/28/15 15:12:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/Isolation.cc
rfb4337d r7aea88d 121 121 fItCandidateInputArray = fCandidateInputArray->MakeIterator(); 122 122 123 rhoInputArrayName = GetString("RhoInputArray", " ");123 rhoInputArrayName = GetString("RhoInputArray", "Rho/rho"); 124 124 if(rhoInputArrayName[0] != '\0') 125 125 { … … 158 158 Double_t rho = 0.0; 159 159 160 if(fRhoInputArray && fRhoInputArray->GetEntriesFast() > 0)161 {162 candidate = static_cast<Candidate*>(fRhoInputArray->At(0));163 rho = candidate->Momentum.Pt();164 }165 166 160 // select isolation objects 167 161 fFilter->Reset(); … … 178 172 const TLorentzVector &candidateMomentum = candidate->Momentum; 179 173 eta = TMath::Abs(candidateMomentum.Eta()); 174 175 // find rho 176 rho = 0.0; 177 if(fRhoInputArray) 178 { 179 fItRhoInputArray->Reset(); 180 while((object = static_cast<Candidate*>(fItRhoInputArray->Next()))) 181 { 182 if(eta >= object->Edges[0] && eta < object->Edges[1]) 183 { 184 rho = object->Momentum.Pt(); 185 } 186 } 187 } 180 188 181 189 // loop over all input tracks
Note:
See TracChangeset
for help on using the changeset viewer.