@@ -28,14 +28,16 @@ class Digit : public o2::itsmft::Digit
2828{
2929 public:
3030 ~Digit () = default ;
31- Digit (UShort_t chipindex = 0 , UShort_t row = 0 , UShort_t col = 0 , Int_t charge = 0 , double time = 0 .)
32- : o2::itsmft::Digit(chipindex, row, col, charge), mTime (time) {};
31+ Digit (UShort_t chipindex = 0 , UShort_t row = 0 , UShort_t col = 0 , Int_t charge = 0 , double time = 0 ., ULong64_t bc = 0 , Int_t tdc = 0 )
32+ : o2::itsmft::Digit(chipindex, row, col, charge), mTime (time), mBc (bc), mTdc (tdc) {};
3333
3434 // Setters
3535 void setTime (double time) { mTime = time; }
3636
3737 // Getters
3838 double getTime () const { return mTime ; }
39+ ULong64_t getBc () const { return mBc ; }
40+ Int_t getTdc () const { return mTdc ; }
3941
4042 static UInt_t getOrderingKey (UShort_t chipindex, UShort_t row, UShort_t col)
4143 {
@@ -44,6 +46,8 @@ class Digit : public o2::itsmft::Digit
4446
4547 private:
4648 double mTime = 0 .; // /< Measured time (ns)
49+ ULong64_t mBc = 0 ; // /< BC
50+ Int_t mTdc = 0 ; // /< tdc time
4751 ClassDefNV (Digit, 1 );
4852};
4953
@@ -59,9 +63,9 @@ struct McLabelRef {
5963class LabeledDigit : public Digit
6064{
6165 public:
62- LabeledDigit (UShort_t chipindex = 0 , UShort_t row = 0 , UShort_t col = 0 , Int_t charge = 0 , double time = 0 .,
66+ LabeledDigit (UShort_t chipindex = 0 , UShort_t row = 0 , UShort_t col = 0 , Int_t charge = 0 , double time = 0 ., ULong64_t bc = 0 , Int_t tdc = 0 ,
6367 o2::MCCompLabel label = 0 )
64- : Digit(chipindex, row, col, charge, time), mLabel (label) {}
68+ : Digit(chipindex, row, col, charge, time, bc, tdc ), mLabel (label) {}
6569
6670 void setLabel (McLabelRef label) { mLabel = label; }
6771 McLabelRef getLabel () const { return mLabel ; }
0 commit comments