CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TAMuonChamberMatch Class Reference

#include <TAMuonChamberMatch.h>

Public Member Functions

int detector () const
 
std::string info () const
 
int station () const
 

Public Attributes

DetId id
 
float localDistanceX
 
float localDistanceY
 
std::vector< TAMuonSegmentMatchsegments
 distance sign convention: negative - crossed chamber, positive - missed chamber More...
 
TrajectoryStateOnSurface tState
 

Detailed Description

Description: An auxiliary class to store a muon trajetory matching to chambers. It's used to store information of about crossed muon detector elements regardless of whether a segment was reconstructed or not for a given chamber.

Definition at line 20 of file TAMuonChamberMatch.h.

Member Function Documentation

◆ detector()

int TAMuonChamberMatch::detector ( ) const
inline

Definition at line 24 of file TAMuonChamberMatch.h.

24 { return id.subdetId(); }

◆ info()

std::string TAMuonChamberMatch::info ( void  ) const

Definition at line 36 of file TAMuonChamberMatch.cc.

36  {
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): " << segId.wheel() << ", " << segId.station() << ", "
43  << segId.sector();
44  }
45 
46  if (muonSubdetId == 2) { //CSC
47  CSCDetId segId(id.rawId());
48  oss << "CSC chamber (endcap, station, ring, chamber, layer): " << segId.endcap() << ", " << segId.station() << ", "
49  << segId.ring() << ", " << segId.chamber() << ", " << segId.layer();
50  }
51  if (muonSubdetId == 3) { //RPC
52  // RPCDetId segId(id.rawId());
53  oss << "RPC chamber";
54  }
55  if (muonSubdetId == 4) { //GEM
56  // GEMDetId segId(id.rawId());
57  oss << "GEM chamber";
58  }
59  if (muonSubdetId == 5) { //ME0
60  // ME0DetId segId(id.rawId());
61  oss << "ME0 chamber";
62  }
63 
64  return oss.str();
65 }

References CSCDetId::chamber(), CSCDetId::endcap(), CSCDetId::layer(), CSCDetId::ring(), DTChamberId::sector(), DTChamberId::station(), CSCDetId::station(), and DTChamberId::wheel().

◆ station()

int TAMuonChamberMatch::station ( ) const

Definition at line 9 of file TAMuonChamberMatch.cc.

9  {
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 }

References DTChamberId::station(), ME0DetId::station(), RPCDetId::station(), CSCDetId::station(), and GEMDetId::station().

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

Member Data Documentation

◆ id

DetId TAMuonChamberMatch::id

Definition at line 31 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch().

◆ localDistanceX

float TAMuonChamberMatch::localDistanceX

Definition at line 28 of file TAMuonChamberMatch.h.

◆ localDistanceY

float TAMuonChamberMatch::localDistanceY

Definition at line 29 of file TAMuonChamberMatch.h.

◆ segments

std::vector<TAMuonSegmentMatch> TAMuonChamberMatch::segments

distance sign convention: negative - crossed chamber, positive - missed chamber

Definition at line 27 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch().

◆ tState

TrajectoryStateOnSurface TAMuonChamberMatch::tState

Definition at line 30 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch().

RPCDetId
Definition: RPCDetId.h:16
GEMDetId
Definition: GEMDetId.h:18
CSCDetId
Definition: CSCDetId.h:26
ME0DetId
Definition: ME0DetId.h:16
DTChamberId
Definition: DTChamberId.h:14