11 <<
" is not a valid CSC id";
20 <<
" is not a valid CSC id";
28 if (iendcap < 0 || iendcap > MAX_ENDCAP ||
29 istation < 0 || istation > MAX_STATION ||
30 iring < 0 || iring > MAX_RING ||
31 ichamber < 0 || ichamber > MAX_CHAMBER ||
32 ilayer < 0 || ilayer > MAX_LAYER ) {
34 <<
" Invalid parameters: "
42 id_ |=
init(iendcap, istation, iring, ichamber, ilayer);
56 if(station > 1 && ring > 1 ) {
57 result = ((
static_cast<unsigned>(chamber-3) & 0x7f) / 6) + 1;
60 result = (station != 1) ? ((static_cast<unsigned>(chamber-2) & 0x1f) / 3) + 1 :
61 ((
static_cast<unsigned>(chamber-3) & 0x7f) / 6) + 1;
64 return (result <= 6) ? result : 6;
91 result = (chamber+1) % 3 + 1;
94 result = (chamber+3) % 6 + 4;
101 int i = 2 * istation + iring;
102 if ( istation == 1 ) {
114 os <<
" E:" <<
id.endcap()
115 <<
" S:" <<
id.station()
116 <<
" R:" <<
id.ring()
117 <<
" C:" <<
id.chamber()
118 <<
" L:" <<
id.layer();
void init(int region, int ring, int station, int sector, int layer, int subsector, int roll)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned short iChamberType()
</a ></td >< td >< ahref="RecoLocalMuon_CSCRecHit.html"> csc2DRecHits</a ></td >< tdclass="description"> CSC(x, y) rechits</td >< td >T.Cox</td ></tr >< tr >< td >< a href
int triggerSector() const
Detector det() const
get the detector field from this detid