CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
RPCCompDetId Class Reference

#include <DataFormats/MuonDetId/interface/RPCCompDetId.h>

Inheritance diagram for RPCCompDetId:
DetId

Public Member Functions

std::string dbname () const
 
int disk () const
 
int layer () const
 
bool operator< (const RPCCompDetId &r) const
 Sort Operator based on the name. More...
 
int region () const
 
int ring () const
 
 RPCCompDetId ()
 
 RPCCompDetId (uint32_t id)
 
 RPCCompDetId (DetId id)
 
 RPCCompDetId (int region, int ring, int station, int sector, int layer, int subsector, int type)
 Construct from fully qualified identifier. More...
 
 RPCCompDetId (const std::string &dbname, int type)
 Construct from name stored in DB. More...
 
int sector () const
 
int station () const
 
int subsector () const
 
int type () const
 
int wheel () const
 
- Public Member Functions inherited from DetId
constexpr Detector det () const
 get the detector field from this detid More...
 
constexpr DetId ()
 Create an empty or null id (also for persistence) More...
 
constexpr DetId (uint32_t id)
 Create an id from a raw number. More...
 
constexpr DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
constexpr bool null () const
 is this a null id ? More...
 
constexpr operator uint32_t () const
 
constexpr bool operator!= (DetId id) const
 inequality More...
 
constexpr uint32_t operator() () const
 
constexpr bool operator< (DetId id) const
 comparison More...
 
constexpr bool operator== (DetId id) const
 equality More...
 
constexpr uint32_t rawId () const
 get the raw id More...
 
constexpr int subdetId () const
 get the contents of the subdetector field (not cast into any detector's numbering enum) More...
 

Static Public Attributes

static const int allLayerId = minLayerId - 1
 
static const int allRegionId = minRegionId - 1
 
static const int allRingId = minRingBarrelId - 1
 
static const int allSectorId = minSectorId - 1
 
static const int allStationId = minStationId - 1
 
static const int allSubSectorId = minSubSectorId - 1
 
static const int maxLayerId = 2
 
static const int maxRegionId = 1
 
static const int maxRingBarrelId = 2
 
static const int maxRingForwardId = 3
 
static const int maxSectorBarrelId = 12
 
static const int maxSectorForwardId = 36
 
static const int maxSectorId = 36
 
static const int maxStationId = 4
 
static const int maxSubSectorId = 2
 
static const int minLayerId = 1
 
static const int minRegionId = -1
 
static const int minRingBarrelId = -2
 
static const int minRingForwardId = 1
 
static const int minSectorBarrelId = 1
 
static const int minSectorForwardId = 1
 
static const int minSectorId = 1
 
static const int minStationId = 1
 
static const int minSubSectorId = 1
 
static const int RingBarrelOffSet = 3
 
- Static Public Attributes inherited from DetId
static const int kDetMask = 0xF
 
static const int kDetOffset = 28
 
static const int kSubdetMask = 0x7
 
static const int kSubdetOffset = 25
 

Private Member Functions

std::string gasDBname () const
 
void init (int region, int ring, int station, int sector, int layer, int subsector)
 
void init ()
 
void initGas ()
 

Private Attributes

std::string _dbname
 
int _type
 

Static Private Attributes

static const unsigned int LayerMask_ = 0X3
 
static const int LayerNumBits_ = 2
 
static const int LayerStartBit_ = SectorStartBit_ + SectorNumBits_
 
static const int RegionMask_ = 0X3
 
static const int RegionNumBits_ = 2
 
static const int RegionStartBit_ = 0
 
static const unsigned int RingMask_ = 0X7
 
static const int RingNumBits_ = 3
 
static const int RingStartBit_ = RegionStartBit_ + RegionNumBits_
 
static const unsigned int SectorMask_ = 0X3F
 
static const int SectorNumBits_ = 6
 
static const int SectorStartBit_ = StationStartBit_ + StationNumBits_
 
static const unsigned int StationMask_ = 0X7
 
static const int StationNumBits_ = 3
 
static const int StationStartBit_ = RingStartBit_ + RingNumBits_
 
static const unsigned int SubSectorMask_ = 0X3
 
static const int SubSectorNumBits_ = 2
 
static const int SubSectorStartBit_ = LayerStartBit_ + LayerNumBits_
 

Additional Inherited Members

- Public Types inherited from DetId
enum  Detector {
  Tracker = 1, Muon = 2, Ecal = 3, Hcal = 4,
  Calo = 5, Forward = 6, VeryForward = 7, HGCalEE = 8,
  HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11
}
 
- Protected Attributes inherited from DetId
uint32_t id_
 

Detailed Description

Description: DetId for composite RPC objects

Definition at line 21 of file RPCCompDetId.h.

Constructor & Destructor Documentation

◆ RPCCompDetId() [1/5]

RPCCompDetId::RPCCompDetId ( )

Definition at line 17 of file RPCCompDetId.cc.

std::string _dbname
Definition: RPCCompDetId.h:114
static constexpr int RPC
Definition: MuonSubdetId.h:13
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ RPCCompDetId() [2/5]

RPCCompDetId::RPCCompDetId ( uint32_t  id)

Construct from a packed id. It is required that the Detector part of id is Muon and the SubDet part is RPC, otherwise an exception is thrown.

Definition at line 19 of file RPCCompDetId.cc.

References DetId::det(), Exception, DetId::Muon, MuonSubdetId::RPC, and DetId::subdetId().

19  : DetId(id), _dbname(""), _type(0) {
20  if (det() != DetId::Muon || subdetId() != MuonSubdetId::RPC) {
21  throw cms::Exception("InvalidDetId") << "RPCCompDetId ctor:"
22  << " det: " << det() << " subdet: " << subdetId() << " is not a valid RPC id";
23  }
24 }
std::string _dbname
Definition: RPCCompDetId.h:114
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
static constexpr int RPC
Definition: MuonSubdetId.h:13
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ RPCCompDetId() [3/5]

RPCCompDetId::RPCCompDetId ( DetId  id)

Definition at line 26 of file RPCCompDetId.cc.

References DetId::det(), Exception, DetId::Muon, MuonSubdetId::RPC, and DetId::subdetId().

26  : DetId(id), _dbname(""), _type(0) {
27  if (det() != DetId::Muon || subdetId() != MuonSubdetId::RPC) {
28  throw cms::Exception("InvalidDetId") << "RPCCompDetId ctor:"
29  << " det: " << det() << " subdet: " << subdetId() << " is not a valid RPC id";
30  }
31 }
std::string _dbname
Definition: RPCCompDetId.h:114
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
static constexpr int RPC
Definition: MuonSubdetId.h:13
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ RPCCompDetId() [4/5]

RPCCompDetId::RPCCompDetId ( int  region,
int  ring,
int  station,
int  sector,
int  layer,
int  subsector,
int  type 
)

Construct from fully qualified identifier.

Definition at line 33 of file RPCCompDetId.cc.

References init(), layer(), ring(), sector(), station(), and subsector().

36 }
std::string _dbname
Definition: RPCCompDetId.h:114
int sector() const
Definition: RPCCompDetId.cc:65
int subsector() const
Definition: RPCCompDetId.cc:69
int region() const
Definition: RPCCompDetId.cc:45
int layer() const
Definition: RPCCompDetId.cc:67
int station() const
Definition: RPCCompDetId.cc:56
int ring() const
Definition: RPCCompDetId.cc:47
static constexpr int RPC
Definition: MuonSubdetId.h:13
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

◆ RPCCompDetId() [5/5]

RPCCompDetId::RPCCompDetId ( const std::string &  dbname,
int  type 
)

Construct from name stored in DB.

Definition at line 38 of file RPCCompDetId.cc.

References init().

40  this->init();
41 }
std::string _dbname
Definition: RPCCompDetId.h:114
static constexpr int RPC
Definition: MuonSubdetId.h:13
constexpr DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:38

Member Function Documentation

◆ dbname()

std::string RPCCompDetId::dbname ( ) const

Definition at line 73 of file RPCCompDetId.cc.

References _dbname, a, gasDBname(), AlCaHLTBitMon_QueryRunRegistry::string, and type().

Referenced by initGas(), and operator<().

73  {
75  if (a.empty()) {
76  if (this->type() == 0) {
77  a = this->gasDBname();
78  }
79  }
80  return a;
81 }
std::string _dbname
Definition: RPCCompDetId.h:114
int type() const
Definition: RPCCompDetId.cc:71
std::string gasDBname() const
double a
Definition: hdecay.h:119

◆ disk()

int RPCCompDetId::disk ( ) const

Definition at line 58 of file RPCCompDetId.cc.

References allStationId, ztail::d, region(), and station().

Referenced by gasDBname().

58  {
59  int d = allStationId;
60  if (this->region() != 0)
61  d = this->station();
62  return d;
63 }
int region() const
Definition: RPCCompDetId.cc:45
int station() const
Definition: RPCCompDetId.cc:56
static const int allStationId
Definition: RPCCompDetId.h:63
d
Definition: ztail.py:151

◆ gasDBname()

std::string RPCCompDetId::gasDBname ( ) const
private

Definition at line 201 of file RPCCompDetId.cc.

References funct::abs(), disk(), layer(), region(), ring(), sector(), station(), AlCaHLTBitMon_QueryRunRegistry::string, subsector(), and wheel().

Referenced by dbname().

201  {
202  std::stringstream os;
203  if (this->region() == 0) {
204  // Barrel
205  std::string wsign = "P";
206  if (this->wheel() < 0)
207  wsign = "M";
208  std::string lr = "";
209  if (this->subsector() == 1)
210  lr = "L";
211  if (this->subsector() == 2)
212  lr = "R";
213  os << "W" << wsign << abs(this->wheel()) << "_S" << std::setw(2) << std::setfill('0') << this->sector() << "_RB"
214  << this->station() << lr;
215  } else {
216  // Endcap
217  std::string esign = "P";
218  if (this->region() < 0)
219  esign = "M";
220 
221  os << "E" << esign << this->disk();
222 
223  if (this->disk() == 1) {
224  os << "_R" << std::setw(2) << std::setfill('0') << this->ring() << "_C" << std::setw(2) << std::setfill('0')
225  << this->sector() << "_C" << std::setw(2) << std::setfill('0') << this->sector() + 5;
226  } else {
227  os << "_R" << std::setw(2) << std::setfill('0') << this->ring() << "_R" << std::setw(2) << std::setfill('0')
228  << this->ring() + 1 << "_C" << std::setw(2) << std::setfill('0') << this->sector() << "_C" << std::setw(2)
229  << std::setfill('0') << this->sector() + 2;
230  }
231  std::string lay = "";
232  if (this->layer() == 1)
233  lay = "UP";
234  else if (this->layer() == 2)
235  lay = "DW";
236 
237  os << "_" << lay;
238  }
239  return os.str();
240 }
int sector() const
Definition: RPCCompDetId.cc:65
int subsector() const
Definition: RPCCompDetId.cc:69
int region() const
Definition: RPCCompDetId.cc:45
int layer() const
Definition: RPCCompDetId.cc:67
int disk() const
Definition: RPCCompDetId.cc:58
int station() const
Definition: RPCCompDetId.cc:56
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int wheel() const
Definition: RPCCompDetId.cc:49
int ring() const
Definition: RPCCompDetId.cc:47

◆ init() [1/2]

void RPCCompDetId::init ( int  region,
int  ring,
int  station,
int  sector,
int  layer,
int  subsector 
)
private

Definition at line 83 of file RPCCompDetId.cc.

References allLayerId, allRegionId, allRingId, allSectorId, allStationId, allSubSectorId, Exception, DetId::id_, layer(), LayerMask_, LayerStartBit_, maxLayerId, maxRegionId, HLT_2022v12_cff::maxRing, maxRingBarrelId, maxRingForwardId, maxSectorId, maxStationId, maxSubSectorId, region(), RegionMask_, RegionStartBit_, ring(), RingMask_, RingStartBit_, sector(), SectorMask_, SectorStartBit_, station(), StationMask_, StationStartBit_, subsector(), SubSectorMask_, and SubSectorStartBit_.

83  {
85  if (!region) {
87  }
88 
89  if (region < allRegionId || region > maxRegionId || ring < allRingId || ring > maxRing || station < allStationId ||
90  station > maxStationId || sector < allSectorId || sector > maxSectorId || layer < allLayerId ||
91  layer > maxLayerId || subsector < allSubSectorId || subsector > maxSubSectorId) {
92  throw cms::Exception("InvalidDetId") << "RPCDetId ctor:"
93  << " Invalid parameters: "
94  << " region " << region << " ring " << ring << " station " << station
95  << " sector " << sector << " layer " << layer << " subsector " << subsector
96  << std::endl;
97  }
98  int regionInBits = region - allRegionId;
99  int ringInBits = ring - allRingId;
100  int stationInBits = station - allStationId;
101  int sectorInBits = sector - allSectorId;
102  int layerInBits = layer - allLayerId;
103  int subSectorInBits = subsector - allSubSectorId;
104 
105  id_ |= (regionInBits & RegionMask_) << RegionStartBit_ | (ringInBits & RingMask_) << RingStartBit_ |
106  (stationInBits & StationMask_) << StationStartBit_ | (sectorInBits & SectorMask_) << SectorStartBit_ |
107  (layerInBits & LayerMask_) << LayerStartBit_ | (subSectorInBits & SubSectorMask_) << SubSectorStartBit_;
108 }
static const int RegionMask_
Definition: RPCCompDetId.h:84
int sector() const
Definition: RPCCompDetId.cc:65
static const int maxStationId
Definition: RPCCompDetId.h:62
int subsector() const
Definition: RPCCompDetId.cc:69
static const int allRegionId
Definition: RPCCompDetId.h:52
static const int maxSubSectorId
Definition: RPCCompDetId.h:78
static const int allSubSectorId
Definition: RPCCompDetId.h:79
static const int allRingId
Definition: RPCCompDetId.h:59
static const unsigned int LayerMask_
Definition: RPCCompDetId.h:100
int region() const
Definition: RPCCompDetId.cc:45
static const int allSectorId
Definition: RPCCompDetId.h:71
static const int RegionStartBit_
Definition: RPCCompDetId.h:83
int layer() const
Definition: RPCCompDetId.cc:67
int station() const
Definition: RPCCompDetId.cc:56
static const int StationStartBit_
Definition: RPCCompDetId.h:91
static const int RingStartBit_
Definition: RPCCompDetId.h:87
static const int SubSectorStartBit_
Definition: RPCCompDetId.h:103
static const int allStationId
Definition: RPCCompDetId.h:63
static const int maxLayerId
Definition: RPCCompDetId.h:74
static const int allLayerId
Definition: RPCCompDetId.h:75
static const unsigned int StationMask_
Definition: RPCCompDetId.h:92
static const unsigned int SectorMask_
Definition: RPCCompDetId.h:96
static const int maxRingBarrelId
Definition: RPCCompDetId.h:57
int ring() const
Definition: RPCCompDetId.cc:47
static const unsigned int SubSectorMask_
Definition: RPCCompDetId.h:104
static const int maxRegionId
Definition: RPCCompDetId.h:51
uint32_t id_
Definition: DetId.h:69
static const int maxSectorId
Definition: RPCCompDetId.h:66
static const int maxRingForwardId
Definition: RPCCompDetId.h:55
static const unsigned int RingMask_
Definition: RPCCompDetId.h:88
static const int LayerStartBit_
Definition: RPCCompDetId.h:99
static const int SectorStartBit_
Definition: RPCCompDetId.h:95

◆ init() [2/2]

void RPCCompDetId::init ( void  )
private

Definition at line 110 of file RPCCompDetId.cc.

References initGas(), and type().

Referenced by initGas(), and RPCCompDetId().

110  {
111  if (this->type() == 0) {
112  this->initGas();
113  }
114 }
int type() const
Definition: RPCCompDetId.cc:71

◆ initGas()

void RPCCompDetId::initGas ( )
private

Definition at line 116 of file RPCCompDetId.cc.

References _dbname, allLayerId, allRingId, allSectorId, allStationId, allSubSectorId, visDQMUpload::buf, dbname(), DetId::det(), Exception, init(), layer(), region(), ring(), sector(), station(), AlCaHLTBitMon_QueryRunRegistry::string, DetId::subdetId(), and subsector().

Referenced by init().

116  {
117  std::string buf(this->dbname());
118  // check if the name contains the dcs namespace
119  if (buf.find(':') != buf.npos) {
120  buf = buf.substr(buf.find(':') + 1, buf.npos);
121  }
122  _dbname = buf;
123  // Check if endcap o barrel
124  int region = 0;
125  if (buf.substr(0, 1) == "W") {
126  region = 0;
127  } else if (buf.substr(0, 2) == "EP") {
128  region = 1;
129  } else if (buf.substr(0, 2) == "EM") {
130  region = -1;
131  } else {
132  throw cms::Exception("InvalidDBName")
133  << " RPCCompDetId: " << this->dbname() << " is not a valid DB Name for RPCCompDetId"
134  << " det: " << det() << " subdet: " << subdetId();
135  }
136  int ring = allRingId;
137  int station = allStationId;
138  int sector = allSectorId;
139  int layer = allLayerId;
141  //Barrel
142  if (region == 0) {
143  // Extract the Wheel (named ring)
144  {
145  std::stringstream os;
146  os << buf.substr(2, 1);
147  os >> ring;
148  if (buf.substr(1, 1) == "M") {
149  ring *= -1;
150  }
151  }
152  //Extract the station
153  {
154  std::stringstream os;
155  os << buf.substr(buf.find("RB") + 2, 1);
156  os >> station;
157  }
158  //Extract the sector
159  {
160  std::stringstream os;
161  os << buf.substr(buf.find('S') + 1, 2);
162  os >> sector;
163  }
164  //Extract subsector of sectors 4 and 10
165  {
166  if (buf.find("4L") != buf.npos)
167  subsector = 1;
168  if (buf.find("4R") != buf.npos)
169  subsector = 2;
170  }
171  } else {
172  // Extract the Ring
173  {
174  std::stringstream os;
175  os << buf.substr(buf.find("_R0") + 3, 1);
176  os >> ring;
177  }
178  //Extract the disk (named station)
179  {
180  std::stringstream os;
181  os << buf.substr(2, 1);
182  os >> station;
183  }
184  //Extract the sector or chamber
185  {
186  std::stringstream os;
187  os << buf.substr(buf.find("_C") + 2, 2);
188  os >> sector;
189  }
190  //Extract layer
191  {
192  if (buf.find("UP") != buf.npos)
193  layer = 1;
194  if (buf.find("DW") != buf.npos)
195  layer = 2;
196  }
197  }
198  this->init(region, ring, station, sector, layer, subsector);
199 }
std::string _dbname
Definition: RPCCompDetId.h:114
int sector() const
Definition: RPCCompDetId.cc:65
int subsector() const
Definition: RPCCompDetId.cc:69
static const int allSubSectorId
Definition: RPCCompDetId.h:79
static const int allRingId
Definition: RPCCompDetId.h:59
int region() const
Definition: RPCCompDetId.cc:45
static const int allSectorId
Definition: RPCCompDetId.h:71
int layer() const
Definition: RPCCompDetId.cc:67
int station() const
Definition: RPCCompDetId.cc:56
constexpr Detector det() const
get the detector field from this detid
Definition: DetId.h:46
static const int allStationId
Definition: RPCCompDetId.h:63
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
static const int allLayerId
Definition: RPCCompDetId.h:75
int ring() const
Definition: RPCCompDetId.cc:47
std::string dbname() const
Definition: RPCCompDetId.cc:73

◆ layer()

int RPCCompDetId::layer ( ) const

Definition at line 67 of file RPCCompDetId.cc.

References allLayerId, DetId::id_, createfilelist::int, LayerMask_, and LayerStartBit_.

Referenced by gasDBname(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), init(), initGas(), and RPCCompDetId().

67 { return int((id_ >> LayerStartBit_) & LayerMask_) + allLayerId; }
static const unsigned int LayerMask_
Definition: RPCCompDetId.h:100
static const int allLayerId
Definition: RPCCompDetId.h:75
uint32_t id_
Definition: DetId.h:69
static const int LayerStartBit_
Definition: RPCCompDetId.h:99

◆ operator<()

bool RPCCompDetId::operator< ( const RPCCompDetId r) const

Sort Operator based on the name.

Definition at line 43 of file RPCCompDetId.cc.

References dbname().

43 { return this->dbname() < r.dbname(); }
std::string dbname() const
Definition: RPCCompDetId.cc:73

◆ region()

int RPCCompDetId::region ( ) const

Definition at line 45 of file RPCCompDetId.cc.

References allRegionId, DetId::id_, createfilelist::int, RegionMask_, and RegionStartBit_.

Referenced by disk(), gasDBname(), init(), initGas(), and wheel().

45 { return int((id_ >> RegionStartBit_) & RegionMask_) + allRegionId; }
static const int RegionMask_
Definition: RPCCompDetId.h:84
static const int allRegionId
Definition: RPCCompDetId.h:52
static const int RegionStartBit_
Definition: RPCCompDetId.h:83
uint32_t id_
Definition: DetId.h:69

◆ ring()

int RPCCompDetId::ring ( ) const

Definition at line 47 of file RPCCompDetId.cc.

References allRingId, DetId::id_, createfilelist::int, RingMask_, and RingStartBit_.

Referenced by gasDBname(), geometryXMLparser.CSCAlignable::index(), init(), initGas(), RPCCompDetId(), and wheel().

47 { return int((id_ >> RingStartBit_) & RingMask_) + allRingId; }
static const int allRingId
Definition: RPCCompDetId.h:59
static const int RingStartBit_
Definition: RPCCompDetId.h:87
uint32_t id_
Definition: DetId.h:69
static const unsigned int RingMask_
Definition: RPCCompDetId.h:88

◆ sector()

int RPCCompDetId::sector ( ) const

Definition at line 65 of file RPCCompDetId.cc.

References allSectorId, DetId::id_, createfilelist::int, SectorMask_, and SectorStartBit_.

Referenced by gasDBname(), geometryXMLparser.DTAlignable::index(), init(), initGas(), and RPCCompDetId().

65 { return int((id_ >> SectorStartBit_) & SectorMask_) + allSectorId; }
static const int allSectorId
Definition: RPCCompDetId.h:71
static const unsigned int SectorMask_
Definition: RPCCompDetId.h:96
uint32_t id_
Definition: DetId.h:69
static const int SectorStartBit_
Definition: RPCCompDetId.h:95

◆ station()

int RPCCompDetId::station ( ) const

Definition at line 56 of file RPCCompDetId.cc.

References allStationId, DetId::id_, createfilelist::int, StationMask_, and StationStartBit_.

Referenced by disk(), gasDBname(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), init(), initGas(), and RPCCompDetId().

56 { return int((id_ >> StationStartBit_) & StationMask_) + allStationId; }
static const int StationStartBit_
Definition: RPCCompDetId.h:91
static const int allStationId
Definition: RPCCompDetId.h:63
static const unsigned int StationMask_
Definition: RPCCompDetId.h:92
uint32_t id_
Definition: DetId.h:69

◆ subsector()

int RPCCompDetId::subsector ( ) const

Definition at line 69 of file RPCCompDetId.cc.

References allSubSectorId, DetId::id_, createfilelist::int, SubSectorMask_, and SubSectorStartBit_.

Referenced by gasDBname(), init(), initGas(), and RPCCompDetId().

static const int allSubSectorId
Definition: RPCCompDetId.h:79
static const int SubSectorStartBit_
Definition: RPCCompDetId.h:103
static const unsigned int SubSectorMask_
Definition: RPCCompDetId.h:104
uint32_t id_
Definition: DetId.h:69

◆ type()

int RPCCompDetId::type ( ) const

Definition at line 71 of file RPCCompDetId.cc.

References _type.

Referenced by dbname(), and init().

71 { return _type; }

◆ wheel()

int RPCCompDetId::wheel ( ) const

Definition at line 49 of file RPCCompDetId.cc.

References allRingId, region(), ring(), and w().

Referenced by gasDBname(), and geometryXMLparser.DTAlignable::index().

49  {
50  int w = allRingId;
51  if (this->region() == 0)
52  w = this->ring();
53  return w;
54 }
T w() const
static const int allRingId
Definition: RPCCompDetId.h:59
int region() const
Definition: RPCCompDetId.cc:45
int ring() const
Definition: RPCCompDetId.cc:47

Member Data Documentation

◆ _dbname

std::string RPCCompDetId::_dbname
private

Definition at line 114 of file RPCCompDetId.h.

Referenced by dbname(), and initGas().

◆ _type

int RPCCompDetId::_type
private

Definition at line 115 of file RPCCompDetId.h.

Referenced by SequenceTypes.ExpandVisitor::result(), and type().

◆ allLayerId

const int RPCCompDetId::allLayerId = minLayerId - 1
static

Definition at line 75 of file RPCCompDetId.h.

Referenced by init(), initGas(), and layer().

◆ allRegionId

const int RPCCompDetId::allRegionId = minRegionId - 1
static

Definition at line 52 of file RPCCompDetId.h.

Referenced by init(), and region().

◆ allRingId

const int RPCCompDetId::allRingId = minRingBarrelId - 1
static

Definition at line 59 of file RPCCompDetId.h.

Referenced by init(), initGas(), ring(), and wheel().

◆ allSectorId

const int RPCCompDetId::allSectorId = minSectorId - 1
static

Definition at line 71 of file RPCCompDetId.h.

Referenced by init(), initGas(), and sector().

◆ allStationId

const int RPCCompDetId::allStationId = minStationId - 1
static

Definition at line 63 of file RPCCompDetId.h.

Referenced by disk(), init(), initGas(), and station().

◆ allSubSectorId

const int RPCCompDetId::allSubSectorId = minSubSectorId - 1
static

Definition at line 79 of file RPCCompDetId.h.

Referenced by init(), initGas(), and subsector().

◆ LayerMask_

const unsigned int RPCCompDetId::LayerMask_ = 0X3
staticprivate

Definition at line 100 of file RPCCompDetId.h.

Referenced by init(), and layer().

◆ LayerNumBits_

const int RPCCompDetId::LayerNumBits_ = 2
staticprivate

Definition at line 98 of file RPCCompDetId.h.

◆ LayerStartBit_

const int RPCCompDetId::LayerStartBit_ = SectorStartBit_ + SectorNumBits_
staticprivate

Definition at line 99 of file RPCCompDetId.h.

Referenced by init(), and layer().

◆ maxLayerId

const int RPCCompDetId::maxLayerId = 2
static

Definition at line 74 of file RPCCompDetId.h.

Referenced by init().

◆ maxRegionId

const int RPCCompDetId::maxRegionId = 1
static

Definition at line 51 of file RPCCompDetId.h.

Referenced by init().

◆ maxRingBarrelId

const int RPCCompDetId::maxRingBarrelId = 2
static

Definition at line 57 of file RPCCompDetId.h.

Referenced by init().

◆ maxRingForwardId

const int RPCCompDetId::maxRingForwardId = 3
static

Definition at line 55 of file RPCCompDetId.h.

Referenced by init().

◆ maxSectorBarrelId

const int RPCCompDetId::maxSectorBarrelId = 12
static

Definition at line 68 of file RPCCompDetId.h.

◆ maxSectorForwardId

const int RPCCompDetId::maxSectorForwardId = 36
static

Definition at line 70 of file RPCCompDetId.h.

◆ maxSectorId

const int RPCCompDetId::maxSectorId = 36
static

Definition at line 66 of file RPCCompDetId.h.

Referenced by init().

◆ maxStationId

const int RPCCompDetId::maxStationId = 4
static

Definition at line 62 of file RPCCompDetId.h.

Referenced by init().

◆ maxSubSectorId

const int RPCCompDetId::maxSubSectorId = 2
static

Definition at line 78 of file RPCCompDetId.h.

Referenced by init().

◆ minLayerId

const int RPCCompDetId::minLayerId = 1
static

Definition at line 73 of file RPCCompDetId.h.

◆ minRegionId

const int RPCCompDetId::minRegionId = -1
static

Definition at line 50 of file RPCCompDetId.h.

◆ minRingBarrelId

const int RPCCompDetId::minRingBarrelId = -2
static

Definition at line 56 of file RPCCompDetId.h.

◆ minRingForwardId

const int RPCCompDetId::minRingForwardId = 1
static

Definition at line 54 of file RPCCompDetId.h.

◆ minSectorBarrelId

const int RPCCompDetId::minSectorBarrelId = 1
static

Definition at line 67 of file RPCCompDetId.h.

◆ minSectorForwardId

const int RPCCompDetId::minSectorForwardId = 1
static

Definition at line 69 of file RPCCompDetId.h.

◆ minSectorId

const int RPCCompDetId::minSectorId = 1
static

Definition at line 65 of file RPCCompDetId.h.

◆ minStationId

const int RPCCompDetId::minStationId = 1
static

Definition at line 61 of file RPCCompDetId.h.

◆ minSubSectorId

const int RPCCompDetId::minSubSectorId = 1
static

Definition at line 77 of file RPCCompDetId.h.

◆ RegionMask_

const int RPCCompDetId::RegionMask_ = 0X3
staticprivate

Definition at line 84 of file RPCCompDetId.h.

Referenced by init(), and region().

◆ RegionNumBits_

const int RPCCompDetId::RegionNumBits_ = 2
staticprivate

Definition at line 82 of file RPCCompDetId.h.

◆ RegionStartBit_

const int RPCCompDetId::RegionStartBit_ = 0
staticprivate

Definition at line 83 of file RPCCompDetId.h.

Referenced by init(), and region().

◆ RingBarrelOffSet

const int RPCCompDetId::RingBarrelOffSet = 3
static

Definition at line 58 of file RPCCompDetId.h.

◆ RingMask_

const unsigned int RPCCompDetId::RingMask_ = 0X7
staticprivate

Definition at line 88 of file RPCCompDetId.h.

Referenced by init(), and ring().

◆ RingNumBits_

const int RPCCompDetId::RingNumBits_ = 3
staticprivate

Definition at line 86 of file RPCCompDetId.h.

◆ RingStartBit_

const int RPCCompDetId::RingStartBit_ = RegionStartBit_ + RegionNumBits_
staticprivate

Definition at line 87 of file RPCCompDetId.h.

Referenced by init(), and ring().

◆ SectorMask_

const unsigned int RPCCompDetId::SectorMask_ = 0X3F
staticprivate

Definition at line 96 of file RPCCompDetId.h.

Referenced by init(), and sector().

◆ SectorNumBits_

const int RPCCompDetId::SectorNumBits_ = 6
staticprivate

Definition at line 94 of file RPCCompDetId.h.

◆ SectorStartBit_

const int RPCCompDetId::SectorStartBit_ = StationStartBit_ + StationNumBits_
staticprivate

Definition at line 95 of file RPCCompDetId.h.

Referenced by init(), and sector().

◆ StationMask_

const unsigned int RPCCompDetId::StationMask_ = 0X7
staticprivate

Definition at line 92 of file RPCCompDetId.h.

Referenced by init(), and station().

◆ StationNumBits_

const int RPCCompDetId::StationNumBits_ = 3
staticprivate

Definition at line 90 of file RPCCompDetId.h.

◆ StationStartBit_

const int RPCCompDetId::StationStartBit_ = RingStartBit_ + RingNumBits_
staticprivate

Definition at line 91 of file RPCCompDetId.h.

Referenced by init(), and station().

◆ SubSectorMask_

const unsigned int RPCCompDetId::SubSectorMask_ = 0X3
staticprivate

Definition at line 104 of file RPCCompDetId.h.

Referenced by init(), and subsector().

◆ SubSectorNumBits_

const int RPCCompDetId::SubSectorNumBits_ = 2
staticprivate

Definition at line 102 of file RPCCompDetId.h.

◆ SubSectorStartBit_

const int RPCCompDetId::SubSectorStartBit_ = LayerStartBit_ + LayerNumBits_
staticprivate

Definition at line 103 of file RPCCompDetId.h.

Referenced by init(), and subsector().