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
Detector det () const
 get the detector field from this detid More...
 
 DetId ()
 Create an empty or null id (also for persistence) More...
 
 DetId (uint32_t id)
 Create an id from a raw number. More...
 
 DetId (Detector det, int subdet)
 Create an id, filling the detector and subdetector fields as specified. More...
 
bool null () const
 is this a null id ? More...
 
 operator uint32_t () const
 
bool operator!= (DetId id) const
 inequality More...
 
uint32_t operator() () const
 
bool operator< (DetId id) const
 comparison More...
 
bool operator== (DetId id) const
 equality More...
 
uint32_t rawId () const
 get the raw id More...
 
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 kDetOffset = 28
 
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
}
 
- 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::RPCCompDetId ( )

Definition at line 17 of file RPCCompDetId.cc.

std::string _dbname
Definition: RPCCompDetId.h:129
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
static const int RPC
Definition: MuonSubdetId.h:14
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) {
21  throw cms::Exception("InvalidDetId") << "RPCCompDetId ctor:"
22  << " det: " << det()
23  << " subdet: " << subdetId()
24  << " is not a valid RPC id";
25  }
26 }
std::string _dbname
Definition: RPCCompDetId.h:129
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
static const int RPC
Definition: MuonSubdetId.h:14
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
RPCCompDetId::RPCCompDetId ( DetId  id)

Definition at line 30 of file RPCCompDetId.cc.

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

30  :DetId(id),_dbname(""),_type(0) {
32  throw cms::Exception("InvalidDetId") << "RPCCompDetId ctor:"
33  << " det: " << det()
34  << " subdet: " << subdetId()
35  << " is not a valid RPC id";
36  }
37 }
std::string _dbname
Definition: RPCCompDetId.h:129
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
static const int RPC
Definition: MuonSubdetId.h:14
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
RPCCompDetId::RPCCompDetId ( int  region,
int  ring,
int  station,
int  sector,
int  layer,
int  subsector,
int  type 
)

Construct from fully qualified identifier.

Definition at line 41 of file RPCCompDetId.cc.

References init().

47  :
49 {
51 }
type
Definition: HCALResponse.h:21
std::string _dbname
Definition: RPCCompDetId.h:129
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
int sector() const
Definition: RPCCompDetId.cc:98
int subsector() const
int station() const
Definition: RPCCompDetId.cc:84
static const int RPC
Definition: MuonSubdetId.h:14
int layer() const
int region() const
Definition: RPCCompDetId.cc:65
int ring() const
Definition: RPCCompDetId.cc:70
RPCCompDetId::RPCCompDetId ( const std::string &  dbname,
int  type 
)

Construct from name stored in DB.

Definition at line 53 of file RPCCompDetId.cc.

References init().

53  :
55 {
56  this->init();
57 }
type
Definition: HCALResponse.h:21
std::string _dbname
Definition: RPCCompDetId.h:129
DetId()
Create an empty or null id (also for persistence)
Definition: DetId.h:26
static const int RPC
Definition: MuonSubdetId.h:14

Member Function Documentation

std::string RPCCompDetId::dbname ( ) const

Definition at line 121 of file RPCCompDetId.cc.

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

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

121  {
123  if (a.size() == 0){
124  if(this->type() == 0){
125  a=this->gasDBname();
126  }
127  }
128  return a;
129 }
std::string _dbname
Definition: RPCCompDetId.h:129
int type() const
std::string gasDBname() const
double a
Definition: hdecay.h:121
int RPCCompDetId::disk ( ) const

Definition at line 89 of file RPCCompDetId.cc.

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

Referenced by gasDBname().

89  {
90  int d=allStationId;
91  if (this->region()!=0)
92  d=this->station();
93  return d;
94 }
static const int allStationId
Definition: RPCCompDetId.h:72
int station() const
Definition: RPCCompDetId.cc:84
int region() const
Definition: RPCCompDetId.cc:65
std::string RPCCompDetId::gasDBname ( ) const
private

Definition at line 274 of file RPCCompDetId.cc.

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

Referenced by dbname().

274  {
275  std::stringstream os;
276  if(this->region()==0){
277  // Barrel
278  std::string wsign="P";
279  if (this->wheel()<0)wsign= "M";
280  std::string lr="";
281  if (this->subsector()==1) lr="L";
282  if (this->subsector()==2) lr="R";
283  os<<"W"<<wsign<<abs(this->wheel())<<"_S"<<std::setw(2)<<std::setfill('0')<<this->sector()<<"_RB"<<this->station()<<lr;
284  } else {
285  // Endcap
286  std::string esign="P";
287  if (this->region()<0)
288  esign="M";
289 
290  os<<"E"<<esign<<this->disk();
291 
292 
293  if (this->disk()==1){
294  os<<"_R"<<std::setw(2)<<std::setfill('0')<<this->ring()
295  <<"_C"<<std::setw(2)<<std::setfill('0')<<this->sector()
296  <<"_C"<<std::setw(2)<<std::setfill('0')<<this->sector()+5;
297  }else{
298  os<<"_R"<<std::setw(2)<<std::setfill('0')<<this->ring()
299  <<"_R"<<std::setw(2)<<std::setfill('0')<<this->ring()+1
300  <<"_C"<<std::setw(2)<<std::setfill('0')<<this->sector()
301  <<"_C"<<std::setw(2)<<std::setfill('0')<<this->sector()+2;
302 
303  }
304  std::string lay="";
305  if(this->layer()==1)
306  lay="UP";
307  else if (this->layer()==2)
308  lay="DW";
309 
310  os<<"_"<<lay;
311 
312  }
313  return os.str();
314 }
int sector() const
Definition: RPCCompDetId.cc:98
int subsector() const
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
int station() const
Definition: RPCCompDetId.cc:84
int wheel() const
Definition: RPCCompDetId.cc:76
int layer() const
int region() const
Definition: RPCCompDetId.cc:65
int disk() const
Definition: RPCCompDetId.cc:89
int ring() const
Definition: RPCCompDetId.cc:70
void RPCCompDetId::init ( int  region,
int  ring,
int  station,
int  sector,
int  layer,
int  subsector 
)
private

Definition at line 132 of file RPCCompDetId.cc.

References allLayerId, allRegionId, allRingId, allSectorId, allStationId, allSubSectorId, Exception, DetId::id_, LayerMask_, LayerStartBit_, maxLayerId, maxRegionId, hiMixedTripletStep_cff::maxRing, maxRingBarrelId, maxRingForwardId, maxSectorId, maxStationId, maxSubSectorId, RegionMask_, RegionStartBit_, RingMask_, RingStartBit_, SectorMask_, SectorStartBit_, StationMask_, StationStartBit_, SubSectorMask_, and SubSectorStartBit_.

138 {
140  if (!region)
141  {
142  maxRing=maxRingBarrelId;
143  }
144 
145  if ( region < allRegionId || region > maxRegionId ||
146  ring < allRingId || ring > maxRing ||
147  station < allStationId || station > maxStationId ||
148  sector < allSectorId || sector > maxSectorId ||
149  layer < allLayerId || layer > maxLayerId ||
150  subsector < allSubSectorId || subsector > maxSubSectorId ){
151 
152  throw cms::Exception("InvalidDetId") << "RPCDetId ctor:"
153  << " Invalid parameters: "
154  << " region "<<region
155  << " ring "<<ring
156  << " station "<<station
157  << " sector "<<sector
158  << " layer "<<layer
159  << " subsector "<<subsector
160  << std::endl;
161  }
162  int regionInBits = region - allRegionId;
163  int ringInBits = ring - allRingId;
164  int stationInBits = station - allStationId;
165  int sectorInBits = sector - allSectorId;
166  int layerInBits = layer - allLayerId;
167  int subSectorInBits = subsector- allSubSectorId;
168 
169  id_ |= ( regionInBits & RegionMask_) << RegionStartBit_ |
170  ( ringInBits & RingMask_) << RingStartBit_ |
171  ( stationInBits & StationMask_) << StationStartBit_ |
172  ( sectorInBits & SectorMask_) << SectorStartBit_ |
173  ( layerInBits & LayerMask_) << LayerStartBit_ |
174  ( subSectorInBits & SubSectorMask_) << SubSectorStartBit_ ;
175 }
static const int RegionMask_
Definition: RPCCompDetId.h:94
static const int maxStationId
Definition: RPCCompDetId.h:71
static const int allRegionId
Definition: RPCCompDetId.h:61
static const int maxSubSectorId
Definition: RPCCompDetId.h:88
static const int allSubSectorId
Definition: RPCCompDetId.h:89
static const int allRingId
Definition: RPCCompDetId.h:68
static const unsigned int LayerMask_
Definition: RPCCompDetId.h:110
static const int allSectorId
Definition: RPCCompDetId.h:80
static const int RegionStartBit_
Definition: RPCCompDetId.h:93
int sector() const
Definition: RPCCompDetId.cc:98
static const int StationStartBit_
Definition: RPCCompDetId.h:101
static const int RingStartBit_
Definition: RPCCompDetId.h:97
int subsector() const
static const int SubSectorStartBit_
Definition: RPCCompDetId.h:113
static const int allStationId
Definition: RPCCompDetId.h:72
static const int maxLayerId
Definition: RPCCompDetId.h:83
static const int allLayerId
Definition: RPCCompDetId.h:84
static const unsigned int StationMask_
Definition: RPCCompDetId.h:102
int station() const
Definition: RPCCompDetId.cc:84
static const unsigned int SectorMask_
Definition: RPCCompDetId.h:106
static const int maxRingBarrelId
Definition: RPCCompDetId.h:66
static const unsigned int SubSectorMask_
Definition: RPCCompDetId.h:114
static const int maxRegionId
Definition: RPCCompDetId.h:60
uint32_t id_
Definition: DetId.h:55
static const int maxSectorId
Definition: RPCCompDetId.h:75
static const int maxRingForwardId
Definition: RPCCompDetId.h:64
int layer() const
static const unsigned int RingMask_
Definition: RPCCompDetId.h:98
int region() const
Definition: RPCCompDetId.cc:65
static const int LayerStartBit_
Definition: RPCCompDetId.h:109
static const int SectorStartBit_
Definition: RPCCompDetId.h:105
int ring() const
Definition: RPCCompDetId.cc:70
void RPCCompDetId::init ( void  )
private

Definition at line 178 of file RPCCompDetId.cc.

References initGas(), and type().

Referenced by initGas(), and RPCCompDetId().

179 {
180  if (this->type()==0){
181  this->initGas();
182  }
183 }
int type() const
void RPCCompDetId::initGas ( )
private

Definition at line 186 of file RPCCompDetId.cc.

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

Referenced by init().

187 {
188  std::string buf(this->dbname());
189  // check if the name contains the dcs namespace
190  if (buf.find(':')!=buf.npos){
191  buf = buf.substr(buf.find(':')+1,buf.npos);
192  }
193  _dbname=buf;
194  // Check if endcap o barrel
195  int region=0;
196  if(buf.substr(0,1)=="W"){
197  region=0;
198  }else if(buf.substr(0,2)=="EP"){
199  region=1;
200  }else if(buf.substr(0,2)=="EM"){
201  region=-1;
202  }else{
203  throw cms::Exception("InvalidDBName")<<" RPCCompDetId: "<<this->dbname()
204  <<" is not a valid DB Name for RPCCompDetId"
205  << " det: " << det()
206  << " subdet: " << subdetId();
207  }
208  int ring=allRingId;
209  int station = allStationId;
210  int sector=allSectorId;
211  int layer=allLayerId;
213  //Barrel
214  if (region==0) {
215  // Extract the Wheel (named ring)
216  {
217  std::stringstream os;
218  os<<buf.substr(2,1);
219  os>>ring;
220  if (buf.substr(1,1)=="M"){
221  ring *= -1;
222  }
223  }
224  //Extract the station
225  {
226  std::stringstream os;
227  os<<buf.substr(buf.find("RB")+2,1);
228  os>>station;
229  }
230  //Extract the sector
231  {
232  std::stringstream os;
233  os<<buf.substr(buf.find("S")+1,2);
234  os>>sector;
235  }
236  //Extract subsector of sectors 4 and 10
237  {
238  if (buf.find("4L")!=buf.npos)
239  subsector=1;
240  if (buf.find("4R")!=buf.npos)
241  subsector=2;
242  }
243  }else{
244  // Extract the Ring
245  {
246  std::stringstream os;
247  os<<buf.substr(buf.find("_R0")+3,1);
248  os>>ring;
249  }
250  //Extract the disk (named station)
251  {
252  std::stringstream os;
253  os<<buf.substr(2,1);
254  os>>station;
255  }
256  //Extract the sector or chamber
257  {
258  std::stringstream os;
259  os<<buf.substr(buf.find("_C")+2,2);
260  os>>sector;
261  }
262  //Extract layer
263  {
264  if (buf.find("UP")!=buf.npos)
265  layer=1;
266  if (buf.find("DW")!=buf.npos)
267  layer=2;
268  }
269  }
270  this->init(region,ring,station,sector,layer,subsector);
271 }
std::string _dbname
Definition: RPCCompDetId.h:129
static const int allSubSectorId
Definition: RPCCompDetId.h:89
static const int allRingId
Definition: RPCCompDetId.h:68
static const int allSectorId
Definition: RPCCompDetId.h:80
int sector() const
Definition: RPCCompDetId.cc:98
int subsector() const
static const int allStationId
Definition: RPCCompDetId.h:72
std::string dbname() const
static const int allLayerId
Definition: RPCCompDetId.h:84
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
int station() const
Definition: RPCCompDetId.cc:84
int layer() const
Detector det() const
get the detector field from this detid
Definition: DetId.h:35
int region() const
Definition: RPCCompDetId.cc:65
int ring() const
Definition: RPCCompDetId.cc:70
int RPCCompDetId::layer ( ) const

Definition at line 104 of file RPCCompDetId.cc.

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

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

104  {
105  return int((id_>>LayerStartBit_) & LayerMask_) + allLayerId;
106 }
static const unsigned int LayerMask_
Definition: RPCCompDetId.h:110
static const int allLayerId
Definition: RPCCompDetId.h:84
uint32_t id_
Definition: DetId.h:55
static const int LayerStartBit_
Definition: RPCCompDetId.h:109
bool RPCCompDetId::operator< ( const RPCCompDetId r) const

Sort Operator based on the name.

Definition at line 60 of file RPCCompDetId.cc.

References dbname().

60  {
61  return this->dbname()<r.dbname();
62 }
std::string dbname() const
int RPCCompDetId::region ( ) const

Definition at line 65 of file RPCCompDetId.cc.

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

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

65  {
67 }
static const int RegionMask_
Definition: RPCCompDetId.h:94
static const int allRegionId
Definition: RPCCompDetId.h:61
static const int RegionStartBit_
Definition: RPCCompDetId.h:93
uint32_t id_
Definition: DetId.h:55
int RPCCompDetId::ring ( ) const

Definition at line 70 of file RPCCompDetId.cc.

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

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

70  {
71  return int((id_>>RingStartBit_) & RingMask_) + allRingId;
72 }
static const int allRingId
Definition: RPCCompDetId.h:68
static const int RingStartBit_
Definition: RPCCompDetId.h:97
uint32_t id_
Definition: DetId.h:55
static const unsigned int RingMask_
Definition: RPCCompDetId.h:98
int RPCCompDetId::sector ( ) const

Definition at line 98 of file RPCCompDetId.cc.

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

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

98  {
100 }
static const int allSectorId
Definition: RPCCompDetId.h:80
static const unsigned int SectorMask_
Definition: RPCCompDetId.h:106
uint32_t id_
Definition: DetId.h:55
static const int SectorStartBit_
Definition: RPCCompDetId.h:105
int RPCCompDetId::station ( ) const

Definition at line 84 of file RPCCompDetId.cc.

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

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

84  {
86 }
static const int StationStartBit_
Definition: RPCCompDetId.h:101
static const int allStationId
Definition: RPCCompDetId.h:72
static const unsigned int StationMask_
Definition: RPCCompDetId.h:102
uint32_t id_
Definition: DetId.h:55
int RPCCompDetId::subsector ( ) const

Definition at line 110 of file RPCCompDetId.cc.

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

Referenced by gasDBname(), and initGas().

110  {
112 }
static const int allSubSectorId
Definition: RPCCompDetId.h:89
static const int SubSectorStartBit_
Definition: RPCCompDetId.h:113
static const unsigned int SubSectorMask_
Definition: RPCCompDetId.h:114
uint32_t id_
Definition: DetId.h:55
int RPCCompDetId::type ( ) const
int RPCCompDetId::wheel ( ) const

Definition at line 76 of file RPCCompDetId.cc.

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

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

76  {
77  int w=allRingId;
78  if (this->region()==0)
79  w=this->ring();
80  return w;
81 }
const double w
Definition: UKUtility.cc:23
static const int allRingId
Definition: RPCCompDetId.h:68
int region() const
Definition: RPCCompDetId.cc:65
int ring() const
Definition: RPCCompDetId.cc:70

Member Data Documentation

std::string RPCCompDetId::_dbname
private

Definition at line 129 of file RPCCompDetId.h.

Referenced by dbname(), and initGas().

int RPCCompDetId::_type
private
const int RPCCompDetId::allLayerId =minLayerId-1
static

Definition at line 84 of file RPCCompDetId.h.

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

const int RPCCompDetId::allRegionId =minRegionId-1
static

Definition at line 61 of file RPCCompDetId.h.

Referenced by init(), and region().

const int RPCCompDetId::allRingId =minRingBarrelId-1
static

Definition at line 68 of file RPCCompDetId.h.

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

const int RPCCompDetId::allSectorId =minSectorId-1
static

Definition at line 80 of file RPCCompDetId.h.

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

const int RPCCompDetId::allStationId =minStationId-1
static

Definition at line 72 of file RPCCompDetId.h.

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

const int RPCCompDetId::allSubSectorId =minSubSectorId-1
static

Definition at line 89 of file RPCCompDetId.h.

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

const unsigned int RPCCompDetId::LayerMask_ = 0X3
staticprivate

Definition at line 110 of file RPCCompDetId.h.

Referenced by init(), and layer().

const int RPCCompDetId::LayerNumBits_ = 2
staticprivate

Definition at line 108 of file RPCCompDetId.h.

const int RPCCompDetId::LayerStartBit_ = SectorStartBit_+SectorNumBits_
staticprivate

Definition at line 109 of file RPCCompDetId.h.

Referenced by init(), and layer().

const int RPCCompDetId::maxLayerId = 2
static

Definition at line 83 of file RPCCompDetId.h.

Referenced by init().

const int RPCCompDetId::maxRegionId = 1
static

Definition at line 60 of file RPCCompDetId.h.

Referenced by init().

const int RPCCompDetId::maxRingBarrelId = 2
static

Definition at line 66 of file RPCCompDetId.h.

Referenced by init().

const int RPCCompDetId::maxRingForwardId = 3
static

Definition at line 64 of file RPCCompDetId.h.

Referenced by init().

const int RPCCompDetId::maxSectorBarrelId = 12
static

Definition at line 77 of file RPCCompDetId.h.

const int RPCCompDetId::maxSectorForwardId = 36
static

Definition at line 79 of file RPCCompDetId.h.

const int RPCCompDetId::maxSectorId = 36
static

Definition at line 75 of file RPCCompDetId.h.

Referenced by init().

const int RPCCompDetId::maxStationId = 4
static

Definition at line 71 of file RPCCompDetId.h.

Referenced by init().

const int RPCCompDetId::maxSubSectorId = 2
static

Definition at line 88 of file RPCCompDetId.h.

Referenced by init().

const int RPCCompDetId::minLayerId = 1
static

Definition at line 82 of file RPCCompDetId.h.

const int RPCCompDetId::minRegionId = -1
static

Definition at line 59 of file RPCCompDetId.h.

const int RPCCompDetId::minRingBarrelId = -2
static

Definition at line 65 of file RPCCompDetId.h.

const int RPCCompDetId::minRingForwardId = 1
static

Definition at line 63 of file RPCCompDetId.h.

const int RPCCompDetId::minSectorBarrelId = 1
static

Definition at line 76 of file RPCCompDetId.h.

const int RPCCompDetId::minSectorForwardId = 1
static

Definition at line 78 of file RPCCompDetId.h.

const int RPCCompDetId::minSectorId = 1
static

Definition at line 74 of file RPCCompDetId.h.

const int RPCCompDetId::minStationId = 1
static

Definition at line 70 of file RPCCompDetId.h.

const int RPCCompDetId::minSubSectorId = 1
static

Definition at line 87 of file RPCCompDetId.h.

const int RPCCompDetId::RegionMask_ = 0X3
staticprivate

Definition at line 94 of file RPCCompDetId.h.

Referenced by init(), and region().

const int RPCCompDetId::RegionNumBits_ = 2
staticprivate

Definition at line 92 of file RPCCompDetId.h.

const int RPCCompDetId::RegionStartBit_ = 0
staticprivate

Definition at line 93 of file RPCCompDetId.h.

Referenced by init(), and region().

const int RPCCompDetId::RingBarrelOffSet = 3
static

Definition at line 67 of file RPCCompDetId.h.

const unsigned int RPCCompDetId::RingMask_ = 0X7
staticprivate

Definition at line 98 of file RPCCompDetId.h.

Referenced by init(), and ring().

const int RPCCompDetId::RingNumBits_ = 3
staticprivate

Definition at line 96 of file RPCCompDetId.h.

const int RPCCompDetId::RingStartBit_ = RegionStartBit_+RegionNumBits_
staticprivate

Definition at line 97 of file RPCCompDetId.h.

Referenced by init(), and ring().

const unsigned int RPCCompDetId::SectorMask_ = 0X3F
staticprivate

Definition at line 106 of file RPCCompDetId.h.

Referenced by init(), and sector().

const int RPCCompDetId::SectorNumBits_ = 6
staticprivate

Definition at line 104 of file RPCCompDetId.h.

const int RPCCompDetId::SectorStartBit_ = StationStartBit_+StationNumBits_
staticprivate

Definition at line 105 of file RPCCompDetId.h.

Referenced by init(), and sector().

const unsigned int RPCCompDetId::StationMask_ = 0X7
staticprivate

Definition at line 102 of file RPCCompDetId.h.

Referenced by init(), and station().

const int RPCCompDetId::StationNumBits_ = 3
staticprivate

Definition at line 100 of file RPCCompDetId.h.

const int RPCCompDetId::StationStartBit_ = RingStartBit_+RingNumBits_
staticprivate

Definition at line 101 of file RPCCompDetId.h.

Referenced by init(), and station().

const unsigned int RPCCompDetId::SubSectorMask_ = 0X3
staticprivate

Definition at line 114 of file RPCCompDetId.h.

Referenced by init(), and subsector().

const int RPCCompDetId::SubSectorNumBits_ = 2
staticprivate

Definition at line 112 of file RPCCompDetId.h.

const int RPCCompDetId::SubSectorStartBit_ = LayerStartBit_+LayerNumBits_
staticprivate

Definition at line 113 of file RPCCompDetId.h.

Referenced by init(), and subsector().