CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::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::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
uint32_t const *__restrict__ Quality * quality
int getNumber() const
Definition: RPCPattern.cc:67
int getSign() const
Definition: RPCPattern.cc:65
int getCode() const
Definition: RPCPattern.cc:63

Member Function Documentation

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
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
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
void RPCPacMuon::setAll ( const RPCPattern pattern,
int  quality,
unsigned short  firedPlanes 
)

Definition at line 16 of file RPCPacMuon.cc.

References RPCPattern::getCode(), RPCPattern::getNumber(), RPCPattern::getSign(), RPCMuon::m_FiredPlanes, RPCMuon::m_PatternNum, RPCMuon::m_PtCode, RPCMuon::m_Quality, RPCMuon::m_Sign, 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 }
uint32_t const *__restrict__ Quality * quality
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:104
int getNumber() const
Definition: RPCPattern.cc:67
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 getSign() const
Definition: RPCPattern.cc:65
int getCode() const
Definition: RPCPattern.cc:63
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93
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