CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes | Friends
RPCTBMuon Class Reference

#include <RPCTBMuon.h>

Inheritance diagram for RPCTBMuon:
RPCMuon

Classes

class  FSBOut
 
class  HSBOut
 
class  PACOut
 
class  TBOut
 
class  TCOut
 
struct  TMuonMore
 Used in sorting. More...
 

Public Types

enum  MuonBitsType {
  mbtPACOut, mbtTBSortOut, mbtTCSortOut, mbtHSBOut,
  mbtFSBOut, mbtUnset
}
 
- Public Types inherited from RPCMuon
typedef std::vector< TDigiLinkTDigiLinkVec
 

Public Member Functions

void fromBits (MuonBitsType muonBitsType, unsigned int value)
 
bool gBDataKilledFirst () const
 
bool gBDataKilledLast () const
 
int getCode () const
 Combined quality and ptCode, 8 bits [7...6 m_Quality, 5...1 m_PtCode, 0 sign], used in GhoustBusters. More...
 
int getContinSegmAddr () const
 
int getEtaAddr () const
 
int getGBData () const
 
std::string getGBDataBitStr () const
 
int getPhiAddr () const
 
int getSectorAddr () const
 
int getSegmentAddr () const
 
bool isLive () const
 
void kill ()
 
std::string printDebugInfo (int debugFormat) const
 Gives debuging info in human readable format (1) or technicall format (2) More...
 
std::string printExtDebugInfo (int, int, int) const
 
 RPCTBMuon ()
 Empty muon. More...
 
 RPCTBMuon (int ptCode, int quality, int sign, int patternNum, unsigned short firedPlanes)
 
 RPCTBMuon (int ptCode, int quality, int sign, MuonBitsType muonBitsType)
 
 RPCTBMuon (const RPCPacMuon &pacMuon)
 
void setAddress (int etaAddr, int phiAddr)
 
void setAddress (int tbNumber, int tbTower, int phiAddr)
 
void setCode (int code)
 Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode]. More...
 
void setCodeAndEtaAddr (int code, int etaAddr)
 
void setCodeAndPhiAddr (int code, int phiAddr)
 
void setEtaAddr (int etaAddr)
 
void setGBData (unsigned int gbData)
 
void setGBDataKilledFirst ()
 
void setGBDataKilledLast ()
 
void setPhiAddr (int phiAddr)
 
void setSectorAddr (int sectorAddr)
 
unsigned int toBits (MuonBitsType muonBitsType) const
 
unsigned int toBits () const
 
std::string toString (int format) const
 
bool wasKilled () const
 
- 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)
 

Private Attributes

unsigned int m_EtaAddress
 
unsigned int m_GBData
 
bool m_Killed
 true means that muon was killed during GB More...
 
MuonBitsType m_muonBitsType
 
unsigned int m_PhiAddress
 

Friends

class FSBOut
 
class HSBOut
 
class PACOut
 
class TBOut
 
class TCOut
 

Additional Inherited Members

- 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

Used in Ghoust Busters and sorters. Has additionall filds: m_Killed, m_GBData, m_EtaAddress, m_PhiAddress need in these algorithms.

Author
Karol Bunkowski (Warsaw)

Definition at line 17 of file RPCTBMuon.h.

Member Enumeration Documentation

◆ MuonBitsType

Enumerator
mbtPACOut 
mbtTBSortOut 
mbtTCSortOut 
mbtHSBOut 
mbtFSBOut 
mbtUnset 

Definition at line 19 of file RPCTBMuon.h.

Constructor & Destructor Documentation

◆ RPCTBMuon() [1/4]

RPCTBMuon::RPCTBMuon ( )

Empty muon.

Definition at line 14 of file RPCTBMuon.cc.

References m_EtaAddress, m_GBData, m_Killed, m_muonBitsType, m_PhiAddress, and mbtUnset.

14  : RPCMuon() {
15  m_Killed = false;
16 
17  m_GBData = 0;
18 
19  m_EtaAddress = 0;
20  m_PhiAddress = 0;
21 
23 }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
unsigned int m_GBData
Definition: RPCTBMuon.h:113
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:116
MuonBitsType m_muonBitsType
Definition: RPCTBMuon.h:102
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104

◆ RPCTBMuon() [2/4]

RPCTBMuon::RPCTBMuon ( int  ptCode,
int  quality,
int  sign,
int  patternNum,
unsigned short  firedPlanes 
)

Definition at line 25 of file RPCTBMuon.cc.

References m_EtaAddress, m_GBData, m_Killed, m_muonBitsType, m_PhiAddress, and mbtUnset.

26  : RPCMuon(ptCode, quality, sign, patternNum, firedPlanes) {
27  m_Killed = false;
28 
29  m_GBData = 0;
30 
31  m_EtaAddress = 0;
32  m_PhiAddress = 0;
33 
35 }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
unsigned int m_GBData
Definition: RPCTBMuon.h:113
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:116
MuonBitsType m_muonBitsType
Definition: RPCTBMuon.h:102
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104
string quality

◆ RPCTBMuon() [3/4]

RPCTBMuon::RPCTBMuon ( int  ptCode,
int  quality,
int  sign,
MuonBitsType  muonBitsType 
)

Definition at line 37 of file RPCTBMuon.cc.

References m_EtaAddress, m_GBData, m_Killed, m_muonBitsType, and m_PhiAddress.

38  : RPCMuon(ptCode, quality, sign, 0, 0) {
39  m_Killed = false;
40 
41  m_GBData = 0;
42 
43  m_EtaAddress = 0;
44  m_PhiAddress = 0;
45 
46  m_muonBitsType = muonBitsType;
47 }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
unsigned int m_GBData
Definition: RPCTBMuon.h:113
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:116
MuonBitsType m_muonBitsType
Definition: RPCTBMuon.h:102
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104
string quality

◆ RPCTBMuon() [4/4]

RPCTBMuon::RPCTBMuon ( const RPCPacMuon pacMuon)

Definition at line 170 of file RPCTBMuon.cc.

References m_EtaAddress, m_GBData, m_Killed, and m_PhiAddress.

170  : RPCMuon(pacMuon) {
171  m_Killed = false;
172 
173  m_GBData = 0;
174 
175  m_EtaAddress = 0;
176  m_PhiAddress = 0;
177 }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
unsigned int m_GBData
Definition: RPCTBMuon.h:113
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:116
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104

Member Function Documentation

◆ fromBits()

void RPCTBMuon::fromBits ( RPCTBMuon::MuonBitsType  muonBitsType,
unsigned int  value 
)

Definition at line 199 of file RPCTBMuon.cc.

References RPCTBMuon::PACOut::fromBits(), RPCTBMuon::TBOut::fromBits(), RPCTBMuon::TCOut::fromBits(), RPCTBMuon::HSBOut::fromBits(), RPCTBMuon::FSBOut::fromBits(), mbtFSBOut, mbtHSBOut, mbtPACOut, mbtTBSortOut, and mbtTCSortOut.

199  {
200  if (muonBitsType == mbtPACOut) {
201  PACOut::fromBits(*this, value);
202  } else if (muonBitsType == mbtTBSortOut) {
203  TBOut::fromBits(*this, value);
204  } else if (muonBitsType == mbtTCSortOut) {
205  TCOut::fromBits(*this, value);
206  } else if (muonBitsType == mbtHSBOut) {
207  HSBOut::fromBits(*this, value);
208  } else if (muonBitsType == mbtFSBOut) {
209  FSBOut::fromBits(*this, value);
210  } else {
211  RPCException("unknown value of muonBitsType");
212  //edm::LogError("RPCTrigger")<< "unknown value of where: " + where;
213  }
214 }
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:367
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:329
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:240
Definition: value.py:1
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:275
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:216

◆ gBDataKilledFirst()

bool RPCTBMuon::gBDataKilledFirst ( ) const

Definition at line 143 of file RPCTBMuon.cc.

References m_GBData.

143 { return (m_GBData & 1); }
unsigned int m_GBData
Definition: RPCTBMuon.h:113

◆ gBDataKilledLast()

bool RPCTBMuon::gBDataKilledLast ( ) const

Definition at line 145 of file RPCTBMuon.cc.

References m_GBData.

145 { return (m_GBData & 2); }
unsigned int m_GBData
Definition: RPCTBMuon.h:113

◆ getCode()

int RPCTBMuon::getCode ( ) const

Combined quality and ptCode, 8 bits [7...6 m_Quality, 5...1 m_PtCode, 0 sign], used in GhoustBusters.

Definition at line 74 of file RPCTBMuon.cc.

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

Referenced by RPCTBMuon::TMuonMore::operator()().

74  {
75  // 1 bit, 0 - negative, 1 - positive.
76  unsigned int signLocal = 0;
77  if (m_Sign == 0)
78  signLocal = 1; // invert
79  return (m_Quality << 6 | m_PtCode << 1 | signLocal);
80 }
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

◆ getContinSegmAddr()

int RPCTBMuon::getContinSegmAddr ( ) const

Definition at line 114 of file RPCTBMuon.cc.

References getSectorAddr(), and getSegmentAddr().

114 { return getSectorAddr() * 12 + getSegmentAddr(); }
int getSectorAddr() const
Definition: RPCTBMuon.cc:112
int getSegmentAddr() const
Definition: RPCTBMuon.cc:110

◆ getEtaAddr()

int RPCTBMuon::getEtaAddr ( ) const

Definition at line 106 of file RPCTBMuon.cc.

References m_EtaAddress.

Referenced by printDebugInfo().

106 { return m_EtaAddress; }
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104

◆ getGBData()

int RPCTBMuon::getGBData ( ) const

Definition at line 126 of file RPCTBMuon.cc.

References m_GBData.

Referenced by printDebugInfo().

126 { return m_GBData; }
unsigned int m_GBData
Definition: RPCTBMuon.h:113

◆ getGBDataBitStr()

std::string RPCTBMuon::getGBDataBitStr ( ) const

Definition at line 128 of file RPCTBMuon.cc.

References m_GBData, str, and AlCaHLTBitMon_QueryRunRegistry::string.

128  {
129  std::string str = "00";
130  if (m_GBData == 1)
131  str = "01";
132  else if (m_GBData == 2)
133  str = "10";
134  else if (m_GBData == 3)
135  str = "11";
136  return str;
137 }
unsigned int m_GBData
Definition: RPCTBMuon.h:113
#define str(s)

◆ getPhiAddr()

int RPCTBMuon::getPhiAddr ( ) const

Definition at line 108 of file RPCTBMuon.cc.

References m_PhiAddress.

Referenced by printDebugInfo().

108 { return m_PhiAddress; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106

◆ getSectorAddr()

int RPCTBMuon::getSectorAddr ( ) const

Definition at line 112 of file RPCTBMuon.cc.

References m_PhiAddress.

Referenced by getContinSegmAddr(), and printDebugInfo().

112 { return (m_PhiAddress & 0xF0) >> 4; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106

◆ getSegmentAddr()

int RPCTBMuon::getSegmentAddr ( ) const

Definition at line 110 of file RPCTBMuon.cc.

References m_PhiAddress.

Referenced by getContinSegmAddr(), and printDebugInfo().

110 { return m_PhiAddress & 15; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106

◆ isLive()

bool RPCTBMuon::isLive ( ) const
Returns
true = was no-zero muon and was not killed false = is killed or is zero

Definition at line 161 of file RPCTBMuon.cc.

References m_Killed, and RPCMuon::m_PtCode.

161  {
162  if (m_PtCode > 0 && !m_Killed)
163  return true;
164  else
165  return false;
166 }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:116

◆ kill()

void RPCTBMuon::kill ( )

Definition at line 148 of file RPCTBMuon.cc.

References m_Killed.

148 { m_Killed = true; }
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:116

◆ printDebugInfo()

std::string RPCTBMuon::printDebugInfo ( int  debugFormat) const

Gives debuging info in human readable format (1) or technicall format (2)

Note
Possible debugFormat codes (1,2) are defined in RPCTrigger constructor

Definition at line 55 of file RPCTBMuon.cc.

References getEtaAddr(), getGBData(), RPCMuon::getLogSector(), RPCMuon::getLogSegment(), getPhiAddr(), RPCMuon::getPtCode(), RPCMuon::getQuality(), getSectorAddr(), getSegmentAddr(), RPCMuon::getSign(), RPCMuon::getTower(), mbtFSBOut, and toBits().

55  {
56  std::ostringstream sDebugInfo;
57  if (debugFormat == 1) { // Human readable
58 
59  sDebugInfo << "TBMuon: code: " << getPtCode() << " etaAddr: " << getEtaAddr() << " phiAddr: " << getPhiAddr()
60  << " sgAddr: " << getSegmentAddr() << " scAddr: " << getSectorAddr() << " gbData: " << getGBData();
61 
62  } else { //technicall
63  sDebugInfo << "TBMuon pt " << getPtCode() << " ql " << getQuality() << " sgn " << getSign() << " tw " << getTower()
64  << " sc " << getLogSector() << " sg " << getLogSegment() << " phi " << getPhiAddr() << " eta "
65  << getEtaAddr() << " gbD " << getGBData() << " bits " << toBits(mbtFSBOut);
66  }
67 
68  return sDebugInfo.str();
69 }
int getPhiAddr() const
Definition: RPCTBMuon.cc:108
int getEtaAddr() const
Definition: RPCTBMuon.cc:106
int getGBData() const
Definition: RPCTBMuon.cc:126
int getTower() const
Definition: RPCMuon.cc:57
int getLogSegment() const
Definition: RPCMuon.cc:61
int getSectorAddr() const
Definition: RPCTBMuon.cc:112
int getSign() const
Definition: RPCMuon.cc:73
int getSegmentAddr() const
Definition: RPCTBMuon.cc:110
int getPtCode() const
Definition: RPCMuon.cc:65
unsigned int toBits() const
Definition: RPCTBMuon.h:95
int getQuality() const
Definition: RPCMuon.cc:69
int getLogSector() const
Definition: RPCMuon.cc:59

◆ printExtDebugInfo()

std::string RPCTBMuon::printExtDebugInfo ( int  ,
int  ,
int   
) const

◆ setAddress() [1/2]

void RPCTBMuon::setAddress ( int  etaAddr,
int  phiAddr 
)

Definition at line 94 of file RPCTBMuon.cc.

References m_EtaAddress, and m_PhiAddress.

94  {
95  m_EtaAddress = etaAddr;
96  m_PhiAddress = phiAddr;
97 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104

◆ setAddress() [2/2]

void RPCTBMuon::setAddress ( int  tbNumber,
int  tbTower,
int  phiAddr 
)

Definition at line 99 of file RPCTBMuon.cc.

References m_EtaAddress, and m_PhiAddress.

99  {
100  m_EtaAddress = (tbNumber << 2) | tbTower;
101  m_PhiAddress = phiAddr;
102 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104

◆ setCode()

void RPCTBMuon::setCode ( int  code)

Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode].

Definition at line 83 of file RPCTBMuon.cc.

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

Referenced by setCodeAndEtaAddr(), and setCodeAndPhiAddr().

83  {
84  m_Quality = (code & (3 << 5)) >> 5;
85  m_PtCode = code & 31;
86 }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93

◆ setCodeAndEtaAddr()

void RPCTBMuon::setCodeAndEtaAddr ( int  code,
int  etaAddr 
)

Definition at line 121 of file RPCTBMuon.cc.

References m_EtaAddress, and setCode().

121  {
122  setCode(code);
123  m_EtaAddress = etaAddr;
124 }
void setCode(int code)
Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode].
Definition: RPCTBMuon.cc:83
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104

◆ setCodeAndPhiAddr()

void RPCTBMuon::setCodeAndPhiAddr ( int  code,
int  phiAddr 
)

Definition at line 116 of file RPCTBMuon.cc.

References m_PhiAddress, and setCode().

116  {
117  setCode(code);
118  m_PhiAddress = phiAddr;
119 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
void setCode(int code)
Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode].
Definition: RPCTBMuon.cc:83

◆ setEtaAddr()

void RPCTBMuon::setEtaAddr ( int  etaAddr)

Definition at line 92 of file RPCTBMuon.cc.

References m_EtaAddress.

92 { m_EtaAddress = etaAddr; }
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:104

◆ setGBData()

void RPCTBMuon::setGBData ( unsigned int  gbData)

Definition at line 104 of file RPCTBMuon.cc.

References m_GBData.

104 { m_GBData = gbData; }
unsigned int m_GBData
Definition: RPCTBMuon.h:113

◆ setGBDataKilledFirst()

void RPCTBMuon::setGBDataKilledFirst ( )

Definition at line 139 of file RPCTBMuon.cc.

References m_GBData.

139 { m_GBData = m_GBData | 1; }
unsigned int m_GBData
Definition: RPCTBMuon.h:113

◆ setGBDataKilledLast()

void RPCTBMuon::setGBDataKilledLast ( )

Definition at line 141 of file RPCTBMuon.cc.

References m_GBData.

141 { m_GBData = m_GBData | 2; }
unsigned int m_GBData
Definition: RPCTBMuon.h:113

◆ setPhiAddr()

void RPCTBMuon::setPhiAddr ( int  phiAddr)

Definition at line 88 of file RPCTBMuon.cc.

References m_PhiAddress.

88 { m_PhiAddress = phiAddr; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106

◆ setSectorAddr()

void RPCTBMuon::setSectorAddr ( int  sectorAddr)

Definition at line 90 of file RPCTBMuon.cc.

References m_PhiAddress.

90 { m_PhiAddress = m_PhiAddress | sectorAddr << 4; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106

◆ toBits() [1/2]

unsigned int RPCTBMuon::toBits ( RPCTBMuon::MuonBitsType  muonBitsType) const

Definition at line 181 of file RPCTBMuon.cc.

References mbtFSBOut, mbtHSBOut, mbtPACOut, mbtTBSortOut, mbtTCSortOut, RPCTBMuon::PACOut::toBits(), RPCTBMuon::TBOut::toBits(), RPCTBMuon::TCOut::toBits(), RPCTBMuon::HSBOut::toBits(), and RPCTBMuon::FSBOut::toBits().

181  {
182  if (muonBitsType == mbtPACOut) {
183  return PACOut::toBits(*this);
184  } else if (muonBitsType == mbtTBSortOut) {
185  return TBOut::toBits(*this);
186  } else if (muonBitsType == mbtTCSortOut) {
187  return TCOut::toBits(*this);
188  } else if (muonBitsType == mbtHSBOut) {
189  return HSBOut::toBits(*this);
190  } else if (muonBitsType == mbtFSBOut) {
191  return FSBOut::toBits(*this);
192  } else {
193  throw RPCException("unknown value of muonBitsType");
194  //edm::LogError("RPCTrigger")<<"unknown value of where: " + where;
195  }
196  return 0;
197 }
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:310
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:226
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:291
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:256
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:343

◆ toBits() [2/2]

unsigned int RPCTBMuon::toBits ( ) const
inline

Definition at line 95 of file RPCTBMuon.h.

References m_muonBitsType, and toBits().

Referenced by printDebugInfo(), and toBits().

95 { return toBits(m_muonBitsType); }
unsigned int toBits() const
Definition: RPCTBMuon.h:95
MuonBitsType m_muonBitsType
Definition: RPCTBMuon.h:102

◆ toString()

std::string RPCTBMuon::toString ( int  format) const

Definition at line 386 of file RPCTBMuon.cc.

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

386  {
387  ostringstream ostr;
388  if (format == 0) {
389  ostr << "qu " << m_Quality << ", pt " << setw(2) << m_PtCode << ", sig " << m_Sign << ", phi " << setw(3)
390  << m_PhiAddress << ", eta " << setw(2) << m_EtaAddress;
391  } else if (format == 1) {
392  ostr << " " << m_Quality << " " << setw(2) << m_PtCode << " " << m_Sign << " " << setw(3) << m_PhiAddress << " "
393  << setw(2) << m_EtaAddress;
394  } else if (format == 2) {
395  ostr << " " << m_Quality << " " << setw(2) << m_PtCode << " " << m_Sign;
396  }
397 
398  return ostr.str();
399 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:106
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_EtaAddress
Definition: RPCTBMuon.h:104
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:93

◆ wasKilled()

bool RPCTBMuon::wasKilled ( ) const
Returns
true = was non-empty muon and was killed false = was not killed or is zero

Definition at line 152 of file RPCTBMuon.cc.

References m_Killed, and RPCMuon::m_PtCode.

152  {
153  if (m_PtCode > 0 && m_Killed)
154  return true;
155  else
156  return false;
157 }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:90
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:116

Friends And Related Function Documentation

◆ FSBOut

friend class FSBOut
friend

Definition at line 215 of file RPCTBMuon.h.

◆ HSBOut

friend class HSBOut
friend

Definition at line 196 of file RPCTBMuon.h.

◆ PACOut

friend class PACOut
friend

Definition at line 135 of file RPCTBMuon.h.

◆ TBOut

friend class TBOut
friend

Definition at line 156 of file RPCTBMuon.h.

◆ TCOut

friend class TCOut
friend

Definition at line 177 of file RPCTBMuon.h.

Member Data Documentation

◆ m_EtaAddress

unsigned int RPCTBMuon::m_EtaAddress
private

Definition at line 104 of file RPCTBMuon.h.

Referenced by getEtaAddr(), RPCTBMuon(), setAddress(), setCodeAndEtaAddr(), setEtaAddr(), and toString().

◆ m_GBData

unsigned int RPCTBMuon::m_GBData
private

2 bits, 0 00 - this muon did not kill nothing on the sector edge 1 01 - this muon killed muon from segment 0 (the "right" sector edge), or is in segment 0 2 10 - this muon killed muon from segment 11 (the "left" sector edge), or is in segment 11 3 11 - this muon killed muon from segment 0 and 11

Definition at line 113 of file RPCTBMuon.h.

Referenced by gBDataKilledFirst(), gBDataKilledLast(), getGBData(), getGBDataBitStr(), RPCTBMuon(), setGBData(), setGBDataKilledFirst(), and setGBDataKilledLast().

◆ m_Killed

bool RPCTBMuon::m_Killed
private

true means that muon was killed during GB

Definition at line 116 of file RPCTBMuon.h.

Referenced by isLive(), kill(), RPCTBMuon(), and wasKilled().

◆ m_muonBitsType

MuonBitsType RPCTBMuon::m_muonBitsType
private

Definition at line 102 of file RPCTBMuon.h.

Referenced by RPCTBMuon(), and toBits().

◆ m_PhiAddress

unsigned int RPCTBMuon::m_PhiAddress
private