CMS 3D CMS Logo

List of all members | Public Member Functions
RPCPacMuon Class Reference

#include <RPCPacMuon.h>

Inheritance diagram for RPCPacMuon:
RPCMuon

Public Member Functions

bool operator< (const RPCPacMuon &pacMuon) const
 
bool operator== (const RPCPacMuon &pacMuon) const
 
bool operator> (const RPCPacMuon &pacMuon) const
 
 RPCPacMuon ()
 Default constructor. No muon. More...
 
 RPCPacMuon (const RPCPattern &pattern, int quality, unsigned short firedPlanes)
 Constructor. More...
 
void setAll (const RPCPattern &pattern, int quality, unsigned short firedPlanes)
 
void setPatternNum (int patternNum)
 
- Public Member Functions inherited from RPCMuon
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)
 

Additional Inherited Members

- Public Types inherited from RPCMuon
typedef std::vector< TDigiLinkTDigiLinkVec
 
- Protected Attributes inherited from RPCMuon
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

Muon candidate found by m_PAC for one LogCone. Containes the compare operators used during sorting inside the m_PAC. The m_PAC sets for muon its cone coordinates.

Author
Karol Bunkowski (Warsaw)

Definition at line 15 of file RPCPacMuon.h.

Constructor & Destructor Documentation

◆ RPCPacMuon() [1/2]

RPCPacMuon::RPCPacMuon ( )

Default constructor. No muon.

Definition at line 10 of file RPCPacMuon.cc.

10 : RPCMuon() {}
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9

◆ RPCPacMuon() [2/2]

RPCPacMuon::RPCPacMuon ( const RPCPattern pattern,
int  quality,
unsigned short  firedPlanes 
)

Constructor.

Definition at line 13 of file RPCPacMuon.cc.

14  : RPCMuon(pattern.getCode(), quality, pattern.getSign(), pattern.getNumber(), firedPlanes) {}
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
string quality

Member Function Documentation

◆ operator<()

bool RPCPacMuon::operator< ( const RPCPacMuon pacMuon) const

Definition at line 26 of file RPCPacMuon.cc.

References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.

26  {
27  if (this->m_Quality < pacMuon.m_Quality)
28  return true;
29  else if (this->m_Quality > pacMuon.m_Quality)
30  return false;
31  else { //==
32  if (this->m_PtCode < pacMuon.m_PtCode)
33  return true;
34  else if (this->m_PtCode > pacMuon.m_PtCode)
35  return false;
36  else { //==
37  //if( this->m_Sign < pacMuon.m_Sign)
38  if (this->m_Sign > pacMuon.m_Sign)
39  return true;
40  else
41  return false;
42  }
43  }
44 }
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
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93

◆ operator==()

bool RPCPacMuon::operator== ( const RPCPacMuon pacMuon) const

Definition at line 64 of file RPCPacMuon.cc.

References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.

64  {
65  if (this->m_Quality == pacMuon.m_Quality && this->m_PtCode == pacMuon.m_PtCode && this->m_Sign == pacMuon.m_Sign)
66  return true;
67  else
68  return false;
69 }
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
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93

◆ operator>()

bool RPCPacMuon::operator> ( const RPCPacMuon pacMuon) const

Definition at line 46 of file RPCPacMuon.cc.

References RPCMuon::m_PtCode, RPCMuon::m_Quality, and RPCMuon::m_Sign.

46  {
47  if (this->m_Quality > pacMuon.m_Quality)
48  return true;
49  else if (this->m_Quality < pacMuon.m_Quality)
50  return false;
51  else { //==
52  if (this->m_PtCode > pacMuon.m_PtCode)
53  return true;
54  else if (this->m_PtCode < pacMuon.m_PtCode)
55  return false;
56  else { //==
57  if (this->m_Sign < pacMuon.m_Sign)
58  return true;
59  else
60  return false;
61  }
62  }
63 }
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
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93

◆ setAll()

void RPCPacMuon::setAll ( const RPCPattern pattern,
int  quality,
unsigned short  firedPlanes 
)

Definition at line 16 of file RPCPacMuon.cc.

References RPCMuon::m_FiredPlanes, RPCMuon::m_PatternNum, RPCMuon::m_PtCode, RPCMuon::m_Quality, RPCMuon::m_Sign, topSingleLeptonDQM_PU_cfi::pattern, and quality.

Referenced by RPCPac::runEnergeticPatternsGroups().

16  {
17  m_PatternNum = pattern.getNumber();
18  m_PtCode = pattern.getCode();
19  m_Sign = pattern.getSign();
21  m_FiredPlanes = firedPlanes;
22 }
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
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
string quality

◆ setPatternNum()

void RPCPacMuon::setPatternNum ( int  patternNum)

Definition at line 24 of file RPCPacMuon.cc.

References RPCMuon::m_PatternNum.

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