Skip to content

Commit 2ed69d4

Browse files
authored
Refactor TrackAlice3 constructor and member variables
Refactored TrackAlice3 constructor to use default member initializers.
1 parent 0406513 commit 2ed69d4

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ struct OnTheFlyTracker {
268268
using TimeEst = o2::dataformats::TimeStampWithError<float, float>;
269269

270270
public:
271-
TrackAlice3() : TrackParCov{}, mcLabel{-1}, timeEst{}, isDecayDau{false}, isWeakDecayDau{false}, isUsedInCascading{0}, nSiliconHits{0}, nTPCHits{0}, trackType{TrackType::kNone} {}
271+
TrackAlice3() = default;
272272
~TrackAlice3() = default;
273273
TrackAlice3(const TrackAlice3& src) = default;
274274
TrackAlice3(const o2::track::TrackParCov& src, const int64_t label,
@@ -289,13 +289,13 @@ struct OnTheFlyTracker {
289289
nTPCHits(nTPCHitsInput),
290290
trackType(trackTypeInput) {}
291291
const TimeEst& getTimeMUS() const { return timeEst; }
292-
int64_t mcLabel;
293-
TimeEst timeEst; ///< time estimate in ns
294-
bool isDecayDau;
295-
bool isWeakDecayDau;
296-
int isUsedInCascading; // 0: not at all, 1: is a cascade, 2: is a bachelor, 3: is a pion, 4: is a proton
297-
int nSiliconHits;
298-
int nTPCHits;
292+
int64_t mcLabel = -1; ///< MC label of the track
293+
TimeEst timeEst{}; ///< time estimate in ns
294+
bool isDecayDau = false; ///< is a decay daughter
295+
bool isWeakDecayDau = false; ///< is a weak decay daughter
296+
int isUsedInCascading = 0; ///< 0: not at all, 1: is a cascade, 2: is a bachelor, 3: is a pion, 4: is a proton
297+
int nSiliconHits = 0; ///< number of silicon hits
298+
int nTPCHits = 0; ///< number of TPC hits
299299
TrackType trackType;
300300
};
301301

0 commit comments

Comments
 (0)