@@ -56,10 +56,10 @@ class Track {
5656 // will be accessible when reading back the rootfile using for example the
5757 // monitoring code.
5858 struct TrackState {
59- double refX, refY, refZ ;
60- std::vector<double > params ;
61- std::vector<double > cov ;
62- TrackStateType ts_type ;
59+ double ref_x_, ref_y_, ref_z_ ;
60+ std::vector<double > params_ ;
61+ std::vector<double > cov_ ;
62+ TrackStateType ts_type_ ;
6363 };
6464
6565 Track (){};
@@ -85,8 +85,8 @@ class Track {
8585 int getNhits () const { return n_hits_; }
8686
8787 std::optional<TrackState> getTrackState (TrackStateType tstype) const {
88- for (auto ts : trackStates_ )
89- if (ts.ts_type == tstype) return std::optional<TrackState>(ts);
88+ for (auto ts : track_states_ )
89+ if (ts.ts_type_ == tstype) return std::optional<TrackState>(ts);
9090
9191 return std::nullopt ;
9292 }
@@ -109,11 +109,11 @@ class Track {
109109 void setTrackID (int trackid) { track_id_ = trackid; };
110110 int getTrackID () const { return track_id_; };
111111
112- void setTruthProb (double truthProb) { truthProb_ = truthProb; };
113- double getTruthProb () const { return truthProb_ ; };
112+ void setTruthProb (double truthProb) { truth_prob_ = truthProb; };
113+ double getTruthProb () const { return truth_prob_ ; };
114114
115- void setPdgID (int pdgID) { pdgID_ = pdgID; };
116- int getPdgID () const { return pdgID_ ; };
115+ void setPdgID (int pdgID) { pdg_id_ = pdgID; };
116+ int getPdgID () const { return pdg_id_ ; };
117117
118118 // in units of e
119119 int q () const { return perigee_pars_[4 ] > 0 ? 1 : -1 ; }
@@ -202,10 +202,10 @@ class Track {
202202 double getT () const { return perigee_pars_[5 ]; };
203203
204204 void addTrackState (const ldmx::Track::TrackState& ts) {
205- trackStates_ .push_back (ts);
205+ track_states_ .push_back (ts);
206206 };
207207
208- std::vector<TrackState> getTrackStates () const { return trackStates_ ; }
208+ std::vector<TrackState> getTrackStates () const { return track_states_ ; }
209209
210210 protected:
211211 int n_hits_{0 };
@@ -261,13 +261,13 @@ class Track {
261261 int track_id_{-1 };
262262
263263 // Truth probability
264- double truthProb_ {0 .};
264+ double truth_prob_ {0 .};
265265
266266 // pdgID
267- int pdgID_ {0 };
267+ int pdg_id_ {0 };
268268
269269 // Track States
270- std::vector<TrackState> trackStates_ ;
270+ std::vector<TrackState> track_states_ ;
271271
272272 // / Class declaration needed by the ROOT dictionary.
273273 ClassDef (Track, 4 );
0 commit comments