CMS 3D CMS Logo

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

13  :
14  RPCMuon(pattern.getCode(), quality, pattern.getSign(), pattern.getNumber(), firedPlanes)
15  { }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
int getNumber() const
Definition: RPCPattern.cc:69
int getSign() const
Definition: RPCPattern.cc:67
int getCode() const
Definition: RPCPattern.cc:65

Member Function Documentation

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

Definition at line 29 of file RPCPacMuon.cc.

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

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

Definition at line 67 of file RPCPacMuon.cc.

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

67  {
68  if( this->m_Quality == pacMuon.m_Quality &&
69  this->m_PtCode == pacMuon.m_PtCode &&
70  this->m_Sign == pacMuon.m_Sign)
71  return true;
72  else
73  return false;
74 }
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
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
bool RPCPacMuon::operator> ( const RPCPacMuon pacMuon) const

Definition at line 49 of file RPCPacMuon.cc.

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

49  {
50  if( this->m_Quality > pacMuon.m_Quality)
51  return true;
52  else if( this->m_Quality < pacMuon.m_Quality)
53  return false;
54  else { //==
55  if( this->m_PtCode > pacMuon.m_PtCode)
56  return true;
57  else if( this->m_PtCode < pacMuon.m_PtCode)
58  return false;
59  else { //==
60  if( this->m_Sign < pacMuon.m_Sign)
61  return true;
62  else
63  return false;
64  }
65  }
66 }
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
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
void RPCPacMuon::setAll ( const RPCPattern pattern,
int  quality,
unsigned short  firedPlanes 
)

Definition at line 17 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 HLT_25ns10e33_v2_cff::quality.

Referenced by RPCPac::runEnergeticPatternsGroups().

17  {
18  m_PatternNum = pattern.getNumber();
19  m_PtCode = pattern.getCode();
20  m_Sign = pattern.getSign();
22  m_FiredPlanes = firedPlanes;
23 }
unsigned short m_FiredPlanes
bits of this number denotes fired planes that conform to pattern pattern
Definition: RPCMuon.h:101
int getNumber() const
Definition: RPCPattern.cc:69
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 getSign() const
Definition: RPCPattern.cc:67
int getCode() const
Definition: RPCPattern.cc:65
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
void RPCPacMuon::setPatternNum ( int  patternNum)

Definition at line 25 of file RPCPacMuon.cc.

References RPCMuon::m_PatternNum.

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