test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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.

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:87
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:93
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:96
int m_RefStripNum
Definition: RPCMuon.h:103
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
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, HLT_25ns10e33_v2_cff::quality, and jetcorrextractor::sign().

25 {
26  m_ConeCrdnts = coneCrdnts;
27  m_PtCode = ptCode;
29  m_Sign = sign;
30  m_PatternNum = patternNum;
31  m_FiredPlanes = firedPlanes;
32 }
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:101
double sign(double x)
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:93
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:96
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
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, m_Sign, HLT_25ns10e33_v2_cff::quality, and jetcorrextractor::sign().

38  {
39 
41  m_PtCode = ptCode;
43  m_Sign = sign;
44  m_PatternNum = patternNum;
45  m_FiredPlanes = firedPlanes;
46 }
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:119
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:101
double sign(double x)
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:93
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:96
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90

Member Function Documentation

RPCConst::l1RpcConeCrdnts RPCMuon::getConeCrdnts ( ) const

Definition at line 52 of file RPCMuon.cc.

References m_ConeCrdnts.

52 { return m_ConeCrdnts; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
TDigiLinkVec RPCMuon::getDigiIdxVec ( ) const
inline

Definition at line 79 of file RPCMuon.h.

References m_digiIdxVec.

79 {return m_digiIdxVec;};
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:106
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.

86 { return m_FiredPlanes; }
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:101
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.

83 { return m_LogConeIdx; }
int m_LogConeIdx
Definition: RPCMuon.h:98
int RPCMuon::getLogSector ( ) const

Definition at line 60 of file RPCMuon.cc.

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

Referenced by RPCTBMuon::printDebugInfo().

60 { return m_ConeCrdnts.m_LogSector; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
int RPCMuon::getLogSegment ( ) const

Definition at line 62 of file RPCMuon.cc.

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

Referenced by RPCTBMuon::printDebugInfo().

62 { return m_ConeCrdnts.m_LogSegment; }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
int RPCMuon::getPatternNum ( ) const

Definition at line 76 of file RPCMuon.cc.

References m_PatternNum.

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

Definition at line 66 of file RPCMuon.cc.

References m_PtCode.

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

66 { return m_PtCode; }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
int RPCMuon::getQuality ( ) const

Definition at line 70 of file RPCMuon.cc.

References m_Quality.

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

70 { return m_Quality; }
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
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.

95 { return m_RefStripNum; }
int m_RefStripNum
Definition: RPCMuon.h:103
int RPCMuon::getSign ( ) const

Definition at line 74 of file RPCMuon.cc.

References m_Sign.

Referenced by RPCTBMuon::printDebugInfo().

74 { return m_Sign; }
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:93
int RPCMuon::getTower ( ) const

Definition at line 58 of file RPCMuon.cc.

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

Referenced by RPCTBMuon::printDebugInfo().

58 { return m_ConeCrdnts.m_Tower;}
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
void RPCMuon::setConeCrdnts ( const RPCConst::l1RpcConeCrdnts coneCrdnts)

Definition at line 54 of file RPCMuon.cc.

References m_ConeCrdnts.

Referenced by RPCPac::run().

54  {
55  m_ConeCrdnts = coneCrdnts;
56 }
RPCConst::l1RpcConeCrdnts m_ConeCrdnts
The coordinates of LogCone, in which the muon was found.
Definition: RPCMuon.h:80
void RPCMuon::setDigiIdxVec ( const TDigiLinkVec d)
inline

Definition at line 80 of file RPCMuon.h.

References ztail::d, and m_digiIdxVec.

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

80 {m_digiIdxVec = d;};
tuple d
Definition: ztail.py:151
TDigiLinkVec m_digiIdxVec
Definition: RPCMuon.h:106
void RPCMuon::setLogConeIdx ( int  logConeIdx)

Definition at line 80 of file RPCMuon.cc.

References m_LogConeIdx.

Referenced by RPCPac::run().

80 { m_LogConeIdx = logConeIdx; }
int m_LogConeIdx
Definition: RPCMuon.h:98
void RPCMuon::setPatternNum ( int  patternNum)

Definition at line 78 of file RPCMuon.cc.

References m_PatternNum.

78 { m_PatternNum = patternNum; }
int m_PatternNum
number of pattern (in given Pac), that was fit to this muon.
Definition: RPCMuon.h:96
void RPCMuon::setPtCode ( int  ptCode)

Definition at line 64 of file RPCMuon.cc.

References m_PtCode.

64 { m_PtCode = ptCode; }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
void RPCMuon::setQuality ( int  quality)

Definition at line 68 of file RPCMuon.cc.

References m_Quality, and HLT_25ns10e33_v2_cff::quality.

68 { m_Quality = quality; }
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
void RPCMuon::setRefStripNum ( int  refStripNum)

Definition at line 88 of file RPCMuon.cc.

References m_RefStripNum.

88 { m_RefStripNum = refStripNum; }
int m_RefStripNum
Definition: RPCMuon.h:103
void RPCMuon::setSign ( int  sign)

Definition at line 72 of file RPCMuon.cc.

References m_Sign, and jetcorrextractor::sign().

72 { m_Sign = sign; }
double sign(double x)
unsigned int m_Sign
1 bit, 0 - negative, 1 - positive.
Definition: RPCMuon.h:93

Member Data Documentation

RPCConst::l1RpcConeCrdnts RPCMuon::m_ConeCrdnts
protected

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

TDigiLinkVec RPCMuon::m_digiIdxVec
protected

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(), RPCPacMuon::setPatternNum(), and 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