Changeset 1ad8eca in git
- Timestamp:
- Aug 24, 2021, 11:53:15 AM (3 years ago)
- Branches:
- master
- Children:
- 61dccd3
- Parents:
- 5c257a5
- Location:
- modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TimeOfFlight.cc
r5c257a5 r1ad8eca 52 52 53 53 TimeOfFlight::TimeOfFlight() : 54 fIt TrackInputArray(0), fItVertexInputArray(0)54 fItInputArray(0), fItVertexInputArray(0) 55 55 { 56 56 } … … 71 71 72 72 // import track input array 73 f TrackInputArray = ImportArray(GetString("TrackInputArray", "MuonMomentumSmearing/muons"));74 fIt TrackInputArray = fTrackInputArray->MakeIterator();73 fInputArray = ImportArray(GetString("InputArray", "MuonMomentumSmearing/muons")); 74 fItInputArray = fInputArray->MakeIterator(); 75 75 76 76 // import vertex input array … … 86 86 void TimeOfFlight::Finish() 87 87 { 88 if(fIt TrackInputArray) delete fItTrackInputArray;88 if(fItInputArray) delete fItInputArray; 89 89 if(fItVertexInputArray) delete fItVertexInputArray; 90 90 } … … 103 103 ComputeVertexMomenta(); 104 104 105 fIt TrackInputArray->Reset();106 while((candidate = static_cast<Candidate *>(fIt TrackInputArray->Next())))105 fItInputArray->Reset(); 106 while((candidate = static_cast<Candidate *>(fItInputArray->Next()))) 107 107 { 108 108 … … 116 116 // time at vertex from MC truth 117 117 t_truth = candidateInitialPosition.T() * 1.0E-3 / c_light; 118 119 if (candidate->Position.Vect().Mag() < 5.) continue;120 118 121 119 // various options on how to calculate the vertex time … … 210 208 while((constituent = static_cast<Candidate *>(itGenParts.Next()))) 211 209 { 212 fIt TrackInputArray->Reset();213 while((track = static_cast<Candidate *>(fIt TrackInputArray->Next())))210 fItInputArray->Reset(); 211 while((track = static_cast<Candidate *>(fItInputArray->Next()))) 214 212 { 215 213 // get gen part that generated track -
modules/TimeOfFlight.h
r5c257a5 r1ad8eca 48 48 Int_t fVertexTimeMode; 49 49 50 TIterator *fIt TrackInputArray; //!50 TIterator *fItInputArray; //! 51 51 TIterator *fItVertexInputArray; //! 52 52 53 const TObjArray *f TrackInputArray; //!53 const TObjArray *fInputArray; //! 54 54 const TObjArray *fVertexInputArray; //! 55 55 -
modules/TimeSmearing.cc
r5c257a5 r1ad8eca 52 52 53 53 TimeSmearing::TimeSmearing() : 54 fIt TrackInputArray(0), fResolutionFormula(0)54 fItInputArray(0), fResolutionFormula(0) 55 55 { 56 56 fResolutionFormula = new DelphesFormula; … … 74 74 75 75 // import track input array 76 f TrackInputArray = ImportArray(GetString("TrackInputArray", "MuonMomentumSmearing/muons"));77 fIt TrackInputArray = fTrackInputArray->MakeIterator();76 fInputArray = ImportArray(GetString("InputArray", "MuonMomentumSmearing/muons")); 77 fItInputArray = fInputArray->MakeIterator(); 78 78 79 79 … … 86 86 void TimeSmearing::Finish() 87 87 { 88 if(fIt TrackInputArray) delete fItTrackInputArray;88 if(fItInputArray) delete fItInputArray; 89 89 } 90 90 … … 100 100 const Double_t c_light = 2.99792458E8; 101 101 102 fIt TrackInputArray->Reset();103 while((candidate = static_cast<Candidate *>(fIt TrackInputArray->Next())))102 fItInputArray->Reset(); 103 while((candidate = static_cast<Candidate *>(fItInputArray->Next()))) 104 104 { 105 105 -
modules/TimeSmearing.h
r5c257a5 r1ad8eca 49 49 Int_t fVertexTimeMode; 50 50 51 TIterator *fIt TrackInputArray; //!51 TIterator *fItInputArray; //! 52 52 53 const TObjArray *f TrackInputArray; //!53 const TObjArray *fInputArray; //! 54 54 55 55 TObjArray *fOutputArray; //!
Note:
See TracChangeset
for help on using the changeset viewer.