- Timestamp:
- Apr 28, 2016, 11:41:56 AM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 632da30
- Parents:
- 72e0320
- Location:
- modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/ParticlePropagator.cc
r72e0320 r48f7a77 66 66 { 67 67 } 68 69 70 //------------------------------------------------------------------------------ 71 72 TLorentzVector ParticlePropagator::BeamSpotPosition(const TObjArray *array) 73 { 74 Candidate *candidate; 75 Bool_t passed = false; 76 TLorentzVector bs; 77 78 fItInputArray->Reset(); 79 while((candidate = static_cast<Candidate*>(fItInputArray->Next())) && !passed) 80 { 81 if(candidate->IsPU == 0) passed = true; 82 bs = candidate->Position; 83 } 84 85 return bs; 86 87 } 88 89 68 90 69 91 //------------------------------------------------------------------------------ … … 124 146 const Double_t c_light = 2.99792458E8; 125 147 148 const TLorentzVector &bs = BeamSpotPosition(fInputArray); 149 126 150 fItInputArray->Reset(); 127 151 while((candidate = static_cast<Candidate*>(fItInputArray->Next()))) -
modules/ParticlePropagator.h
r72e0320 r48f7a77 35 35 class TClonesArray; 36 36 class TIterator; 37 class TLorentzVector; 37 38 38 39 class ParticlePropagator: public DelphesModule … … 61 62 TObjArray *fMuonOutputArray; //! 62 63 64 TLorentzVector BeamSpotPosition(const TObjArray *array); 65 63 66 ClassDef(ParticlePropagator, 1) 64 67 };
Note:
See TracChangeset
for help on using the changeset viewer.