CMS 3D CMS Logo

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() [1/4]

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() [2/4]

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.

◆ ~AlgoMuon() [1/2]

virtual AlgoMuon::~AlgoMuon ( )
inlinevirtual

Definition at line 32 of file AlgoMuon.h.

32 {}

◆ AlgoMuon() [3/4]

AlgoMuon::AlgoMuon ( )
inline

Definition at line 11 of file AlgoMuon.h.

11 : AlgoMuonBase() {}

◆ AlgoMuon() [4/4]

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()),
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
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89
int m_q
Definition: AlgoMuon.h:72
int m_bx
Definition: AlgoMuon.h:73
unsigned int getFiredLayerCnt() const
GoldenPatternResult gpResult
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:87

◆ ~AlgoMuon() [2/2]

AlgoMuon::~AlgoMuon ( )
inlineoverride

Definition at line 23 of file AlgoMuon.h.

23 {}

Member Function Documentation

◆ getBx() [1/2]

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

◆ getBx() [2/2]

int AlgoMuon::getBx ( ) const
inline

Definition at line 40 of file AlgoMuon.h.

References m_bx.

40 { return m_bx; }
int m_bx
Definition: AlgoMuon.h:73

◆ getCharge() [1/2]

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

◆ getCharge() [2/2]

int AlgoMuon::getCharge ( ) const
inline

Definition at line 42 of file AlgoMuon.h.

References m_charge.

Referenced by XMLConfigWriter::writeAlgoMuon().

42 { return m_charge; }
int m_charge
Definition: AlgoMuon.h:75

◆ getDisc() [1/2]

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

◆ getDisc() [2/2]

int AlgoMuon::getDisc ( ) const
inline

Definition at line 34 of file AlgoMuon.h.

References m_disc.

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

34 { return m_disc; }
int m_disc
Definition: AlgoMuon.h:67

◆ getEta()

int AlgoMuon::getEta ( ) const
inline

Definition at line 36 of file AlgoMuon.h.

References m_eta.

Referenced by XMLConfigWriter::writeAlgoMuon().

36 { return m_eta; }
int m_eta
Definition: AlgoMuon.h:69

◆ getEtaHw()

int AlgoMuon::getEtaHw ( ) const
inlineoverridevirtual

Implements AlgoMuonBase.

Definition at line 29 of file AlgoMuon.h.

References GoldenPatternResult::getEta(), and gpResult.

Referenced by 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

◆ getFiredLayerBits()

unsigned int AlgoMuon::getFiredLayerBits ( ) const
inline

Definition at line 31 of file AlgoMuon.h.

References GoldenPatternResult::getFiredLayerBits(), and gpResult.

Referenced by 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

◆ getFiredLayerCnt()

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

◆ getGoldenPatern()

GoldenPatternBase* AlgoMuon::getGoldenPatern ( ) const
inline

Definition at line 21 of file AlgoMuon.h.

References goldenPatern.

21 { return goldenPatern; }
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89

◆ getGpResult()

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

◆ getHits()

int AlgoMuon::getHits ( ) const
inline

Definition at line 38 of file AlgoMuon.h.

References m_hits.

Referenced by XMLConfigWriter::writeAlgoMuon().

38 { return m_hits; }
int m_hits
Definition: AlgoMuon.h:71

◆ getHwPatternNumber()

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  }
unsigned int getHwPatternNumber() const
virtual Key & key()
GoldenPatternBase * goldenPatern
Definition: AlgoMuon.h:89

◆ getPatternNumber() [1/2]

unsigned int AlgoMuon::getPatternNumber ( ) const
inline

Definition at line 44 of file AlgoMuon.h.

References m_patNumb.

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

44 { return m_patNumb; }
unsigned int m_patNumb
Definition: AlgoMuon.h:79

◆ getPatternNumber() [2/2]

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

◆ getPdfSum()

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

◆ getPhi() [1/2]

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

◆ getPhi() [2/2]

int AlgoMuon::getPhi ( ) const
inline

Definition at line 35 of file AlgoMuon.h.

References m_phi.

Referenced by XMLConfigWriter::writeAlgoMuon().

35 { return m_phi; }
int m_phi
Definition: AlgoMuon.h:68

◆ getPhiRHit() [1/2]

int AlgoMuon::getPhiRHit ( ) const
inline

Definition at line 43 of file AlgoMuon.h.

References m_phiRHit.

Referenced by XMLConfigWriter::writeAlgoMuon().

43 { return m_phiRHit; }
int m_phiRHit
Definition: AlgoMuon.h:76

◆ getPhiRHit() [2/2]

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

◆ getPt() [1/2]

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

◆ getPt() [2/2]

int AlgoMuon::getPt ( ) const
inline

Definition at line 41 of file AlgoMuon.h.

References m_pt.

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

41 { return m_pt; }
int m_pt
Definition: AlgoMuon.h:74

◆ getQ() [1/2]

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

◆ getQ() [2/2]

int AlgoMuon::getQ ( ) const
inline

Definition at line 39 of file AlgoMuon.h.

References m_q.

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

39 { return m_q; }
int m_q
Definition: AlgoMuon.h:72

◆ getRefHitNumber() [1/2]

unsigned int AlgoMuon::getRefHitNumber ( ) const
inline

Definition at line 45 of file AlgoMuon.h.

References m_rhitNumb.

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

45 { return m_rhitNumb; }
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80

◆ getRefHitNumber() [2/2]

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

◆ getRefLayer() [1/2]

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

◆ getRefLayer() [2/2]

int AlgoMuon::getRefLayer ( ) const
inline

Definition at line 37 of file AlgoMuon.h.

References m_refLayer.

Referenced by XMLConfigWriter::writeAlgoMuon().

37 { return m_refLayer; }
int m_refLayer
Definition: AlgoMuon.h:70

◆ getStubResult()

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

◆ getStubResults()

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

◆ isKilled()

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

◆ isValid() [1/2]

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

◆ isValid() [2/2]

bool AlgoMuon::isValid ( ) const
overridevirtual

◆ kill()

void AlgoMuon::kill ( )
inline

Definition at line 79 of file AlgoMuon.h.

References killed.

79 { killed = true; }
bool killed
Definition: AlgoMuon.h:96

◆ operator<() [1/2]

bool AlgoMuon::operator< ( const AlgoMuon o) const

Definition at line 8 of file AlgoMuon.cc.

References getDisc(), getPatternNumber(), getQ(), getRefHitNumber(), and EcalTangentSkim_cfg::o.

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() &&
16  getRefHitNumber() < o.getRefHitNumber())
17  return false;
18  else
19  return true;
20 }
int getQ() const
Definition: AlgoMuon.h:39
unsigned int getPatternNumber() const
Definition: AlgoMuon.h:44
unsigned int getRefHitNumber() const
Definition: AlgoMuon.h:45
int getDisc() const
Definition: AlgoMuon.h:34

◆ operator<() [2/2]

bool AlgoMuon::operator< ( const AlgoMuon o) const

◆ setBx()

void AlgoMuon::setBx ( int  bx)
inline

Definition at line 53 of file AlgoMuon.h.

References nano_mu_digi_cff::bx, and m_bx.

◆ setCharge()

void AlgoMuon::setCharge ( int  charge)
inline

Definition at line 55 of file AlgoMuon.h.

References ALCARECOTkAlJpsiMuMu_cff::charge, and m_charge.

◆ setDisc()

void AlgoMuon::setDisc ( int  disc)
inline

◆ setEta() [1/2]

void AlgoMuon::setEta ( int  eta)
inline

Definition at line 49 of file AlgoMuon.h.

References PVValHelper::eta, and m_eta.

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

◆ setEta() [2/2]

void AlgoMuon::setEta ( int  eta)
inline

Definition at line 63 of file AlgoMuon.h.

References PVValHelper::eta, 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

◆ setHits()

void AlgoMuon::setHits ( int  hits)
inline

◆ setPatternNumber()

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

◆ setPhi()

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

◆ setPhiRHit()

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

◆ setPt()

void AlgoMuon::setPt ( int  pt)
inline

Definition at line 54 of file AlgoMuon.h.

References m_pt, and DiDispStaMuonMonitor_cfi::pt.

◆ setQ() [1/2]

void AlgoMuon::setQ ( int  q)
inline

◆ setQ() [2/2]

void AlgoMuon::setQ ( int  q)
inline

Definition at line 62 of file AlgoMuon.h.

References m_q, and submitPVResolutionJobs::q.

◆ setRefHitNumber() [1/2]

void AlgoMuon::setRefHitNumber ( unsigned int  aRefHitNum)
inline

Definition at line 58 of file AlgoMuon.h.

References m_rhitNumb.

58 { m_rhitNumb = aRefHitNum; }
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80

◆ setRefHitNumber() [2/2]

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

◆ setRefLayer()

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

◆ operator<< [1/2]

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 }
static std::string to_string(const XMLCh *ch)

◆ operator<< [2/2]

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 }
static std::string to_string(const XMLCh *ch)

Member Data Documentation

◆ goldenPatern

GoldenPatternBase* AlgoMuon::goldenPatern = nullptr
private

Definition at line 89 of file AlgoMuon.h.

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

◆ gpResult

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().

◆ index

unsigned int AlgoMuon::index = 0
private

Definition at line 98 of file AlgoMuon.h.

◆ killed

bool AlgoMuon::killed = false
private

Definition at line 96 of file AlgoMuon.h.

Referenced by isKilled(), and kill().

◆ m_bx

int AlgoMuon::m_bx = 0
private

Definition at line 73 of file AlgoMuon.h.

Referenced by getBx(), and setBx().

◆ m_charge

int AlgoMuon::m_charge
private

Definition at line 75 of file AlgoMuon.h.

Referenced by getCharge(), and setCharge().

◆ m_disc

int AlgoMuon::m_disc
private

Definition at line 67 of file AlgoMuon.h.

Referenced by getDisc(), and setDisc().

◆ m_eta

int AlgoMuon::m_eta
private

Definition at line 69 of file AlgoMuon.h.

Referenced by getEta(), and setEta().

◆ m_hits

int AlgoMuon::m_hits
private

Definition at line 71 of file AlgoMuon.h.

Referenced by getHits(), and setHits().

◆ m_patNumb

unsigned int AlgoMuon::m_patNumb
private

Definition at line 79 of file AlgoMuon.h.

Referenced by getPatternNumber(), and setPatternNumber().

◆ m_phi

int AlgoMuon::m_phi
private

Definition at line 68 of file AlgoMuon.h.

Referenced by getPhi(), and setPhi().

◆ m_phiRHit

int AlgoMuon::m_phiRHit
private

Definition at line 76 of file AlgoMuon.h.

Referenced by getPhiRHit(), and setPhiRHit().

◆ m_pt

int AlgoMuon::m_pt
private

Definition at line 74 of file AlgoMuon.h.

Referenced by getPt(), and setPt().

◆ m_q

int AlgoMuon::m_q = -1
private

Definition at line 72 of file AlgoMuon.h.

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

◆ m_refLayer

int AlgoMuon::m_refLayer
private

Definition at line 70 of file AlgoMuon.h.

Referenced by getRefLayer(), and setRefLayer().

◆ m_rhitNumb

unsigned int AlgoMuon::m_rhitNumb = 0
private

Definition at line 80 of file AlgoMuon.h.

Referenced by getRefHitNumber(), and setRefHitNumber().