Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
RecoLocalMuon
RPCRecHit
plugins
DTStationIndex.h
Go to the documentation of this file.
1
#ifndef RecoLocalMuon_RPCRecHit_DTStationIndex_h
2
#define RecoLocalMuon_RPCRecHit_DTStationIndex_h
3
4
class
DTStationIndex
{
5
public
:
6
DTStationIndex
() :
_region
(0),
_wheel
(0),
_sector
(0),
_station
(0) {}
7
8
DTStationIndex
(
int
region
,
int
wheel
,
int
sector
,
int
station
)
9
:
_region
(region),
_wheel
(wheel),
_sector
(sector),
_station
(station) {}
10
11
int
region
()
const
{
return
_region
; }
12
int
wheel
()
const
{
return
_wheel
; }
13
int
sector
()
const
{
return
_sector
; }
14
int
station
()
const
{
return
_station
; }
15
16
bool
operator<
(
const
DTStationIndex
& dtind)
const
{
17
if
(dtind.
region
() != this->
region
())
18
return
dtind.
region
() < this->
region
();
19
else
if
(dtind.
wheel
() != this->
wheel
())
20
return
dtind.
wheel
() < this->
wheel
();
21
else
if
(dtind.
sector
() != this->
sector
())
22
return
dtind.
sector
() < this->
sector
();
23
else
if
(dtind.
station
() != this->
station
())
24
return
dtind.
station
() < this->
station
();
25
return
false
;
26
}
27
28
private
:
29
int
_region
;
30
int
_wheel
;
31
int
_sector
;
32
int
_station
;
33
};
34
35
#endif // RecoLocalMuon_RPCRecHit_DTStationIndex_h
DTStationIndex::_wheel
int _wheel
Definition:
DTStationIndex.h:30
DTStationIndex::_sector
int _sector
Definition:
DTStationIndex.h:31
DTStationIndex::wheel
int wheel() const
Definition:
DTStationIndex.h:12
DTStationIndex::_station
int _station
Definition:
DTStationIndex.h:32
DTStationIndex::DTStationIndex
DTStationIndex()
Definition:
DTStationIndex.h:6
DTStationIndex::DTStationIndex
DTStationIndex(int region, int wheel, int sector, int station)
Definition:
DTStationIndex.h:8
DTStationIndex
Definition:
DTStationIndex.h:4
DTStationIndex::station
int station() const
Definition:
DTStationIndex.h:14
DTStationIndex::region
int region() const
Definition:
DTStationIndex.h:11
DTStationIndex::operator<
bool operator<(const DTStationIndex &dtind) const
Definition:
DTStationIndex.h:16
DTStationIndex::_region
int _region
Definition:
DTStationIndex.h:29
DTStationIndex::sector
int sector() const
Definition:
DTStationIndex.h:13
Generated for CMSSW Reference Manual by
1.8.5