CMS 3D CMS Logo

Public Member Functions | Public Attributes

TAMuonChamberMatch Class Reference

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

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

                                         {
   int muonSubdetId = id.subdetId();
   std::ostringstream oss;

   if(muonSubdetId==1) {//DT
      DTChamberId segId(id.rawId());
      oss << "DT chamber (wheel, station, sector): "
        << segId.wheel() << ", "
        << segId.station() << ", "
        << segId.sector();
   }
        
   if(muonSubdetId==2) {//CSC
      CSCDetId segId(id.rawId());
      oss << "CSC chamber (endcap, station, ring, chamber, layer): "
        << segId.endcap() << ", "
        << segId.station() << ", "
        << segId.ring() << ", "
        << segId.chamber() << ", "
        << segId.layer();
   }
   if(muonSubdetId==3) {//RPC
      // RPCDetId segId(id.rawId());
      oss << "RPC chamber";
   }

   return oss.str();
}
int TAMuonChamberMatch::station ( ) const

Definition at line 7 of file TAMuonChamberMatch.cc.

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

                                      {
        int muonSubdetId = id.subdetId();

        if(muonSubdetId==1) {//DT
                DTChamberId segId(id.rawId());
                return segId.station();
        }
        if(muonSubdetId==2) {//CSC
                CSCDetId segId(id.rawId());
                return segId.station();
        }
        if(muonSubdetId==3) {//RPC
                RPCDetId segId(id.rawId());
                return segId.station();
        }

        return -1;
}

Member Data Documentation

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

Definition at line 27 of file TAMuonChamberMatch.h.

Referenced by TrackDetectorAssociator::addTAMuonSegmentMatch().