@@ -57,14 +57,14 @@ struct StepLookups {
5757 std::vector<std::string*> volidtovolname;
5858 std::vector<std::string*> volidtomodule;
5959 std::vector<std::string*> volidtomedium;
60- std::vector<bool > volidtoissensitive; // keep track of which volume is sensitive
60+ std::vector<bool > volidtoissensitive; // keep track of which volume is sensitive
6161 std::vector<int > tracktopdg;
6262 std::vector<int > tracktoparent; // when parent is -1 we mean primary
6363 std::vector<int > stepcounterpertrack;
6464
65- std::vector<int > trackorigin; // the volumeID where the track originates
66- std::vector<float > tracktoenergy; // mapping of trackID to the track energy
67- std::vector<bool > crossedboundary; // if track every crossed a geometry boundary
65+ std::vector<int > trackorigin; // the volumeID where the track originates
66+ std::vector<float > tracktoenergy; // mapping of trackID to the track energy
67+ std::vector<bool > crossedboundary; // if track every crossed a geometry boundary
6868 std::vector<bool > producedsecondary; // if track ever produced a secondary
6969
7070 void insertVolName (int index, std::string const & s) { insertValueAt (index, s, volidtovolname); }
@@ -89,34 +89,38 @@ struct StepLookups {
8989 tracktopdg[trackindex] = pdg;
9090 }
9191
92- void incStepCount (int trackindex) {
92+ void incStepCount (int trackindex)
93+ {
9394 if (trackindex >= stepcounterpertrack.size ()) {
9495 stepcounterpertrack.resize (trackindex + 1 , 0 );
9596 }
9697 stepcounterpertrack[trackindex]++;
9798 }
9899
99- void setProducedSecondary (int trackindex, bool b) {
100+ void setProducedSecondary (int trackindex, bool b)
101+ {
100102 if (trackindex >= producedsecondary.size ()) {
101103 producedsecondary.resize (trackindex + 1 , false );
102104 }
103- producedsecondary[trackindex]= b;
105+ producedsecondary[trackindex] = b;
104106 }
105107
106- void setCrossedBoundary (int trackindex, bool b) {
108+ void setCrossedBoundary (int trackindex, bool b)
109+ {
107110 if (trackindex >= crossedboundary.size ()) {
108111 crossedboundary.resize (trackindex + 1 , false );
109112 }
110- crossedboundary[trackindex]= b;
113+ crossedboundary[trackindex] = b;
111114 }
112115
113- void setTrackEnergy (int trackindex, float e) {
116+ void setTrackEnergy (int trackindex, float e)
117+ {
114118 if (trackindex >= tracktoenergy.size ()) {
115119 tracktoenergy.resize (trackindex + 1 , -1 .);
116120 }
117121 // only take the starting energy
118- if (tracktoenergy[trackindex]== -1 .) {
119- tracktoenergy[trackindex]= e;
122+ if (tracktoenergy[trackindex] == -1 .) {
123+ tracktoenergy[trackindex] = e;
120124 }
121125 }
122126
@@ -143,7 +147,8 @@ struct StepLookups {
143147 tracktoparent[trackindex] = parent;
144148 }
145149
146- void clearTrackLookups () {
150+ void clearTrackLookups ()
151+ {
147152 tracktoparent.clear ();
148153 producedsecondary.clear ();
149154 crossedboundary.clear ();
@@ -192,13 +197,13 @@ struct StepInfo {
192197 float step = 0 .;
193198 float maxstep = 0 .;
194199 int nsecondaries = 0 ;
195- int prodprocess = -1 ; // prod process of current track
196- int nprocessesactive = 0 ; // number of active processes
197- bool stopped = false ; // if track was stopped during last step
198- bool entered = false ; // if track entered volume during last step
199- bool exited = false ; // if track exited volume during last step
200- bool newtrack = false ; // if track is new
201- bool insensitiveRegion = false ; // whether step done in sensitive region
200+ int prodprocess = -1 ; // prod process of current track
201+ int nprocessesactive = 0 ; // number of active processes
202+ bool stopped = false ; // if track was stopped during last step
203+ bool entered = false ; // if track entered volume during last step
204+ bool exited = false ; // if track exited volume during last step
205+ bool newtrack = false ; // if track is new
206+ bool insensitiveRegion = false ; // whether step done in sensitive region
202207
203208 const char * getProdProcessAsString () const ;
204209
@@ -227,5 +232,5 @@ struct MagCallInfo {
227232 static int stepcounter;
228233 ClassDefNV (MagCallInfo, 1 );
229234};
230- }
235+ } // namespace o2
231236#endif
0 commit comments