CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Protected Attributes

RPCMuon Class Reference

#include <RPCMuon.h>

Inheritance diagram for RPCMuon:
RPCPacMuon RPCTBMuon

List of all members.

Classes

struct  TDigiLink

Public Types

typedef std::vector< TDigiLinkTDigiLinkVec

Public Member Functions

RPCConst::l1RpcConeCrdnts getConeCrdnts () const
TDigiLinkVec getDigiIdxVec ()
unsigned short getFiredPlanes () const
 bits of this number denotes fired planes that conform to pattern pattern
int getLogConeIdx () const
 the index in LogConesVec stored in L1RpcTrigg (accessed by GetActiveCones)
int getLogSector () const
int getLogSegment () const
int getPatternNum () const
int getPtCode () const
int getQuality () const
int getRefStripNum () const
int getSign () const
int getTower () const
 RPCMuon (const RPCConst::l1RpcConeCrdnts coneCrdnts, int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes)
 Constructor. All parameters are set.
 RPCMuon ()
 Default constructor. No muon.
 RPCMuon (int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes)
 Constructor.
void setConeCrdnts (const RPCConst::l1RpcConeCrdnts &coneCrdnts)
void setDigiIdxVec (TDigiLinkVec d)
void setLogConeIdx (int logConeIdx)
void setPatternNum (int patternNum)
void setPtCode (int ptCode)
void setQuality (int quality)
void setRefStripNum (int refStripNum)
void setSign (int sign)

Protected Attributes

RPCConst::l1RpcConeCrdnts m_ConeCrdnts
 The coordinates of LogCone, in which the muon was found.
TDigiLinkVec m_digiIdxVec
unsigned short m_FiredPlanes
 bits of this number denotes fired planes that conform to pattern pattern
int m_LogConeIdx
int m_PatternNum
 number of pattern (in given Pac), that was fit to this muon.
unsigned int m_PtCode
 5 bits, 0-31.
unsigned int m_Quality
 3 bits, 0-7.
int m_RefStripNum
unsigned int m_Sign
 1 bit, 0 - negative, 1 - positive.

Detailed Description

Basic L1RPC muon candidate. Containes coordinates of LogCone, in which the muon was found, ptCode (0 - 31, 0 means no muon), track quality (depends on count of fired planes), sign and number of pattern, that was fit to hits by m_PAC

Author:
Karol Bunkowski (Warsaw)

Definition at line 15 of file RPCMuon.h.


Member Typedef Documentation

typedef std::vector<TDigiLink > RPCMuon::TDigiLinkVec

Definition at line 77 of file RPCMuon.h.


Constructor & Destructor Documentation

RPCMuon::RPCMuon ( )

Default constructor. No muon.

Definition at line 9 of file RPCMuon.cc.

References m_PatternNum, m_PtCode, m_Quality, m_RefStripNum, and m_Sign.

                 {
  m_PtCode = 0;
  m_Quality = 0;
  m_Sign = 0;

  m_PatternNum = -1;
  m_RefStripNum = -1;
}
RPCMuon::RPCMuon ( const RPCConst::l1RpcConeCrdnts  coneCrdnts,
int  ptCode,
int  quality,
int  sign,
int  patternNum,
unsigned short  firedPlanes 
)

Constructor. All parameters are set.

Definition at line 22 of file RPCMuon.cc.

References m_ConeCrdnts, m_FiredPlanes, m_PatternNum, m_PtCode, m_Quality, and m_Sign.

{
    m_ConeCrdnts = coneCrdnts;
    m_PtCode = ptCode;
    m_Quality = quality;
    m_Sign = sign;
    m_PatternNum = patternNum;
    m_FiredPlanes = firedPlanes;
}
RPCMuon::RPCMuon ( int  ptCode,
int  quality,
int  sign,
int  patternNum,
unsigned short  firedPlanes 
)

Constructor.

Definition at line 38 of file RPCMuon.cc.

References m_ConeCrdnts, m_FiredPlanes, m_PatternNum, m_PtCode, m_Quality, and m_Sign.

                                                                                              {
  
  m_ConeCrdnts = RPCConst::l1RpcConeCrdnts();
  m_PtCode = ptCode;
  m_Quality = quality;
  m_Sign = sign;
  m_PatternNum = patternNum;
  m_FiredPlanes = firedPlanes;
}

Member Function Documentation

RPCConst::l1RpcConeCrdnts RPCMuon::getConeCrdnts ( ) const

Definition at line 52 of file RPCMuon.cc.

References m_ConeCrdnts.

{  return m_ConeCrdnts; }
TDigiLinkVec RPCMuon::getDigiIdxVec ( ) [inline]

Definition at line 79 of file RPCMuon.h.

References m_digiIdxVec.

{return m_digiIdxVec;};
unsigned short RPCMuon::getFiredPlanes ( ) const

bits of this number denotes fired planes that conform to pattern pattern

bits of this number denote fired planes that conform to pattern pattern

Definition at line 86 of file RPCMuon.cc.

References m_FiredPlanes.

{ return m_FiredPlanes; }
int RPCMuon::getLogConeIdx ( ) const

the index in LogConesVec stored in L1RpcTrigg (accessed by GetActiveCones)

Definition at line 83 of file RPCMuon.cc.

References m_LogConeIdx.

{ return m_LogConeIdx; }
int RPCMuon::getLogSector ( ) const

Definition at line 60 of file RPCMuon.cc.

References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_LogSector.

Referenced by RPCTBMuon::printDebugInfo().

int RPCMuon::getLogSegment ( ) const

Definition at line 62 of file RPCMuon.cc.

References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_LogSegment.

Referenced by RPCTBMuon::printDebugInfo().

int RPCMuon::getPatternNum ( ) const

Definition at line 76 of file RPCMuon.cc.

References m_PatternNum.

{ return m_PatternNum; }
int RPCMuon::getPtCode ( ) const

Definition at line 66 of file RPCMuon.cc.

References m_PtCode.

Referenced by MuonsGrabber::addMuon(), and RPCTBMuon::printDebugInfo().

{ return m_PtCode; }
int RPCMuon::getQuality ( ) const

Definition at line 70 of file RPCMuon.cc.

References m_Quality.

Referenced by RPCTBMuon::printDebugInfo(), and RPCPac::runTrackPatternsGroup().

{ return m_Quality; }
int RPCMuon::getRefStripNum ( ) const

continous number of strip in reference plane, set by RPCPacData::run int refStripNum = getPattern(bestMuon.getPatternNum()).getStripFrom(m_REF_PLANE[abs(m_CurrConeCrdnts.m_Tower)]) + m_CurrConeCrdnts.m_LogSector * 96 + m_CurrConeCrdnts.m_LogSegment * 8;

Definition at line 95 of file RPCMuon.cc.

References m_RefStripNum.

{ return m_RefStripNum; }
int RPCMuon::getSign ( ) const

Definition at line 74 of file RPCMuon.cc.

References m_Sign.

Referenced by RPCTBMuon::printDebugInfo().

{ return m_Sign; }
int RPCMuon::getTower ( ) const

Definition at line 58 of file RPCMuon.cc.

References m_ConeCrdnts, and RPCConst::l1RpcConeCrdnts::m_Tower.

Referenced by RPCTBMuon::printDebugInfo().

{ return m_ConeCrdnts.m_Tower;}
void RPCMuon::setConeCrdnts ( const RPCConst::l1RpcConeCrdnts coneCrdnts)

Definition at line 54 of file RPCMuon.cc.

References m_ConeCrdnts.

Referenced by RPCPac::run().

                                                                     {
  m_ConeCrdnts = coneCrdnts;
}
void RPCMuon::setDigiIdxVec ( TDigiLinkVec  d) [inline]

Definition at line 80 of file RPCMuon.h.

References m_digiIdxVec.

Referenced by RPCPac::runEnergeticPatternsGroups(), and RPCPac::runTrackPatternsGroup().

{m_digiIdxVec = d;};
void RPCMuon::setLogConeIdx ( int  logConeIdx)

Definition at line 80 of file RPCMuon.cc.

References m_LogConeIdx.

Referenced by RPCPac::run().

{ m_LogConeIdx = logConeIdx; }
void RPCMuon::setPatternNum ( int  patternNum)

Reimplemented in RPCPacMuon.

Definition at line 78 of file RPCMuon.cc.

References m_PatternNum.

{ m_PatternNum = patternNum; }
void RPCMuon::setPtCode ( int  ptCode)

Definition at line 64 of file RPCMuon.cc.

References m_PtCode.

{ m_PtCode = ptCode; }
void RPCMuon::setQuality ( int  quality)

Definition at line 68 of file RPCMuon.cc.

References m_Quality.

{ m_Quality = quality; }
void RPCMuon::setRefStripNum ( int  refStripNum)

Definition at line 88 of file RPCMuon.cc.

References m_RefStripNum.

{ m_RefStripNum = refStripNum; }
void RPCMuon::setSign ( int  sign)

Definition at line 72 of file RPCMuon.cc.

References m_Sign.

{ m_Sign = sign; }

Member Data Documentation

The coordinates of LogCone, in which the muon was found.

Definition at line 80 of file RPCMuon.h.

Referenced by getConeCrdnts(), getLogSector(), getLogSegment(), getTower(), RPCMuon(), and setConeCrdnts().

Definition at line 106 of file RPCMuon.h.

Referenced by getDigiIdxVec(), and setDigiIdxVec().

unsigned short RPCMuon::m_FiredPlanes [protected]

bits of this number denotes fired planes that conform to pattern pattern

Definition at line 101 of file RPCMuon.h.

Referenced by getFiredPlanes(), RPCMuon(), and RPCPacMuon::setAll().

int RPCMuon::m_LogConeIdx [protected]

Definition at line 98 of file RPCMuon.h.

Referenced by getLogConeIdx(), and setLogConeIdx().

int RPCMuon::m_PatternNum [protected]

number of pattern (in given Pac), that was fit to this muon.

Definition at line 96 of file RPCMuon.h.

Referenced by getPatternNum(), RPCMuon(), RPCPacMuon::setAll(), setPatternNum(), and RPCPacMuon::setPatternNum().

unsigned int RPCMuon::m_PtCode [protected]
unsigned int RPCMuon::m_Quality [protected]
int RPCMuon::m_RefStripNum [protected]

Definition at line 103 of file RPCMuon.h.

Referenced by getRefStripNum(), RPCMuon(), and setRefStripNum().

unsigned int RPCMuon::m_Sign [protected]