Main Page
Namespaces
Classes
Package Documentation
RecoLocalMuon
RPCRecHit
src
CSCStationIndex.h
Go to the documentation of this file.
1
#ifndef RecoLocalMuon_RPCRecHit_CSCStationIndex_h
2
#define RecoLocalMuon_RPCRecHit_CSCStationIndex_h
3
4
class
CSCStationIndex
{
5
public
:
6
CSCStationIndex
() :
_region
(0),
_station
(0),
_ring
(0),
_chamber
(0) {}
7
8
CSCStationIndex
(
int
region
,
int
station
,
int
ring
,
int
chamber
)
9
:
_region
(region),
_station
(station),
_ring
(ring),
_chamber
(chamber) {}
10
11
int
region
()
const
{
return
_region
; }
12
int
station
()
const
{
return
_station
; }
13
int
ring
()
const
{
return
_ring
; }
14
int
chamber
()
const
{
return
_chamber
; }
15
16
bool
operator<
(
const
CSCStationIndex
& cscind)
const
{
17
if
(cscind.
region
() != this->
region
())
18
return
cscind.
region
() < this->
region
();
19
else
if
(cscind.
station
() != this->
station
())
20
return
cscind.
station
() < this->
station
();
21
else
if
(cscind.
ring
() != this->
ring
())
22
return
cscind.
ring
() < this->
ring
();
23
else
if
(cscind.
chamber
() != this->
chamber
())
24
return
cscind.
chamber
() < this->
chamber
();
25
return
false
;
26
}
27
28
private
:
29
int
_region
;
30
int
_station
;
31
int
_ring
;
32
int
_chamber
;
33
};
34
35
#endif // RecoLocalMuon_RPCRecHit_CSCStationIndex_h
CSCStationIndex::chamber
int chamber() const
Definition:
GEMCSCSegmentBuilder.h:42
CSCStationIndex::CSCStationIndex
CSCStationIndex()
Definition:
CSCStationIndex.h:6
CSCStationIndex::_station
int _station
Definition:
GEMCSCSegmentBuilder.h:61
CSCStationIndex::CSCStationIndex
CSCStationIndex(int region, int station, int ring, int chamber)
Definition:
CSCStationIndex.h:8
CSCStationIndex::station
int station() const
Definition:
GEMCSCSegmentBuilder.h:40
CSCStationIndex::_chamber
int _chamber
Definition:
GEMCSCSegmentBuilder.h:63
CSCStationIndex::ring
int ring() const
Definition:
GEMCSCSegmentBuilder.h:41
CSCStationIndex::operator<
bool operator<(const CSCStationIndex &cscind) const
Definition:
CSCStationIndex.h:16
CSCStationIndex
Definition:
GEMCSCSegmentBuilder.h:32
CSCStationIndex::_ring
int _ring
Definition:
GEMCSCSegmentBuilder.h:62
CSCStationIndex::region
int region() const
Definition:
GEMCSCSegmentBuilder.h:39
CSCStationIndex::_region
int _region
Definition:
GEMCSCSegmentBuilder.h:60
Generated for CMSSW Reference Manual by
1.8.11