test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
TrackingTools
TrackAssociator
src
TAMuonChamberMatch.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TrackAssociator/interface/TAMuonChamberMatch.h
"
2
#include "
DataFormats/MuonDetId/interface/DTChamberId.h
"
3
#include "
DataFormats/MuonDetId/interface/CSCDetId.h
"
4
#include "
DataFormats/MuonDetId/interface/RPCDetId.h
"
5
#include <sstream>
6
7
int
TAMuonChamberMatch::station
()
const
{
8
int
muonSubdetId =
id
.subdetId();
9
10
if
(muonSubdetId==1) {
//DT
11
DTChamberId
segId(
id
.rawId());
12
return
segId.
station
();
13
}
14
if
(muonSubdetId==2) {
//CSC
15
CSCDetId
segId(
id
.rawId());
16
return
segId.
station
();
17
}
18
if
(muonSubdetId==3) {
//RPC
19
RPCDetId
segId(
id
.rawId());
20
return
segId.
station
();
21
}
22
23
return
-1;
24
}
25
26
std::string
TAMuonChamberMatch::info
()
const
{
27
int
muonSubdetId =
id
.subdetId();
28
std::ostringstream oss;
29
30
if
(muonSubdetId==1) {
//DT
31
DTChamberId
segId(
id
.rawId());
32
oss <<
"DT chamber (wheel, station, sector): "
33
<< segId.
wheel
() <<
", "
34
<< segId.
station
() <<
", "
35
<< segId.
sector
();
36
}
37
38
if
(muonSubdetId==2) {
//CSC
39
CSCDetId
segId(
id
.rawId());
40
oss <<
"CSC chamber (endcap, station, ring, chamber, layer): "
41
<< segId.
endcap
() <<
", "
42
<< segId.
station
() <<
", "
43
<< segId.
ring
() <<
", "
44
<< segId.
chamber
() <<
", "
45
<< segId.
layer
();
46
}
47
if
(muonSubdetId==3) {
//RPC
48
// RPCDetId segId(id.rawId());
49
oss <<
"RPC chamber"
;
50
}
51
52
return
oss.str();
53
}
CSCDetId::chamber
int chamber() const
Definition:
CSCDetId.h:68
CSCDetId.h
CSCDetId
Definition:
CSCDetId.h:26
RPCDetId.h
DTChamberId
Definition:
DTChamberId.h:14
CSCDetId::layer
int layer() const
Definition:
CSCDetId.h:61
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
CSCDetId::endcap
int endcap() const
Definition:
CSCDetId.h:93
DTChamberId.h
RPCDetId
Definition:
RPCDetId.h:16
CSCDetId::ring
int ring() const
Definition:
CSCDetId.h:75
TAMuonChamberMatch::station
int station() const
Definition:
TAMuonChamberMatch.cc:7
DTChamberId::sector
int sector() const
Definition:
DTChamberId.h:61
CSCDetId::station
int station() const
Definition:
CSCDetId.h:86
TAMuonChamberMatch::info
std::string info() const
Definition:
TAMuonChamberMatch.cc:26
DTChamberId::station
int station() const
Return the station number.
Definition:
DTChamberId.h:51
DTChamberId::wheel
int wheel() const
Return the wheel number.
Definition:
DTChamberId.h:45
TAMuonChamberMatch.h
RPCDetId::station
int station() const
Definition:
RPCDetId.h:96
Generated for CMSSW Reference Manual by
1.8.5