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 | Private Attributes | Friends
AlgoMuon Class Reference

#include <AlgoMuon.h>

Inheritance diagram for AlgoMuon:
AlgoMuonBase

Public Member Functions

 AlgoMuon ()
 
 AlgoMuon (int disc=-999, int phi=9999, int eta=99, int refLayer=-1, int hits=0, int q=-1, int bx=0, int pt=-1, int charge=99)
 
 AlgoMuon ()
 
 AlgoMuon (const GoldenPatternResult &gpResult, GoldenPatternBase *gp, unsigned int refHitNumber, int bx=0)
 
int getBx () const
 
int getBx () const
 
int getCharge () const
 
int getCharge () const
 
PdfValueType getDisc () const
 
int getDisc () const
 
int getEta () const
 
int getEtaHw () const override
 
unsigned int getFiredLayerBits () const
 
unsigned int getFiredLayerCnt () const override
 
GoldenPatternBasegetGoldenPatern () const
 
const GoldenPatternResultgetGpResult () const
 
int getHits () const
 
unsigned int getHwPatternNumber () const
 
unsigned int getPatternNumber () const
 
unsigned int getPatternNumber () const
 
double getPdfSum () const override
 
int getPhi () const
 
int getPhi () const
 
int getPhiRHit () const
 
int getPhiRHit () const
 
int getPt () const
 
int getPt () const
 
int getQ () const
 
int getQ () const
 
unsigned int getRefHitNumber () const
 
unsigned int getRefHitNumber () const
 
int getRefLayer () const
 
int getRefLayer () const
 
const StubResultgetStubResult (unsigned int iLayer) const override
 
const StubResultsgetStubResults () const override
 
const bool isKilled () const
 
bool isValid () const
 
bool isValid () const override
 
void kill ()
 
bool operator< (const AlgoMuon &o) const
 
bool operator< (const AlgoMuon &o) const
 
void setBx (int bx)
 
void setCharge (int charge)
 
void setDisc (int disc)
 
void setEta (int eta)
 
void setEta (int eta)
 
void setHits (int hits)
 
void setPatternNumber (unsigned int aPatNum)
 
void setPhi (int phi)
 
void setPhiRHit (int phiRHit)
 
void setPt (int pt)
 
void setQ (int q)
 
void setQ (int q)
 
void setRefHitNumber (unsigned int aRefHitNum)
 
void setRefHitNumber (unsigned int aRefHitNum)
 
void setRefLayer (int refLayer)
 
 ~AlgoMuon () override
 
virtual ~AlgoMuon ()
 
- Public Member Functions inherited from AlgoMuonBase
 AlgoMuonBase ()
 
 AlgoMuonBase (const ProcConfigurationBase *config)
 
boost::dynamic_bitset getFiredLayerBits () const
 
virtual unsigned int getFiredLayerCnt (int bx) const
 
virtual bool isLayerFired (unsigned int iLayer, unsigned int bx) const
 
virtual ~AlgoMuonBase ()
 

Private Attributes

GoldenPatternBasegoldenPatern = nullptr
 
GoldenPatternResult gpResult
 FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy. More...
 
unsigned int index = 0
 
bool killed = false
 
int m_bx = 0
 
int m_charge
 
int m_disc
 
int m_eta
 
int m_hits
 
unsigned int m_patNumb
 
int m_phi
 
int m_phiRHit
 
int m_pt
 
int m_q = -1
 
int m_refLayer
 
unsigned int m_rhitNumb = 0
 

Friends

std::ostream & operator<< (std::ostream &out, const AlgoMuon &o)
 
std::ostream & operator<< (std::ostream &out, const AlgoMuon &o)
 

Additional Inherited Members

- Protected Attributes inherited from AlgoMuonBase
std::vector
< boost::dynamic_bitset<> > 
firedLayerBitsInBx
 bits representing fired logicLayers (including bending layers), More...
 

Detailed Description

Definition at line 6 of file AlgoMuon.h.

Constructor & Destructor Documentation

AlgoMuon::AlgoMuon ( )
inline

Definition at line 9 of file AlgoMuon.h.

10  : m_disc(-999), m_phi(9999), m_eta(99), m_refLayer(-1), m_hits(0), m_q(-1), m_bx(0), m_pt(-1), m_charge(99) {}
int m_refLayer
Definition: AlgoMuon.h:70
int m_eta
Definition: AlgoMuon.h:69
int m_q
Definition: AlgoMuon.h:72
int m_pt
Definition: AlgoMuon.h:74
int m_bx
Definition: AlgoMuon.h:73
int m_hits
Definition: AlgoMuon.h:71
int m_charge
Definition: AlgoMuon.h:75
int m_phi
Definition: AlgoMuon.h:68
int m_disc
Definition: AlgoMuon.h:67
AlgoMuon::AlgoMuon ( int  disc = -999,
int  phi = 9999,
int  eta = 99,
int  refLayer = -1,
int  hits = 0,
int  q = -1,
int  bx = 0,
int  pt = -1,
int  charge = 99 
)
inline

Definition at line 11 of file AlgoMuon.h.

20  : m_disc(disc),
21  m_phi(phi),
22  m_eta(eta),
23  m_refLayer(refLayer),
24  m_hits(hits),
25  m_q(q),
26  m_bx(bx),
27  m_pt(pt),
29  m_patNumb(999),
30  m_rhitNumb(999) {}
int m_refLayer
Definition: AlgoMuon.h:70
int m_eta
Definition: AlgoMuon.h:69
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
unsigned int m_patNumb
Definition: AlgoMuon.h:79
int m_q
Definition: AlgoMuon.h:72
int m_pt
Definition: AlgoMuon.h:74
int m_bx
Definition: AlgoMuon.h:73
int m_hits
Definition: AlgoMuon.h:71
int m_charge
Definition: AlgoMuon.h:75
int m_phi
Definition: AlgoMuon.h:68
int m_disc
Definition: AlgoMuon.h:67
virtual AlgoMuon::~AlgoMuon ( )
inlinevirtual

Definition at line 32 of file AlgoMuon.h.

32 {}
AlgoMuon::AlgoMuon ( )
inline

Definition at line 11 of file AlgoMuon.h.

11 : AlgoMuonBase() {}
AlgoMuon::AlgoMuon ( const GoldenPatternResult gpResult,
GoldenPatternBase gp,
unsigned int  refHitNumber,
int  bx = 0 
)
inline

Definition at line 13 of file AlgoMuon.h.

14  : AlgoMuonBase(gp->getConfig()),
15  gpResult(gpResult),
16  goldenPatern(gp),
17  m_q(gpResult.getFiredLayerCnt()), //initial value of quality, can be altered later
18  m_bx(bx),
19  m_rhitNumb(refHitNumber) {}
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
unsigned int getFiredLayerCnt() const
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89
int m_q
Definition: AlgoMuon.h:72
const OMTFConfiguration * getConfig() const
int m_bx
Definition: AlgoMuon.h:73
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
AlgoMuon::~AlgoMuon ( )
inlineoverride

Definition at line 23 of file AlgoMuon.h.

23 {}

Member Function Documentation

int AlgoMuon::getBx ( ) const
inline

Definition at line 33 of file AlgoMuon.h.

References m_bx.

33 { return m_bx; }
int m_bx
Definition: AlgoMuon.h:73
int AlgoMuon::getBx ( ) const
inline

Definition at line 40 of file AlgoMuon.h.

References m_bx.

Referenced by operator<<().

40 { return m_bx; }
int m_bx
Definition: AlgoMuon.h:73
int AlgoMuon::getCharge ( ) const
inline

Definition at line 41 of file AlgoMuon.h.

References goldenPatern, GoldenPatternBase::key(), and Key::theCharge.

41  {
42  if (goldenPatern == nullptr)
43  return 0;
44  return goldenPatern->key().theCharge;
45  }
virtual Key & key()
int theCharge
Definition: GoldenPattern.h:36
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89
int AlgoMuon::getCharge ( ) const
inline

Definition at line 42 of file AlgoMuon.h.

References m_charge.

Referenced by operator<<(), and XMLConfigWriter::writeAlgoMuon().

42 { return m_charge; }
int m_charge
Definition: AlgoMuon.h:75
PdfValueType AlgoMuon::getDisc ( ) const
inline

Definition at line 27 of file AlgoMuon.h.

References GoldenPatternResult::getPdfSum(), and gpResult.

27 { return gpResult.getPdfSum(); }
PdfValueType getPdfSum() const
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
int AlgoMuon::getDisc ( ) const
inline
int AlgoMuon::getEta ( ) const
inline

Definition at line 36 of file AlgoMuon.h.

References m_eta.

Referenced by operator<<(), OMTFSorter< GoldenPatternType >::sortRefHitResults(), and XMLConfigWriter::writeAlgoMuon().

36 { return m_eta; }
int m_eta
Definition: AlgoMuon.h:69
int AlgoMuon::getEtaHw ( ) const
inlineoverridevirtual

Implements AlgoMuonBase.

Definition at line 29 of file AlgoMuon.h.

References GoldenPatternResult::getEta(), and gpResult.

Referenced by operator<<(), and XMLConfigWriter::writeAlgoMuon().

29 { return gpResult.getEta(); }
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
unsigned int AlgoMuon::getFiredLayerBits ( ) const
inline

Definition at line 31 of file AlgoMuon.h.

References GoldenPatternResult::getFiredLayerBits(), and gpResult.

Referenced by operator<<(), and XMLConfigWriter::writeAlgoMuon().

31 { return gpResult.getFiredLayerBits(); }
unsigned int getFiredLayerBits() const
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
unsigned int AlgoMuon::getFiredLayerCnt ( ) const
inlineoverridevirtual

Reimplemented from AlgoMuonBase.

Definition at line 69 of file AlgoMuon.h.

References GoldenPatternResult::getFiredLayerCnt(), and gpResult.

69 { return gpResult.getFiredLayerCnt(); }
unsigned int getFiredLayerCnt() const
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
GoldenPatternBase* AlgoMuon::getGoldenPatern ( ) const
inline

Definition at line 21 of file AlgoMuon.h.

References goldenPatern.

21 { return goldenPatern; }
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89
const GoldenPatternResult& AlgoMuon::getGpResult ( ) const
inline

Definition at line 25 of file AlgoMuon.h.

References gpResult.

25 { return gpResult; }
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
int AlgoMuon::getHits ( ) const
inline

Definition at line 38 of file AlgoMuon.h.

References m_hits.

Referenced by operator<<(), OMTFSorter< GoldenPatternType >::sortRefHitResults(), and XMLConfigWriter::writeAlgoMuon().

38 { return m_hits; }
int m_hits
Definition: AlgoMuon.h:71
unsigned int AlgoMuon::getHwPatternNumber ( ) const
inline

Definition at line 54 of file AlgoMuon.h.

References Key::getHwPatternNumber(), goldenPatern, and GoldenPatternBase::key().

Referenced by XMLConfigWriter::writeAlgoMuon().

54  {
55  if (goldenPatern == nullptr)
56  return 0;
58  }
virtual Key & key()
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89
unsigned int getHwPatternNumber() const
unsigned int AlgoMuon::getPatternNumber ( ) const
inline

Definition at line 44 of file AlgoMuon.h.

References m_patNumb.

Referenced by operator<(), operator<<(), GhostBusterPreferRefDt::select(), and XMLConfigWriter::writeAlgoMuon().

44 { return m_patNumb; }
unsigned int m_patNumb
Definition: AlgoMuon.h:79
unsigned int AlgoMuon::getPatternNumber ( ) const
inline

Definition at line 48 of file AlgoMuon.h.

References goldenPatern, GoldenPatternBase::key(), and Key::theNumber.

48  {
49  if (goldenPatern == nullptr)
50  return 0;
51  return goldenPatern->key().theNumber;
52  }
unsigned int theNumber
Definition: GoldenPattern.h:37
virtual Key & key()
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89
double AlgoMuon::getPdfSum ( ) const
inlineoverridevirtual

Implements AlgoMuonBase.

Definition at line 71 of file AlgoMuon.h.

References GoldenPatternResult::getPdfSum(), and gpResult.

71 { return gpResult.getPdfSum(); }
PdfValueType getPdfSum() const
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
int AlgoMuon::getPhi ( ) const
inline

Definition at line 28 of file AlgoMuon.h.

References GoldenPatternResult::getPhi(), and gpResult.

28 { return gpResult.getPhi(); }
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
int AlgoMuon::getPhi ( ) const
inline

Definition at line 35 of file AlgoMuon.h.

References m_phi.

Referenced by operator<<(), OMTFSorter< GoldenPatternType >::sortRefHitResults(), and XMLConfigWriter::writeAlgoMuon().

35 { return m_phi; }
int m_phi
Definition: AlgoMuon.h:68
int AlgoMuon::getPhiRHit ( ) const
inline

Definition at line 43 of file AlgoMuon.h.

References m_phiRHit.

Referenced by OMTFSorter< GoldenPatternType >::sortRefHitResults(), and XMLConfigWriter::writeAlgoMuon().

43 { return m_phiRHit; }
int m_phiRHit
Definition: AlgoMuon.h:76
int AlgoMuon::getPhiRHit ( ) const
inline

Definition at line 46 of file AlgoMuon.h.

References GoldenPatternResult::getRefHitPhi(), and gpResult.

46 { return gpResult.getRefHitPhi(); }
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
int AlgoMuon::getPt ( ) const
inline

Definition at line 35 of file AlgoMuon.h.

References goldenPatern, GoldenPatternBase::key(), and Key::thePt.

35  {
36  if (goldenPatern == nullptr)
37  return -1;
38  return goldenPatern->key().thePt;
39  }
virtual Key & key()
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89
unsigned int thePt
int AlgoMuon::getPt ( ) const
inline

Definition at line 41 of file AlgoMuon.h.

References m_pt.

Referenced by operator<<(), XMLConfigWriter::writeAlgoMuon(), and OMTFReconstruction::writeResultToXML().

41 { return m_pt; }
int m_pt
Definition: AlgoMuon.h:74
int AlgoMuon::getQ ( ) const
inline

Definition at line 32 of file AlgoMuon.h.

References m_q.

32 { return m_q; }
int m_q
Definition: AlgoMuon.h:72
int AlgoMuon::getQ ( ) const
inline
unsigned int AlgoMuon::getRefHitNumber ( ) const
inline

Definition at line 45 of file AlgoMuon.h.

References m_rhitNumb.

Referenced by operator<(), GhostBusterPreferRefDt::select(), and XMLConfigWriter::writeAlgoMuon().

45 { return m_rhitNumb; }
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
unsigned int AlgoMuon::getRefHitNumber ( ) const
inline

Definition at line 60 of file AlgoMuon.h.

References m_rhitNumb.

60 { return m_rhitNumb; }
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
int AlgoMuon::getRefLayer ( ) const
inline

Definition at line 30 of file AlgoMuon.h.

References GoldenPatternResult::getRefLayer(), and gpResult.

30 { return gpResult.getRefLayer(); }
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
int AlgoMuon::getRefLayer ( ) const
inline
const StubResult& AlgoMuon::getStubResult ( unsigned int  iLayer) const
inlineoverridevirtual

Implements AlgoMuonBase.

Definition at line 73 of file AlgoMuon.h.

References GoldenPatternResult::getStubResults(), and gpResult.

73 { return gpResult.getStubResults().at(iLayer); }
const StubResults & getStubResults() const
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
const StubResults& AlgoMuon::getStubResults ( ) const
inlineoverridevirtual

Implements AlgoMuonBase.

Definition at line 75 of file AlgoMuon.h.

References GoldenPatternResult::getStubResults(), and gpResult.

75 { return gpResult.getStubResults(); }
const StubResults & getStubResults() const
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
const bool AlgoMuon::isKilled ( ) const
inline

Definition at line 77 of file AlgoMuon.h.

References killed.

77 { return killed; }
bool killed
Definition: AlgoMuon.h:96
bool AlgoMuon::isValid ( void  ) const
virtual

Implements AlgoMuonBase.

Definition at line 6 of file AlgoMuon.cc.

References m_q.

Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().

6 { return m_q >= 0; }
int m_q
Definition: AlgoMuon.h:72
bool AlgoMuon::isValid ( ) const
overridevirtual
void AlgoMuon::kill ( )
inline

Definition at line 79 of file AlgoMuon.h.

References killed.

79 { killed = true; }
bool killed
Definition: AlgoMuon.h:96
bool AlgoMuon::operator< ( const AlgoMuon o) const

Definition at line 8 of file AlgoMuon.cc.

References getDisc(), getPatternNumber(), getQ(), and getRefHitNumber().

8  {
9  if (this->getQ() > o.getQ())
10  return false;
11  else if (this->getQ() == o.getQ() && this->getDisc() > o.getDisc())
12  return false;
13  else if (getQ() == o.getQ() && getDisc() == o.getDisc() && getPatternNumber() > o.getPatternNumber())
14  return false;
15  else if (getQ() == o.getQ() && getDisc() == o.getDisc() && getPatternNumber() == o.getPatternNumber() &&
17  return false;
18  else
19  return true;
20 }
int getQ() const
Definition: AlgoMuon.h:39
unsigned int getRefHitNumber() const
Definition: AlgoMuon.h:45
int getDisc() const
Definition: AlgoMuon.h:34
unsigned int getPatternNumber() const
Definition: AlgoMuon.h:44
bool AlgoMuon::operator< ( const AlgoMuon o) const
void AlgoMuon::setBx ( int  bx)
inline

Definition at line 53 of file AlgoMuon.h.

References makePileupJSON::bx, and m_bx.

53 { m_bx = bx; }
int m_bx
Definition: AlgoMuon.h:73
void AlgoMuon::setCharge ( int  charge)
inline

Definition at line 55 of file AlgoMuon.h.

References RecoTauCleanerPlugins::charge, and m_charge.

void AlgoMuon::setDisc ( int  disc)
inline

Definition at line 47 of file AlgoMuon.h.

References m_disc.

Referenced by OMTFSorter< GoldenPatternType >::sortSingleResult().

47 { m_disc = disc; }
int m_disc
Definition: AlgoMuon.h:67
void AlgoMuon::setEta ( int  eta)
inline
void AlgoMuon::setEta ( int  eta)
inline

Definition at line 63 of file AlgoMuon.h.

References gpResult, and GoldenPatternResult::setEta().

63 { gpResult.setEta(eta); }
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87
void AlgoMuon::setHits ( int  hits)
inline

Definition at line 51 of file AlgoMuon.h.

References m_hits.

Referenced by OMTFSorter< GoldenPatternType >::sortSingleResult().

51 { m_hits = hits; }
int m_hits
Definition: AlgoMuon.h:71
void AlgoMuon::setPatternNumber ( unsigned int  aPatNum)
inline

Definition at line 57 of file AlgoMuon.h.

References m_patNumb.

Referenced by OMTFSorter< GoldenPatternType >::sortRefHitResults().

57 { m_patNumb = aPatNum; }
unsigned int m_patNumb
Definition: AlgoMuon.h:79
void AlgoMuon::setPhi ( int  phi)
inline

Definition at line 48 of file AlgoMuon.h.

References m_phi, and phi.

Referenced by OMTFSorter< GoldenPatternType >::sortSingleResult().

48 { m_phi = phi; }
int m_phi
Definition: AlgoMuon.h:68
void AlgoMuon::setPhiRHit ( int  phiRHit)
inline

Definition at line 56 of file AlgoMuon.h.

References m_phiRHit.

Referenced by OMTFSorter< GoldenPatternType >::sortRefHitResults(), and OMTFSorter< GoldenPatternType >::sortSingleResult().

56 { m_phiRHit = phiRHit; }
int m_phiRHit
Definition: AlgoMuon.h:76
void AlgoMuon::setPt ( int  pt)
inline

Definition at line 54 of file AlgoMuon.h.

References m_pt, and DiDispStaMuonMonitor_cfi::pt.

void AlgoMuon::setQ ( int  q)
inline

Definition at line 52 of file AlgoMuon.h.

References m_q, and submitPVResolutionJobs::q.

Referenced by OMTFSorter< GoldenPatternType >::sortSingleResult().

void AlgoMuon::setQ ( int  q)
inline

Definition at line 62 of file AlgoMuon.h.

References m_q, and submitPVResolutionJobs::q.

void AlgoMuon::setRefHitNumber ( unsigned int  aRefHitNum)
inline

Definition at line 58 of file AlgoMuon.h.

References m_rhitNumb.

Referenced by OMTFSorter< GoldenPatternType >::sortRefHitResults().

58 { m_rhitNumb = aRefHitNum; }
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
void AlgoMuon::setRefHitNumber ( unsigned int  aRefHitNum)
inline

Definition at line 65 of file AlgoMuon.h.

References m_rhitNumb.

65 { m_rhitNumb = aRefHitNum; }
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
void AlgoMuon::setRefLayer ( int  refLayer)
inline

Definition at line 50 of file AlgoMuon.h.

References m_refLayer.

Referenced by OMTFSorter< GoldenPatternType >::sortSingleResult().

50 { m_refLayer = refLayer; }
int m_refLayer
Definition: AlgoMuon.h:70

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const AlgoMuon o 
)
friend

Definition at line 22 of file AlgoMuon.cc.

22  {
23  out << "AlgoMuon: ";
24  out << " pt: " << o.getPt() << ", phi: " << o.getPhi() << ", eta: " << o.getEta() * 2.61 / 240
25  << ", hits: " << std::bitset<18>(o.getHits()).to_string() << ", q: " << o.getQ() << ", bx: " << o.getBx()
26  << ", charge: " << o.getCharge() << ", disc: " << o.getDisc() << " refLayer: " << o.getRefLayer();
27 
28  return out;
29 }
int getCharge() const
Definition: AlgoMuon.h:42
int getEta() const
Definition: AlgoMuon.h:36
int getQ() const
Definition: AlgoMuon.h:39
int getDisc() const
Definition: AlgoMuon.h:34
int getBx() const
Definition: AlgoMuon.h:40
int getRefLayer() const
Definition: AlgoMuon.h:37
int getHits() const
Definition: AlgoMuon.h:38
int getPt() const
Definition: AlgoMuon.h:41
int getPhi() const
Definition: AlgoMuon.h:35
std::ostream& operator<< ( std::ostream &  out,
const AlgoMuon o 
)
friend

Definition at line 22 of file AlgoMuon.cc.

22  {
23  out << "AlgoMuon: ";
24  out << " pt: " << o.getPt() << ", phi: " << o.getPhi() << ", eta: " << o.getEta() * 2.61 / 240
25  << ", hits: " << std::bitset<18>(o.getHits()).to_string() << ", q: " << o.getQ() << ", bx: " << o.getBx()
26  << ", charge: " << o.getCharge() << ", disc: " << o.getDisc() << " refLayer: " << o.getRefLayer();
27 
28  return out;
29 }
int getCharge() const
Definition: AlgoMuon.h:42
int getEta() const
Definition: AlgoMuon.h:36
int getQ() const
Definition: AlgoMuon.h:39
int getDisc() const
Definition: AlgoMuon.h:34
int getBx() const
Definition: AlgoMuon.h:40
int getRefLayer() const
Definition: AlgoMuon.h:37
int getHits() const
Definition: AlgoMuon.h:38
int getPt() const
Definition: AlgoMuon.h:41
int getPhi() const
Definition: AlgoMuon.h:35

Member Data Documentation

GoldenPatternBase* AlgoMuon::goldenPatern = nullptr
private

Definition at line 89 of file AlgoMuon.h.

Referenced by getCharge(), getGoldenPatern(), getHwPatternNumber(), getPatternNumber(), and getPt().

GoldenPatternResult AlgoMuon::gpResult
private

FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.

Definition at line 87 of file AlgoMuon.h.

Referenced by getDisc(), getEtaHw(), getFiredLayerBits(), getFiredLayerCnt(), getGpResult(), getPdfSum(), getPhi(), getPhiRHit(), getRefLayer(), getStubResult(), getStubResults(), and setEta().

unsigned int AlgoMuon::index = 0
private

Definition at line 98 of file AlgoMuon.h.

Referenced by BeautifulSoup.PageElement::_invert().

bool AlgoMuon::killed = false
private

Definition at line 96 of file AlgoMuon.h.

Referenced by isKilled(), and kill().

int AlgoMuon::m_bx = 0
private

Definition at line 73 of file AlgoMuon.h.

Referenced by getBx(), and setBx().

int AlgoMuon::m_charge
private

Definition at line 75 of file AlgoMuon.h.

Referenced by getCharge(), and setCharge().

int AlgoMuon::m_disc
private

Definition at line 67 of file AlgoMuon.h.

Referenced by getDisc(), and setDisc().

int AlgoMuon::m_eta
private

Definition at line 69 of file AlgoMuon.h.

Referenced by getEta(), and setEta().

int AlgoMuon::m_hits
private

Definition at line 71 of file AlgoMuon.h.

Referenced by getHits(), and setHits().

unsigned int AlgoMuon::m_patNumb
private

Definition at line 79 of file AlgoMuon.h.

Referenced by getPatternNumber(), and setPatternNumber().

int AlgoMuon::m_phi
private

Definition at line 68 of file AlgoMuon.h.

Referenced by getPhi(), and setPhi().

int AlgoMuon::m_phiRHit
private

Definition at line 76 of file AlgoMuon.h.

Referenced by getPhiRHit(), and setPhiRHit().

int AlgoMuon::m_pt
private

Definition at line 74 of file AlgoMuon.h.

Referenced by getPt(), and setPt().

int AlgoMuon::m_q = -1
private

Definition at line 72 of file AlgoMuon.h.

Referenced by getQ(), isValid(), and setQ().

int AlgoMuon::m_refLayer
private

Definition at line 70 of file AlgoMuon.h.

Referenced by getRefLayer(), and setRefLayer().

unsigned int AlgoMuon::m_rhitNumb = 0
private

Definition at line 80 of file AlgoMuon.h.

Referenced by getRefHitNumber(), and setRefHitNumber().