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

Make CSC{AL,CL}CTDigi::getHits() to return by const reference instead of a copy #30247

Merged
merged 2 commits into from
Jun 16, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion DataFormats/CSCDigi/interface/CSCALCTDigi.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CSCALCTDigi {
void setRun3(const bool isRun3);

// wire hits in this ALCT
WireContainer getHits() const { return hits_; }
const WireContainer& getHits() const { return hits_; }

void setHits(const WireContainer& hits) { hits_ = hits; }

Expand Down
2 changes: 1 addition & 1 deletion DataFormats/CSCDigi/interface/CSCCLCTDigi.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class CSCCLCTDigi {
void setCompCode(const int16_t code) { compCode_ = code; }

// comparator hits in this CLCT
ComparatorContainer getHits() const { return hits_; }
const ComparatorContainer& getHits() const { return hits_; }

void setHits(const ComparatorContainer& hits) { hits_ = hits; }

Expand Down