Main Page
Namespaces
Classes
Package Documentation
src
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),
10
_station
(station),
11
_ring
(ring),
12
_chamber
(chamber){}
13
14
int
region
()
const
{
return
_region
;}
15
int
station
()
const
{
return
_station
;}
16
int
ring
()
const
{
return
_ring
;}
17
int
chamber
()
const
{
return
_chamber
;}
18
19
bool
operator<
(
const
CSCStationIndex
& cscind)
const
{
20
if
(cscind.
region
()!=this->
region
())
21
return
cscind.
region
()<this->
region
();
22
else
if
(cscind.
station
()!=this->
station
())
23
return
cscind.
station
()<this->
station
();
24
else
if
(cscind.
ring
()!=this->
ring
())
25
return
cscind.
ring
()<this->
ring
();
26
else
if
(cscind.
chamber
()!=this->
chamber
())
27
return
cscind.
chamber
()<this->
chamber
();
28
return
false
;
29
}
30
31
private
:
32
int
_region
;
33
int
_station
;
34
int
_ring
;
35
int
_chamber
;
36
};
37
38
#endif // RecoLocalMuon_RPCRecHit_CSCStationIndex_h
CSCStationIndex::chamber
int chamber() const
Definition:
RPCEfficiency.h:74
CSCStationIndex::CSCStationIndex
CSCStationIndex()
Definition:
CSCStationIndex.h:6
CSCStationIndex::_station
int _station
Definition:
RPCEfficiency.h:89
CSCStationIndex::CSCStationIndex
CSCStationIndex(int region, int station, int ring, int chamber)
Definition:
CSCStationIndex.h:8
CSCStationIndex::station
int station() const
Definition:
RPCEfficiency.h:72
CSCStationIndex::_chamber
int _chamber
Definition:
RPCEfficiency.h:91
CSCStationIndex::ring
int ring() const
Definition:
RPCEfficiency.h:73
CSCStationIndex::operator<
bool operator<(const CSCStationIndex &cscind) const
Definition:
CSCStationIndex.h:19
CSCStationIndex
Definition:
RPCEfficiency.h:62
CSCStationIndex::_ring
int _ring
Definition:
RPCEfficiency.h:90
CSCStationIndex::region
int region() const
Definition:
RPCEfficiency.h:71
CSCStationIndex::_region
int _region
Definition:
RPCEfficiency.h:88
Generated for CMSSW Reference Manual by
1.8.11