Skip to content

Commit

Permalink
Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Dildick committed Jul 8, 2020
1 parent 2be9cbd commit 0b74499
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions L1Trigger/CSCTriggerPrimitives/src/CSCGEMMotherboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ CSCCorrelatedLCTDigi CSCGEMMotherboard::constructLCTsGEM(const CSCALCTDigi& alct
p = CSCPart::ME1A;
}

// min pad number is always 0
// max pad number is 191 or 383, depending on the station
assert(gem2.pad(1) >= 0);
assert(gem2.pad(2) >= 0);
assert(gem2.pad(1) < maxPads());
Expand Down Expand Up @@ -175,6 +177,8 @@ CSCCorrelatedLCTDigi CSCGEMMotherboard::constructLCTsGEM(const CSCALCTDigi& alct
thisLCT.setType(CSCCorrelatedLCTDigi::ALCT2GEM);
valid = true;
} else if (clct.isValid() and gem2.isValid() and not alct.isValid()) {
// min roll number is always 1
// max roll number is 8 or 16, depending on the station
assert(gem2.roll() >= GEMDetId::minRollId);
assert(gem2.roll() <= maxRolls());

Expand Down

0 comments on commit 0b74499

Please sign in to comment.