Main Page
Namespaces
Classes
Package Documentation
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 "
DataFormats/MuonDetId/interface/GEMDetId.h
"
6
#include "
DataFormats/MuonDetId/interface/ME0DetId.h
"
7
#include <sstream>
8
9
int
TAMuonChamberMatch::station
()
const
{
10
int
muonSubdetId =
id
.subdetId();
11
12
if
(muonSubdetId==1) {
//DT
13
DTChamberId
segId(
id
.rawId());
14
return
segId.
station
();
15
}
16
if
(muonSubdetId==2) {
//CSC
17
CSCDetId
segId(
id
.rawId());
18
return
segId.
station
();
19
}
20
if
(muonSubdetId==3) {
//RPC
21
RPCDetId
segId(
id
.rawId());
22
return
segId.
station
();
23
}
24
if
(muonSubdetId==4) {
//GEM
25
GEMDetId
segId(
id
.rawId());
26
return
segId.
station
();
27
}
28
if
(muonSubdetId==5) {
//ME0
29
ME0DetId
segId(
id
.rawId());
30
return
segId.
station
();
31
}
32
33
return
-1;
34
}
35
36
std::string
TAMuonChamberMatch::info
()
const
{
37
int
muonSubdetId =
id
.subdetId();
38
std::ostringstream oss;
39
40
if
(muonSubdetId==1) {
//DT
41
DTChamberId
segId(
id
.rawId());
42
oss <<
"DT chamber (wheel, station, sector): "
43
<< segId.
wheel
() <<
", "
44
<< segId.
station
() <<
", "
45
<< segId.
sector
();
46
}
47
48
if
(muonSubdetId==2) {
//CSC
49
CSCDetId
segId(
id
.rawId());
50
oss <<
"CSC chamber (endcap, station, ring, chamber, layer): "
51
<< segId.
endcap
() <<
", "
52
<< segId.
station
() <<
", "
53
<< segId.
ring
() <<
", "
54
<< segId.
chamber
() <<
", "
55
<< segId.
layer
();
56
}
57
if
(muonSubdetId==3) {
//RPC
58
// RPCDetId segId(id.rawId());
59
oss <<
"RPC chamber"
;
60
}
61
if
(muonSubdetId==4) {
//GEM
62
// GEMDetId segId(id.rawId());
63
oss <<
"GEM chamber"
;
64
}
65
if
(muonSubdetId==5) {
//ME0
66
// ME0DetId segId(id.rawId());
67
oss <<
"ME0 chamber"
;
68
}
69
70
return
oss.str();
71
}
CSCDetId::chamber
int chamber() const
Definition:
CSCDetId.h:68
GEMDetId
Definition:
GEMDetId.h:16
ME0DetId
Definition:
ME0DetId.h:16
CSCDetId.h
CSCDetId
Definition:
CSCDetId.h:26
RPCDetId.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
DTChamberId
Definition:
DTChamberId.h:14
CSCDetId::layer
int layer() const
Definition:
CSCDetId.h:61
ME0DetId::station
int station() const
Definition:
ME0DetId.h:76
CSCDetId::endcap
int endcap() const
Definition:
CSCDetId.h:93
GEMDetId::station
int station() const
Station id : the station is the pair of chambers at same disk.
Definition:
GEMDetId.h:64
DTChamberId.h
GEMDetId.h
RPCDetId
Definition:
RPCDetId.h:16
CSCDetId::ring
int ring() const
Definition:
CSCDetId.h:75
TAMuonChamberMatch::station
int station() const
Definition:
TAMuonChamberMatch.cc:9
ME0DetId.h
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:36
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.11