CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Protected Attributes
RPCMuon Class Reference

#include <RPCMuon.h>

Inheritance diagram for RPCMuon:
RPCPacMuon RPCTBMuon

Classes

struct  TDigiLink
 

Public Types

typedef std::vector< TDigiLinkTDigiLinkVec
 

Public Member Functions

RPCConst::l1RpcConeCrdnts getConeCrdnts () const
 
TDigiLinkVec getDigiIdxVec () const
 
unsigned short getFiredPlanes () const
 bits of this number denotes fired planes that conform to pattern pattern More...
 
int getLogConeIdx () const
 the index in LogConesVec stored in L1RpcTrigg (accessed by GetActiveCones) More...
 
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 ()
 Default constructor. No muon. More...
 
 RPCMuon (const RPCConst::l1RpcConeCrdnts coneCrdnts, int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes)
 Constructor. All parameters are set. More...
 
 RPCMuon (int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes)
 Constructor. More...
 
void setConeCrdnts (const RPCConst::l1RpcConeCrdnts &coneCrdnts)
 
void setDigiIdxVec (const 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. More...
 
TDigiLinkVec m_digiIdxVec
 
unsigned short m_FiredPlanes
 bits of this number denotes fired planes that conform to pattern pattern More...
 
int m_LogConeIdx
 
int m_PatternNum
 number of pattern (in given Pac), that was fit to this muon. More...
 
unsigned int m_PtCode
 5 bits, 0-31. More...
 
unsigned int m_Quality
 3 bits, 0-7. More...
 
int m_RefStripNum
 
unsigned int m_Sign
 1 bit, 0 - negative, 1 - positive. More...
 

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

◆ TDigiLinkVec

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

Definition at line 80 of file RPCMuon.h.

Constructor & Destructor Documentation

◆ RPCMuon() [1/3]

RPCMuon::RPCMuon ( )

Default constructor. No muon.

Definition at line 9 of file RPCMuon.cc.

9  {
10  m_PtCode = 0;
11  m_Quality = 0;
12  m_Sign = 0;
13 
14  m_PatternNum = -1;
15  m_RefStripNum = -1;
16 }

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

◆ RPCMuon() [2/3]

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.

27  {
28  m_ConeCrdnts = coneCrdnts;
29  m_PtCode = ptCode;
31  m_Sign = sign;
32  m_PatternNum = patternNum;
33  m_FiredPlanes = firedPlanes;
34 }

References m_ConeCrdnts, m_FiredPlanes, m_PatternNum, m_PtCode, m_Quality, m_Sign, qcdUeDQM_cfi::quality, and Validation_hcalonly_cfi::sign.

◆ RPCMuon() [3/3]

RPCMuon::RPCMuon ( int  ptCode,
int  quality,
int  sign,
int  patternNum,
unsigned short  firedPlanes 
)

Constructor.

Definition at line 40 of file RPCMuon.cc.

40  {
42  m_PtCode = ptCode;
44  m_Sign = sign;
45  m_PatternNum = patternNum;
46  m_FiredPlanes = firedPlanes;
47 }

References m_ConeCrdnts, m_FiredPlanes, m_PatternNum, m_PtCode, m_Quality, m_Sign, qcdUeDQM_cfi::quality, and Validation_hcalonly_cfi::sign.

Member Function Documentation

◆ getConeCrdnts()

RPCConst::l1RpcConeCrdnts RPCMuon::getConeCrdnts ( ) const

Definition at line 53 of file RPCMuon.cc.

53 { return m_ConeCrdnts; }

References m_ConeCrdnts.

◆ getDigiIdxVec()

TDigiLinkVec RPCMuon::getDigiIdxVec ( ) const
inline

Definition at line 82 of file RPCMuon.h.

82 { return m_digiIdxVec; };

References m_digiIdxVec.

◆ getFiredPlanes()

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 85 of file RPCMuon.cc.

85 { return m_FiredPlanes; }

References m_FiredPlanes.

◆ getLogConeIdx()

int RPCMuon::getLogConeIdx ( ) const

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

Definition at line 82 of file RPCMuon.cc.

82 { return m_LogConeIdx; }

References m_LogConeIdx.

◆ getLogSector()

int RPCMuon::getLogSector ( ) const

Definition at line 59 of file RPCMuon.cc.

59 { return m_ConeCrdnts.m_LogSector; }

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

Referenced by RPCTBMuon::printDebugInfo().

◆ getLogSegment()

int RPCMuon::getLogSegment ( ) const

Definition at line 61 of file RPCMuon.cc.

61 { return m_ConeCrdnts.m_LogSegment; }

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

Referenced by RPCTBMuon::printDebugInfo().

◆ getPatternNum()

int RPCMuon::getPatternNum ( ) const

Definition at line 75 of file RPCMuon.cc.

75 { return m_PatternNum; }

References m_PatternNum.

◆ getPtCode()

int RPCMuon::getPtCode ( ) const

Definition at line 65 of file RPCMuon.cc.

65 { return m_PtCode; }

References m_PtCode.

Referenced by RPCTBMuon::printDebugInfo().

◆ getQuality()

int RPCMuon::getQuality ( ) const

Definition at line 69 of file RPCMuon.cc.

69 { return m_Quality; }

References m_Quality.

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

◆ getRefStripNum()

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 94 of file RPCMuon.cc.

94 { return m_RefStripNum; }

References m_RefStripNum.

◆ getSign()

int RPCMuon::getSign ( ) const

Definition at line 73 of file RPCMuon.cc.

73 { return m_Sign; }

References m_Sign.

Referenced by RPCTBMuon::printDebugInfo().

◆ getTower()

int RPCMuon::getTower ( ) const

Definition at line 57 of file RPCMuon.cc.

57 { return m_ConeCrdnts.m_Tower; }

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

Referenced by RPCTBMuon::printDebugInfo().

◆ setConeCrdnts()

void RPCMuon::setConeCrdnts ( const RPCConst::l1RpcConeCrdnts coneCrdnts)

Definition at line 55 of file RPCMuon.cc.

55 { m_ConeCrdnts = coneCrdnts; }

References m_ConeCrdnts.

Referenced by RPCPac::run().

◆ setDigiIdxVec()

void RPCMuon::setDigiIdxVec ( const TDigiLinkVec d)
inline

Definition at line 83 of file RPCMuon.h.

83 { m_digiIdxVec = d; };

References ztail::d, and m_digiIdxVec.

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

◆ setLogConeIdx()

void RPCMuon::setLogConeIdx ( int  logConeIdx)

Definition at line 79 of file RPCMuon.cc.

79 { m_LogConeIdx = logConeIdx; }

References m_LogConeIdx.

Referenced by RPCPac::run().

◆ setPatternNum()

void RPCMuon::setPatternNum ( int  patternNum)

Definition at line 77 of file RPCMuon.cc.

77 { m_PatternNum = patternNum; }

References m_PatternNum.

◆ setPtCode()

void RPCMuon::setPtCode ( int  ptCode)

Definition at line 63 of file RPCMuon.cc.

63 { m_PtCode = ptCode; }

References m_PtCode.

◆ setQuality()

void RPCMuon::setQuality ( int  quality)

Definition at line 67 of file RPCMuon.cc.

67 { m_Quality = quality; }

References m_Quality, and qcdUeDQM_cfi::quality.

◆ setRefStripNum()

void RPCMuon::setRefStripNum ( int  refStripNum)

Definition at line 87 of file RPCMuon.cc.

87 { m_RefStripNum = refStripNum; }

References m_RefStripNum.

◆ setSign()

void RPCMuon::setSign ( int  sign)

Definition at line 71 of file RPCMuon.cc.

71 { m_Sign = sign; }

References m_Sign, and Validation_hcalonly_cfi::sign.

Member Data Documentation

◆ m_ConeCrdnts

RPCConst::l1RpcConeCrdnts RPCMuon::m_ConeCrdnts
protected

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

Definition at line 83 of file RPCMuon.h.

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

◆ m_digiIdxVec

TDigiLinkVec RPCMuon::m_digiIdxVec
protected

Definition at line 108 of file RPCMuon.h.

Referenced by getDigiIdxVec(), and setDigiIdxVec().

◆ m_FiredPlanes

unsigned short RPCMuon::m_FiredPlanes
protected

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

Definition at line 104 of file RPCMuon.h.

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

◆ m_LogConeIdx

int RPCMuon::m_LogConeIdx
protected

Definition at line 101 of file RPCMuon.h.

Referenced by getLogConeIdx(), and setLogConeIdx().

◆ m_PatternNum

int RPCMuon::m_PatternNum
protected

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

Definition at line 99 of file RPCMuon.h.

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

◆ m_PtCode

unsigned int RPCMuon::m_PtCode
protected

◆ m_Quality

unsigned int RPCMuon::m_Quality
protected

◆ m_RefStripNum

int RPCMuon::m_RefStripNum
protected

Definition at line 106 of file RPCMuon.h.

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

◆ m_Sign

unsigned int RPCMuon::m_Sign
protected

1 bit, 0 - negative, 1 - positive.

Definition at line 96 of file RPCMuon.h.

Referenced by RPCTBMuon::getCode(), getSign(), RPCPacMuon::operator<(), RPCPacMuon::operator>(), RPCMuon(), RPCPacMuon::setAll(), setSign(), and RPCTBMuon::toString().

RPCMuon::m_Quality
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
RPCConst::l1RpcConeCrdnts::m_Tower
int m_Tower
Definition: RPCConst.h:119
Validation_hcalonly_cfi.sign
sign
Definition: Validation_hcalonly_cfi.py:32
RPCMuon::m_digiIdxVec
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:108
RPCConst::l1RpcConeCrdnts
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:118
RPCMuon::m_LogConeIdx
int m_LogConeIdx
Definition: RPCMuon.h:101
RPCMuon::m_ConeCrdnts
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83
RPCConst::l1RpcConeCrdnts::m_LogSegment
int m_LogSegment
Definition: RPCConst.h:121
RPCMuon::m_RefStripNum
int m_RefStripNum
Definition: RPCMuon.h:106
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
RPCMuon::m_FiredPlanes
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:104
ztail.d
d
Definition: ztail.py:151
RPCConst::l1RpcConeCrdnts::m_LogSector
int m_LogSector
Definition: RPCConst.h:120
RPCMuon::m_Sign
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96
RPCMuon::m_PtCode
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
RPCMuon::m_PatternNum
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99