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 | 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 19 of file RPCTBMuon.h.

Member Enumeration Documentation

Enumerator
mbtPACOut 
mbtTBSortOut 
mbtTCSortOut 
mbtHSBOut 
mbtFSBOut 
mbtUnset 

Definition at line 21 of file RPCTBMuon.h.

Constructor & Destructor Documentation

RPCTBMuon::RPCTBMuon ( )

Empty muon.

Definition at line 14 of file RPCTBMuon.cc.

References m_EtaAddress, m_GBData, m_Killed, and m_PhiAddress.

14  : RPCMuon() {
15  m_Killed = false;
16 
17  m_GBData = 0;
18 
19  m_EtaAddress = 0;
20  m_PhiAddress = 0;
21 }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
unsigned int m_GBData
Definition: RPCTBMuon.h:126
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:129
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
RPCTBMuon::RPCTBMuon ( int  ptCode,
int  quality,
int  sign,
int  patternNum,
unsigned short  firedPlanes 
)

Definition at line 23 of file RPCTBMuon.cc.

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

24  :
25  RPCMuon(ptCode, quality, sign, patternNum, firedPlanes)
26 {
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:126
double sign(double x)
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:129
MuonBitsType m_muonBitsType
Definition: RPCTBMuon.h:115
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
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.

37  :
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:126
double sign(double x)
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:129
MuonBitsType m_muonBitsType
Definition: RPCTBMuon.h:115
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
RPCTBMuon::RPCTBMuon ( const RPCPacMuon pacMuon)

Definition at line 187 of file RPCTBMuon.cc.

References m_EtaAddress, m_GBData, m_Killed, and m_PhiAddress.

187  :
188  RPCMuon(pacMuon)
189 {
190  m_Killed = false;
191 
192  m_GBData = 0;
193 
194  m_EtaAddress = 0;
195  m_PhiAddress = 0;
196 }
RPCMuon()
Default constructor. No muon.
Definition: RPCMuon.cc:9
unsigned int m_GBData
Definition: RPCTBMuon.h:126
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:129
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117

Member Function Documentation

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

Definition at line 223 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.

223  {
224  if (muonBitsType == mbtPACOut) {
225  PACOut::fromBits(*this, value);
226  }
227  else if (muonBitsType == mbtTBSortOut) {
228  TBOut::fromBits(*this, value);
229  }
230  else if (muonBitsType == mbtTCSortOut) {
231  TCOut::fromBits(*this, value);
232  }
233  else if (muonBitsType == mbtHSBOut) {
234  HSBOut::fromBits(*this, value);
235  }
236  else if (muonBitsType == mbtFSBOut) {
237  FSBOut::fromBits(*this, value);
238  }
239  else {
240  RPCException("unknown value of muonBitsType");
241  //edm::LogError("RPCTrigger")<< "unknown value of where: " + where;
242  }
243 }
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:351
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:323
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:263
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:286
static void fromBits(RPCTBMuon &muon, unsigned int value)
Definition: RPCTBMuon.cc:245
bool RPCTBMuon::gBDataKilledFirst ( ) const

Definition at line 161 of file RPCTBMuon.cc.

References m_GBData.

161 { return (m_GBData & 1);}
unsigned int m_GBData
Definition: RPCTBMuon.h:126
bool RPCTBMuon::gBDataKilledLast ( ) const

Definition at line 163 of file RPCTBMuon.cc.

References m_GBData.

163 { return (m_GBData & 2);}
unsigned int m_GBData
Definition: RPCTBMuon.h:126
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 88 of file RPCTBMuon.cc.

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

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

88  {
89 
90  // 1 bit, 0 - negative, 1 - positive.
91  unsigned int signLocal = 0;
92  if (m_Sign==0) signLocal=1; // invert
93  return (m_Quality<<6 | m_PtCode << 1 | signLocal);
94 
95 }
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
int RPCTBMuon::getContinSegmAddr ( ) const

Definition at line 132 of file RPCTBMuon.cc.

References getSectorAddr(), and getSegmentAddr().

132 { return getSectorAddr()*12 + getSegmentAddr();}
int getSegmentAddr() const
Definition: RPCTBMuon.cc:128
int getSectorAddr() const
Definition: RPCTBMuon.cc:130
int RPCTBMuon::getEtaAddr ( ) const

Definition at line 124 of file RPCTBMuon.cc.

References m_EtaAddress.

Referenced by printDebugInfo().

124 { return m_EtaAddress; }
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
int RPCTBMuon::getGBData ( ) const

Definition at line 144 of file RPCTBMuon.cc.

References m_GBData.

Referenced by printDebugInfo().

144 { return m_GBData;}
unsigned int m_GBData
Definition: RPCTBMuon.h:126
std::string RPCTBMuon::getGBDataBitStr ( ) const

Definition at line 146 of file RPCTBMuon.cc.

References m_GBData, and AlCaHLTBitMon_QueryRunRegistry::string.

146  {
147  std::string str = "00";
148  if (m_GBData == 1)
149  str = "01";
150  else if (m_GBData == 2)
151  str = "10";
152  else if (m_GBData == 3)
153  str = "11";
154  return str;
155 }
unsigned int m_GBData
Definition: RPCTBMuon.h:126
int RPCTBMuon::getPhiAddr ( ) const

Definition at line 126 of file RPCTBMuon.cc.

References m_PhiAddress.

Referenced by printDebugInfo().

126 { return m_PhiAddress; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
int RPCTBMuon::getSectorAddr ( ) const

Definition at line 130 of file RPCTBMuon.cc.

References m_PhiAddress.

Referenced by getContinSegmAddr(), and printDebugInfo().

130 { return (m_PhiAddress & 0xF0)>>4; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
int RPCTBMuon::getSegmentAddr ( ) const

Definition at line 128 of file RPCTBMuon.cc.

References m_PhiAddress.

Referenced by getContinSegmAddr(), and printDebugInfo().

128 { return m_PhiAddress & 15; }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
bool RPCTBMuon::isLive ( ) const
Returns
true = was no-zero muon and was not killed false = is killed or is zero

Definition at line 179 of file RPCTBMuon.cc.

References m_Killed, and RPCMuon::m_PtCode.

179  {
180  if(m_PtCode > 0 && !m_Killed)
181  return true;
182  else return false;
183 }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:129
void RPCTBMuon::kill ( )

Definition at line 167 of file RPCTBMuon.cc.

References m_Killed.

167 { m_Killed = true; }
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:129
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 
57  std::ostringstream sDebugInfo;
58  if (debugFormat==1){ // Human readable
59 
60  sDebugInfo << "TBMuon: code: " << getPtCode()
61  << " etaAddr: " << getEtaAddr()
62  << " phiAddr: " << getPhiAddr()
63  << " sgAddr: " << getSegmentAddr()
64  << " scAddr: " << getSectorAddr()
65  << " gbData: " << getGBData();
66 
67  }
68  else { //technicall
69  sDebugInfo << "TBMuon pt "<< getPtCode()
70  << " ql " <<getQuality()
71  << " sgn " << getSign()
72  << " tw " << getTower()
73  << " sc " << getLogSector()
74  << " sg " << getLogSegment()
75  << " phi " << getPhiAddr()
76  << " eta " << getEtaAddr()
77  << " gbD " << getGBData()
78  << " bits " << toBits(mbtFSBOut);
79  }
80 
81  return sDebugInfo.str();
82 
83 }
int getQuality() const
Definition: RPCMuon.cc:70
int getPtCode() const
Definition: RPCMuon.cc:66
int getSegmentAddr() const
Definition: RPCTBMuon.cc:128
unsigned int toBits() const
Definition: RPCTBMuon.h:106
int getSectorAddr() const
Definition: RPCTBMuon.cc:130
int getLogSector() const
Definition: RPCMuon.cc:60
int getLogSegment() const
Definition: RPCMuon.cc:62
int getTower() const
Definition: RPCMuon.cc:58
int getEtaAddr() const
Definition: RPCTBMuon.cc:124
int getGBData() const
Definition: RPCTBMuon.cc:144
int getPhiAddr() const
Definition: RPCTBMuon.cc:126
int getSign() const
Definition: RPCMuon.cc:74
std::string RPCTBMuon::printExtDebugInfo ( int  ,
int  ,
int   
) const
void RPCTBMuon::setAddress ( int  etaAddr,
int  phiAddr 
)

Definition at line 110 of file RPCTBMuon.cc.

References m_EtaAddress, and m_PhiAddress.

110  {
111  m_EtaAddress = etaAddr;
112  m_PhiAddress = phiAddr;
113 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
void RPCTBMuon::setAddress ( int  tbNumber,
int  tbTower,
int  phiAddr 
)

Definition at line 115 of file RPCTBMuon.cc.

References m_EtaAddress, and m_PhiAddress.

115  {
116  m_EtaAddress = (tbNumber<<2) | tbTower;
117  m_PhiAddress = phiAddr;
118 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
void RPCTBMuon::setCode ( int  code)

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

Definition at line 98 of file RPCTBMuon.cc.

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

Referenced by setCodeAndEtaAddr(), and setCodeAndPhiAddr().

98  {
99  m_Quality = (code & (3<<5))>>5;
100  m_PtCode = code & 31;
101 }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
void RPCTBMuon::setCodeAndEtaAddr ( int  code,
int  etaAddr 
)

Definition at line 139 of file RPCTBMuon.cc.

References m_EtaAddress, and setCode().

139  {
140  setCode(code);
141  m_EtaAddress = etaAddr;
142 }
void setCode(int code)
Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode].
Definition: RPCTBMuon.cc:98
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
void RPCTBMuon::setCodeAndPhiAddr ( int  code,
int  phiAddr 
)

Definition at line 134 of file RPCTBMuon.cc.

References m_PhiAddress, and setCode().

134  {
135  setCode(code);
136  m_PhiAddress = phiAddr;
137 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
void setCode(int code)
Sets combined code: 8 bits [7...5 m_Quality, 4...0 m_PtCode].
Definition: RPCTBMuon.cc:98
void RPCTBMuon::setEtaAddr ( int  etaAddr)

Definition at line 108 of file RPCTBMuon.cc.

References m_EtaAddress.

108 { m_EtaAddress = etaAddr;}
unsigned int m_EtaAddress
Definition: RPCTBMuon.h:117
void RPCTBMuon::setGBData ( unsigned int  gbData)

Definition at line 120 of file RPCTBMuon.cc.

References m_GBData.

120  {
121  m_GBData = gbData;
122 }
unsigned int m_GBData
Definition: RPCTBMuon.h:126
void RPCTBMuon::setGBDataKilledFirst ( )

Definition at line 157 of file RPCTBMuon.cc.

References m_GBData.

157 { m_GBData = m_GBData | 1;}
unsigned int m_GBData
Definition: RPCTBMuon.h:126
void RPCTBMuon::setGBDataKilledLast ( )

Definition at line 159 of file RPCTBMuon.cc.

References m_GBData.

159 { m_GBData = m_GBData | 2; }
unsigned int m_GBData
Definition: RPCTBMuon.h:126
void RPCTBMuon::setPhiAddr ( int  phiAddr)

Definition at line 104 of file RPCTBMuon.cc.

References m_PhiAddress.

104 { m_PhiAddress = phiAddr;}
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
void RPCTBMuon::setSectorAddr ( int  sectorAddr)

Definition at line 106 of file RPCTBMuon.cc.

References m_PhiAddress.

106 { m_PhiAddress = m_PhiAddress | sectorAddr<<4;}
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
unsigned int RPCTBMuon::toBits ( RPCTBMuon::MuonBitsType  muonBitsType) const

Definition at line 200 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().

200  {
201  if (muonBitsType == mbtPACOut) {
202  return PACOut::toBits(*this);
203  }
204  else if (muonBitsType == mbtTBSortOut) {
205  return TBOut::toBits(*this);
206  }
207  else if (muonBitsType == mbtTCSortOut) {
208  return TCOut::toBits(*this);
209  }
210  else if (muonBitsType == mbtHSBOut) {
211  return HSBOut::toBits(*this);
212  }
213  else if (muonBitsType == mbtFSBOut) {
214  return FSBOut::toBits(*this);
215  }
216  else {
217  throw RPCException("unknown value of muonBitsType");
218  //edm::LogError("RPCTrigger")<<"unknown value of where: " + where;
219  }
220  return 0;
221 }
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:309
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:252
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:296
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:273
static unsigned int toBits(const RPCTBMuon &muon)
Definition: RPCTBMuon.cc:332
unsigned int RPCTBMuon::toBits ( ) const
inline

Definition at line 106 of file RPCTBMuon.h.

References m_muonBitsType.

Referenced by printDebugInfo().

106  {
107  return toBits(m_muonBitsType);
108  }
unsigned int toBits() const
Definition: RPCTBMuon.h:106
MuonBitsType m_muonBitsType
Definition: RPCTBMuon.h:115
std::string RPCTBMuon::toString ( int  format) const

Definition at line 366 of file RPCTBMuon.cc.

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

366  {
367  ostringstream ostr;
368  if(format == 0) {
369  ostr<<"qu "<<m_Quality<<", pt "<<setw(2)<<m_PtCode<<", sig "<<m_Sign
370  <<", phi "<<setw(3)<<m_PhiAddress<<", eta "<<setw(2)<<m_EtaAddress;
371  }
372  else if( format == 1) {
373  ostr<<" "<<m_Quality<<" "<<setw(2)<<m_PtCode<<" "<<m_Sign
374  <<" "<<setw(3)<<m_PhiAddress<<" "<<setw(2)<<m_EtaAddress;
375  }
376  else if( format == 2) {
377  ostr<<" "<<m_Quality<<" "<<setw(2)<<m_PtCode<<" "<<m_Sign;
378  }
379 
380  return ostr.str();
381 }
unsigned int m_PhiAddress
Definition: RPCTBMuon.h:119
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_EtaAddress
Definition: RPCTBMuon.h:117
unsigned int m_Quality
3 bits, 0-7.
Definition: RPCMuon.h:90
bool RPCTBMuon::wasKilled ( ) const
Returns
true = was non-empty muon and was killed false = was not killed or is zero

Definition at line 171 of file RPCTBMuon.cc.

References m_Killed, and RPCMuon::m_PtCode.

171  {
172  if(m_PtCode > 0 && m_Killed)
173  return true;
174  else return false;
175 }
unsigned int m_PtCode
5 bits, 0-31.
Definition: RPCMuon.h:87
bool m_Killed
true means that muon was killed during GB
Definition: RPCTBMuon.h:129

Friends And Related Function Documentation

friend class FSBOut
friend

Definition at line 202 of file RPCTBMuon.h.

friend class HSBOut
friend

Definition at line 189 of file RPCTBMuon.h.

friend class PACOut
friend

Definition at line 146 of file RPCTBMuon.h.

friend class TBOut
friend

Definition at line 161 of file RPCTBMuon.h.

friend class TCOut
friend

Definition at line 175 of file RPCTBMuon.h.

Member Data Documentation

unsigned int RPCTBMuon::m_EtaAddress
private
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 126 of file RPCTBMuon.h.

Referenced by RPCTBMuon::TBOut::fromBits(), RPCTBMuon::TCOut::fromBits(), gBDataKilledFirst(), gBDataKilledLast(), getGBData(), getGBDataBitStr(), RPCTBMuon(), setGBData(), setGBDataKilledFirst(), setGBDataKilledLast(), RPCTBMuon::TBOut::toBits(), and RPCTBMuon::TCOut::toBits().

bool RPCTBMuon::m_Killed
private

true means that muon was killed during GB

Definition at line 129 of file RPCTBMuon.h.

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

MuonBitsType RPCTBMuon::m_muonBitsType
private

Definition at line 115 of file RPCTBMuon.h.

Referenced by RPCTBMuon(), and toBits().

unsigned int RPCTBMuon::m_PhiAddress
private