CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 26 of file TAMuonChamberMatch.cc.

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

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

Definition at line 7 of file TAMuonChamberMatch.cc.

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

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

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

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