Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/** \file
 * Impl of GEMDetId
 */

#include "DataFormats/MuonDetId/interface/GEMDetId.h"

GEMSubDetId::Station GEMDetId::subsystem() const { return GEMSubDetId::station(station()); }

bool GEMDetId::isGE11() const { return subsystem() == GEMSubDetId::Station::GE11; }

bool GEMDetId::isGE21() const { return subsystem() == GEMSubDetId::Station::GE21; }

bool GEMDetId::isME0() const { return subsystem() == GEMSubDetId::Station::ME0; }

std::ostream& operator<<(std::ostream& os, const GEMDetId& id) {
  os << " Re " << id.region() << " Ri " << id.ring() << " St " << id.station() << " La " << id.layer() << " Ch "
     << id.chamber() << " Et " << id.roll() << " ";

  return os;
}