CMS 3D CMS Logo

TAMuonChamberMatch Class Reference

Description: An auxiliary class to store a muon trajetory matching to chambers. More...

#include <TrackingTools/TrackAssociator/interface/TAMuonChamberMatch.h>

List of all members.

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
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.

00024 { 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().

00026                                          {
00027    int muonSubdetId = id.subdetId();
00028    std::ostringstream oss;
00029 
00030    if(muonSubdetId==1) {//DT
00031       DTChamberId segId(id.rawId());
00032       oss << "DT chamber (wheel, station, sector): "
00033         << segId.wheel() << ", "
00034         << segId.station() << ", "
00035         << segId.sector();
00036    }
00037         
00038    if(muonSubdetId==2) {//CSC
00039       CSCDetId segId(id.rawId());
00040       oss << "CSC chamber (endcap, station, ring, chamber, layer): "
00041         << segId.endcap() << ", "
00042         << segId.station() << ", "
00043         << segId.ring() << ", "
00044         << segId.chamber() << ", "
00045         << segId.layer();
00046    }
00047    if(muonSubdetId==3) {//RPC
00048       // RPCDetId segId(id.rawId());
00049       oss << "RPC chamber";
00050    }
00051 
00052    return oss.str();
00053 }

int TAMuonChamberMatch::station (  )  const

Definition at line 7 of file TAMuonChamberMatch.cc.

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

00007                                       {
00008         int muonSubdetId = id.subdetId();
00009 
00010         if(muonSubdetId==1) {//DT
00011                 DTChamberId segId(id.rawId());
00012                 return segId.station();
00013         }
00014         if(muonSubdetId==2) {//CSC
00015                 CSCDetId segId(id.rawId());
00016                 return segId.station();
00017         }
00018         if(muonSubdetId==3) {//RPC
00019                 RPCDetId segId(id.rawId());
00020                 return segId.station();
00021         }
00022 
00023         return -1;
00024 }


Member Data Documentation

DetId TAMuonChamberMatch::id

Definition at line 31 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), and TrackDetectorAssociator::getTAMuonChamberMatches().

float TAMuonChamberMatch::localDistanceX

Definition at line 28 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::getTAMuonChamberMatches().

float TAMuonChamberMatch::localDistanceY

Definition at line 29 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::getTAMuonChamberMatches().

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

Definition at line 30 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch(), and TrackDetectorAssociator::getTAMuonChamberMatches().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:33:03 2009 for CMSSW by  doxygen 1.5.4