DataFormats
MuonDetId
interface
DTLayerId.h
Go to the documentation of this file.
1
#ifndef MuonDetId_DTLayerId_h
2
#define MuonDetId_DTLayerId_h
3
10
#include <
DataFormats/MuonDetId/interface/DTSuperLayerId.h
>
11
12
class
DTLayerId
:
public
DTSuperLayerId
{
13
public
:
16
DTLayerId
();
17
23
explicit
DTLayerId
(uint32_t
id
);
24
28
DTLayerId
(
int
wheel
,
int
station
,
int
sector
,
int
superlayer
,
int
layer
);
29
33
DTLayerId
(
const
DTLayerId
& layerId);
34
36
DTLayerId
(
const
DTChamberId
& chId,
int
superlayer
,
int
layer
);
37
39
DTLayerId
(
const
DTSuperLayerId
& slId,
int
layer
);
40
42
int
layer
()
const
{
return
((
id_
>>
layerStartBit_
) &
lMask_
); }
43
45
DTSuperLayerId
superlayerId
()
const
{
return
DTSuperLayerId
(
id_
&
slIdMask_
); }
46
};
47
48
std::ostream&
operator<<
(std::ostream& os,
const
DTLayerId
&
id
);
49
50
#endif
DTSuperLayerId
Definition:
DTSuperLayerId.h:12
DTSuperLayerId::superlayer
int superlayer() const
Return the superlayer number (deprecated method name)
Definition:
DTSuperLayerId.h:42
DTChamberId::slIdMask_
static const uint32_t slIdMask_
Definition:
DTChamberId.h:100
DTLayerId
Definition:
DTLayerId.h:12
DTSuperLayerId::DTSuperLayerId
DTSuperLayerId()
Definition:
DTSuperLayerId.cc:11
DetId::id_
uint32_t id_
Definition:
DetId.h:69
DTLayerId::DTLayerId
DTLayerId()
Definition:
DTLayerId.cc:12
operator<<
std::ostream & operator<<(std::ostream &os, const DTLayerId &id)
Definition:
DTLayerId.cc:60
DTChamberId::lMask_
static const uint32_t lMask_
Definition:
DTChamberId.h:96
DTChamberId::layerStartBit_
static const int layerStartBit_
Definition:
DTChamberId.h:81
DTChamberId::sector
int sector() const
Definition:
DTChamberId.h:49
DTLayerId::superlayerId
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition:
DTLayerId.h:45
DTChamberId
Definition:
DTChamberId.h:14
DTSuperLayerId.h
DTLayerId::layer
int layer() const
Return the layer number.
Definition:
DTLayerId.h:42
DTChamberId::wheel
int wheel() const
Return the wheel number.
Definition:
DTChamberId.h:39
DTChamberId::station
int station() const
Return the station number.
Definition:
DTChamberId.h:42
Generated for CMSSW Reference Manual by
1.8.16