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

int TAMuonChamberMatch::detector ( ) const
inline

Definition at line 24 of file TAMuonChamberMatch.h.

24 { return id.subdetId(); }
std::string TAMuonChamberMatch::info ( void  ) const

Definition at line 36 of file TAMuonChamberMatch.cc.

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

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): "
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 }
int TAMuonChamberMatch::station ( ) const

Definition at line 9 of file TAMuonChamberMatch.cc.

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

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

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 }

Member Data Documentation

DetId TAMuonChamberMatch::id
float TAMuonChamberMatch::localDistanceX
float TAMuonChamberMatch::localDistanceY
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().

TrajectoryStateOnSurface TAMuonChamberMatch::tState