Changeset fb4337d in git for modules/RunPUPPI.cc
- Timestamp:
- Jul 24, 2015, 4:21:46 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 7aea88d
- Parents:
- 29f8a06
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/RunPUPPI.cc
r29f8a06 rfb4337d 131 131 fPVItInputArray->Reset(); 132 132 133 std::vector<Candidate > InputParticles;133 std::vector<Candidate *> InputParticles; 134 134 InputParticles.clear(); 135 135 … … 141 141 // Fill input particles for puppi 142 142 std::vector<RecoObj> puppiInputVector; 143 puppiInputVector.clear(); 143 144 144 145 // Loop on charge track candidate … … 177 178 178 179 puppiInputVector.push_back(curRecoObj); 179 InputParticles.push_back( *candidate);180 InputParticles.push_back(candidate); 180 181 } 181 182 … … 207 208 } 208 209 puppiInputVector.push_back(curRecoObj); 209 InputParticles.push_back( *candidate);210 InputParticles.push_back(candidate); 210 211 } 211 212 … … 247 248 for (std::vector<fastjet::PseudoJet>::iterator it = puppiParticles.begin() ; it != puppiParticles.end() ; it++) { 248 249 if(it->user_index() <= int(InputParticles.size())){ 249 candidate = factory->NewCandidate(); 250 candidate = dynamic_cast<Candidate*>(InputParticles.at(it->user_index()).Clone()); 251 candidate->Momentum.SetXYZT(it->px(),it->py(),it->pz(),it->e()); 250 candidate = static_cast<Candidate *>(InputParticles.at(it->user_index())->Clone()); 251 candidate->Momentum.SetPxPyPzE(it->px(),it->py(),it->pz(),it->e()); 252 252 fOutputArray->Add(candidate); 253 253 if( puppiInputVector.at(it->user_index()).id == 1 or puppiInputVector.at(it->user_index()).id == 2) fOutputTrackArray->Add(candidate);
Note:
See TracChangeset
for help on using the changeset viewer.