Skip to content

Commit

Permalink
Update TotemT2Digi.h
Browse files Browse the repository at this point in the history
Zero-initialisation of TotemT2Digi members
  • Loading branch information
forthommel committed Aug 23, 2022
1 parent 4e3f53e commit cda0029
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions DataFormats/TotemReco/interface/TotemT2Digi.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class TotemT2Digi {
public:
explicit TotemT2Digi() = default;
TotemT2Digi() = default;
TotemT2Digi(unsigned char geo, unsigned char id, unsigned char marker, unsigned short le, unsigned short te);

void setLeadingEdge(unsigned short le) { lead_edge_ = le; }
Expand All @@ -21,15 +21,15 @@ class TotemT2Digi {

private:
/// Geo ID
unsigned char geo_id_;
unsigned char geo_id_{0};
/// Channel ID
unsigned char channel_id_;
unsigned char channel_id_{0};
/// Channel marker
unsigned char marker_;
unsigned char marker_{0};
/// Leading edge time
unsigned short lead_edge_;
unsigned short lead_edge_{0};
/// Trailing edge time
unsigned short trail_edge_;
unsigned short trail_edge_{0};
};

bool operator<(const TotemT2Digi& lhs, const TotemT2Digi& rhs);
Expand Down

0 comments on commit cda0029

Please sign in to comment.