Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nT2] zero-initialisation of TotemT2Digi members #39149

Merged
merged 1 commit into from
Aug 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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