Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-06 05:39:19

0001 /** \file
0002  * Impl of GEMDetId
0003  */
0004 
0005 #include "DataFormats/MuonDetId/interface/GEMDetId.h"
0006 
0007 GEMSubDetId::Station GEMDetId::subsystem() const { return GEMSubDetId::station(station()); }
0008 
0009 bool GEMDetId::isGE11() const { return subsystem() == GEMSubDetId::Station::GE11; }
0010 
0011 bool GEMDetId::isGE21() const { return subsystem() == GEMSubDetId::Station::GE21; }
0012 
0013 bool GEMDetId::isME0() const { return subsystem() == GEMSubDetId::Station::ME0; }
0014 
0015 std::ostream& operator<<(std::ostream& os, const GEMDetId& id) {
0016   os << " Re " << id.region() << " Ri " << id.ring() << " St " << id.station() << " La " << id.layer() << " Ch "
0017      << id.chamber() << " Et " << id.roll() << " ";
0018 
0019   return os;
0020 }