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.

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

9  {
10  m_PtCode = 0;
11  m_Quality = 0;
12  m_Sign = 0;
13 
14  m_PatternNum = -1;
15  m_RefStripNum = -1;
16 }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99
int m_RefStripNum
Definition: RPCMuon.h:106
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93

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

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

27  {
28  m_ConeCrdnts = coneCrdnts;
29  m_PtCode = ptCode;
31  m_Sign = sign;
32  m_PatternNum = patternNum;
33  m_FiredPlanes = firedPlanes;
34 }
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:104
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
string quality

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

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

40  {
42  m_PtCode = ptCode;
44  m_Sign = sign;
45  m_PatternNum = patternNum;
46  m_FiredPlanes = firedPlanes;
47 }
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:118
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:104
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
string quality

Member Function Documentation

◆ getConeCrdnts()

RPCConst::l1RpcConeCrdnts RPCMuon::getConeCrdnts ( ) const

Definition at line 53 of file RPCMuon.cc.

References m_ConeCrdnts.

53 { return m_ConeCrdnts; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83

◆ getDigiIdxVec()

TDigiLinkVec RPCMuon::getDigiIdxVec ( ) const
inline

Definition at line 82 of file RPCMuon.h.

References m_digiIdxVec.

82 { return m_digiIdxVec; };
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:108

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

References m_FiredPlanes.

85 { return m_FiredPlanes; }
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:104

◆ getLogConeIdx()

int RPCMuon::getLogConeIdx ( ) const

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

Definition at line 82 of file RPCMuon.cc.

References m_LogConeIdx.

82 { return m_LogConeIdx; }
int m_LogConeIdx
Definition: RPCMuon.h:101

◆ getLogSector()

int RPCMuon::getLogSector ( ) const

Definition at line 59 of file RPCMuon.cc.

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

Referenced by RPCTBMuon::printDebugInfo().

59 { return m_ConeCrdnts.m_LogSector; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83

◆ getLogSegment()

int RPCMuon::getLogSegment ( ) const

Definition at line 61 of file RPCMuon.cc.

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

Referenced by RPCTBMuon::printDebugInfo().

61 { return m_ConeCrdnts.m_LogSegment; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83

◆ getPatternNum()

int RPCMuon::getPatternNum ( ) const

Definition at line 75 of file RPCMuon.cc.

References m_PatternNum.

75 { return m_PatternNum; }
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99

◆ getPtCode()

int RPCMuon::getPtCode ( ) const

Definition at line 65 of file RPCMuon.cc.

References m_PtCode.

Referenced by RPCTBMuon::printDebugInfo().

65 { return m_PtCode; }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90

◆ getQuality()

int RPCMuon::getQuality ( ) const

Definition at line 69 of file RPCMuon.cc.

References m_Quality.

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

69 { return m_Quality; }
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93

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

References m_RefStripNum.

94 { return m_RefStripNum; }
int m_RefStripNum
Definition: RPCMuon.h:106

◆ getSign()

int RPCMuon::getSign ( ) const

Definition at line 73 of file RPCMuon.cc.

References m_Sign.

Referenced by RPCTBMuon::printDebugInfo().

73 { return m_Sign; }
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96

◆ getTower()

int RPCMuon::getTower ( ) const

Definition at line 57 of file RPCMuon.cc.

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

Referenced by RPCTBMuon::printDebugInfo().

57 { return m_ConeCrdnts.m_Tower; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83

◆ setConeCrdnts()

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

Definition at line 55 of file RPCMuon.cc.

References m_ConeCrdnts.

Referenced by RPCPac::run().

55 { m_ConeCrdnts = coneCrdnts; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:83

◆ setDigiIdxVec()

void RPCMuon::setDigiIdxVec ( const TDigiLinkVec d)
inline

Definition at line 83 of file RPCMuon.h.

References ztail::d, and m_digiIdxVec.

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

83 { m_digiIdxVec = d; };
d
Definition: ztail.py:151
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:108

◆ setLogConeIdx()

void RPCMuon::setLogConeIdx ( int  logConeIdx)

Definition at line 79 of file RPCMuon.cc.

References m_LogConeIdx.

Referenced by RPCPac::run().

79 { m_LogConeIdx = logConeIdx; }
int m_LogConeIdx
Definition: RPCMuon.h:101

◆ setPatternNum()

void RPCMuon::setPatternNum ( int  patternNum)

Definition at line 77 of file RPCMuon.cc.

References m_PatternNum.

77 { m_PatternNum = patternNum; }
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:99

◆ setPtCode()

void RPCMuon::setPtCode ( int  ptCode)

Definition at line 63 of file RPCMuon.cc.

References m_PtCode.

63 { m_PtCode = ptCode; }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90

◆ setQuality()

void RPCMuon::setQuality ( int  quality)

Definition at line 67 of file RPCMuon.cc.

References m_Quality, and quality.

67 { m_Quality = quality; }
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
string quality

◆ setRefStripNum()

void RPCMuon::setRefStripNum ( int  refStripNum)

Definition at line 87 of file RPCMuon.cc.

References m_RefStripNum.

87 { m_RefStripNum = refStripNum; }
int m_RefStripNum
Definition: RPCMuon.h:106

◆ setSign()

void RPCMuon::setSign ( int  sign)

Definition at line 71 of file RPCMuon.cc.

References m_Sign, and Validation_hcalonly_cfi::sign.

71 { m_Sign = sign; }
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:96

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