DataFormats
MuonDetId
interface
DTSuperLayerId.h
Go to the documentation of this file.
1
#ifndef MuonDetId_DTSuperLayerId_H
2
#define MuonDetId_DTSuperLayerId_H
3
10
#include <
DataFormats/MuonDetId/interface/DTChamberId.h
>
11
12
class
DTSuperLayerId
:
public
DTChamberId
{
13
public
:
16
DTSuperLayerId
();
17
23
explicit
DTSuperLayerId
(uint32_t
id
);
24
28
DTSuperLayerId
(
int
wheel
,
int
station
,
int
sector
,
int
superlayer
);
29
33
DTSuperLayerId
(
const
DTSuperLayerId
& slId);
34
36
DTSuperLayerId
(
const
DTChamberId
& chId,
int
superlayer
);
37
39
int
superLayer
()
const
{
return
((
id_
>>
slayerStartBit_
) &
slMask_
); }
40
42
int
superlayer
()
const
{
return
superLayer
(); }
43
45
DTChamberId
chamberId
()
const
{
return
DTChamberId
(
id_
&
chamberIdMask_
); }
46
47
private
:
48
};
49
50
std::ostream&
operator<<
(std::ostream& os,
const
DTSuperLayerId
&
id
);
51
52
#endif
DTSuperLayerId
Definition:
DTSuperLayerId.h:12
DTSuperLayerId::superlayer
int superlayer() const
Return the superlayer number (deprecated method name)
Definition:
DTSuperLayerId.h:42
DTSuperLayerId::superLayer
int superLayer() const
Return the superlayer number.
Definition:
DTSuperLayerId.h:39
DTChamberId.h
DTSuperLayerId::DTSuperLayerId
DTSuperLayerId()
Definition:
DTSuperLayerId.cc:11
DTChamberId::slMask_
static const uint32_t slMask_
Definition:
DTChamberId.h:95
DetId::id_
uint32_t id_
Definition:
DetId.h:69
DTSuperLayerId::chamberId
DTChamberId chamberId() const
Return the corresponding ChamberId.
Definition:
DTSuperLayerId.h:45
DTChamberId::DTChamberId
DTChamberId()
Definition:
DTChamberId.cc:14
DTChamberId::sector
int sector() const
Definition:
DTChamberId.h:49
DTChamberId::chamberIdMask_
static const uint32_t chamberIdMask_
Definition:
DTChamberId.h:101
DTChamberId::slayerStartBit_
static const int slayerStartBit_
Definition:
DTChamberId.h:83
operator<<
std::ostream & operator<<(std::ostream &os, const DTSuperLayerId &id)
Definition:
DTSuperLayerId.cc:46
DTChamberId
Definition:
DTChamberId.h:14
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