Changeset 1ad8eca in git for modules/TimeOfFlight.cc
- Timestamp:
- Aug 24, 2021, 11:53:15 AM (3 years ago)
- Branches:
- master
- Children:
- 61dccd3
- Parents:
- 5c257a5
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.