CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
AlgoMuon Class Reference

#include <AlgoMuon.h>

Public Member Functions

 AlgoMuon ()
 
 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 (const GoldenPatternResult &gpResult, GoldenPatternBase *gp, unsigned int refHitNumber, int bx=0)
 
int getBx () const
 
int getBx () const
 
int getCharge () const
 
int getChargeConstr () const
 
int getChargeNNConstr () const
 
int getChargeNNUnconstr () const
 
int getDisc () const
 
PdfValueType getDisc () const
 
int getEta () const
 
int getEtaHw () const
 
unsigned int getFiredLayerBits () const
 
unsigned int getFiredLayerCnt () const
 
unsigned int getFiredLayerCntConstr () const
 
GoldenPatternBasegetGoldenPatern () const
 
GoldenPatternBasegetGoldenPaternUnconstr () const
 
const GoldenPatternResultgetGpResultConstr () const
 
const GoldenPatternResultgetGpResultUnconstr () const
 
int getHits () const
 
unsigned int getHwPatternNumConstr () const
 
unsigned int getHwPatternNumUnconstr () const
 
std::vector< std::shared_ptr< AlgoMuon > > & getKilledMuons ()
 
unsigned int getPatternNum () const
 
unsigned int getPatternNumber () const
 
unsigned int getPatternNumConstr () const
 
unsigned int getPatternNumUnconstr () const
 
double getPdfSum () const
 
double getPdfSumConstr () const
 
int getPhi () const
 
int getPhi () const
 
int getPhiRHit () const
 
int getPhiRHit () const
 
int getPt () const
 
int getPtConstr () const
 
int getPtNNConstr () const
 
int getPtNNUnconstr () const
 
int getPtUnconstr () 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
 
const StubResultsgetStubResultsConstr () const
 
const bool isKilled () const
 
bool isValid () const
 
bool isValid () const
 
void kill ()
 
bool operator< (const AlgoMuon &o) const
 
void setBx (int bx)
 
void setCharge (int charge)
 
void setChargeNNConstr (int chargeNn=0)
 
void setChargeNNUnconstr (int chargeNnUnconstr=0)
 
void setDisc (int disc)
 
void setEta (int eta)
 
void setEta (int eta)
 
void setGoldenPaternUnconstr (GoldenPatternBase *goldenPaternUnconstr)
 
void setGpResultUnconstr (const GoldenPatternResult &gpResultUnconstr)
 
void setHits (int hits)
 
void setPatternNumber (unsigned int aPatNum)
 
void setPhi (int phi)
 
void setPhiRHit (int phiRHit)
 
void setPt (int pt)
 
void setPtNNConstr (int ptNn=0)
 
void setPtNNUnconstr (int ptNnUnconstr=0)
 
void setQ (int q)
 
void setRefHitNumber (unsigned int aRefHitNum)
 
void setRefHitNumber (unsigned int aRefHitNum)
 
void setRefLayer (int refLayer)
 
 ~AlgoMuon ()
 
virtual ~AlgoMuon ()
 

Private Attributes

int chargeNNConstr = 0
 
int chargeNNUnconstr = 0
 
GoldenPatternBasegoldenPaternConstr = nullptr
 
GoldenPatternBasegoldenPaternUnconstr = nullptr
 
GoldenPatternResult gpResultConstr
 FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy. More...
 
GoldenPatternResult gpResultUnconstr
 
unsigned int index = 0
 
bool killed = false
 
std::vector< std::shared_ptr< AlgoMuon > > killedMuons
 
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
 
int m_refLayer
 
unsigned int m_rhitNumb = 0
 
int ptNNConstr = 0
 
int ptNNUnconstr = 0
 

Friends

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

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 10 of file AlgoMuon.h.

10 {}

◆ AlgoMuon() [4/4]

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

Definition at line 12 of file AlgoMuon.h.

13  : gpResultConstr(gpResult),
15  //m_q(gpResult.getFiredLayerCnt()), //initial value of quality, can be altered later
16  m_bx(bx),
17  m_rhitNumb(refHitNumber) {}
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
GoldenPatternBase * goldenPaternConstr
Definition: AlgoMuon.h:159
int m_bx
Definition: AlgoMuon.h:73

◆ ~AlgoMuon() [2/2]

AlgoMuon::~AlgoMuon ( )
inline

Definition at line 21 of file AlgoMuon.h.

21 {}

Member Function Documentation

◆ getBx() [1/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

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

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

◆ getChargeConstr()

int AlgoMuon::getChargeConstr ( ) const
inline

Definition at line 54 of file AlgoMuon.h.

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

Referenced by XMLConfigWriter::writeAlgoMuon().

54 { return goldenPaternConstr == nullptr ? -1 : goldenPaternConstr->key().theCharge; }
virtual Key & key()
int theCharge
Definition: GoldenPattern.h:36
GoldenPatternBase * goldenPaternConstr
Definition: AlgoMuon.h:159

◆ getChargeNNConstr()

int AlgoMuon::getChargeNNConstr ( ) const
inline

Definition at line 135 of file AlgoMuon.h.

References chargeNNConstr.

135 { return chargeNNConstr; }
int chargeNNConstr
Definition: AlgoMuon.h:176

◆ getChargeNNUnconstr()

int AlgoMuon::getChargeNNUnconstr ( ) const
inline

Definition at line 143 of file AlgoMuon.h.

References chargeNNUnconstr.

143 { return chargeNNUnconstr; }
int chargeNNUnconstr
Definition: AlgoMuon.h:179

◆ getDisc() [1/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

◆ getDisc() [2/2]

PdfValueType AlgoMuon::getDisc ( ) const
inline

Definition at line 90 of file AlgoMuon.h.

References GoldenPatternResult::getPdfSum(), GoldenPatternResult::getPdfSumUnconstr(), gpResultConstr, and gpResultUnconstr.

90  {
93  }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157
PdfValueType getPdfSumUnconstr() const
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
PdfValueType getPdfSum() const

◆ 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
inline

Definition at line 32 of file AlgoMuon.h.

References GoldenPatternResult::getEta(), and gpResultConstr.

Referenced by XMLConfigWriter::writeAlgoMuon().

32 { return gpResultConstr.getEta(); }
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153

◆ getFiredLayerBits()

unsigned int AlgoMuon::getFiredLayerBits ( ) const
inline

Definition at line 107 of file AlgoMuon.h.

References GoldenPatternResult::getFiredLayerBits(), GoldenPatternResult::getPdfSum(), GoldenPatternResult::getPdfSumUnconstr(), gpResultConstr, and gpResultUnconstr.

Referenced by XMLConfigWriter::writeAlgoMuon().

107  {
110  }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157
PdfValueType getPdfSumUnconstr() const
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
unsigned int getFiredLayerBits() const
PdfValueType getPdfSum() const

◆ getFiredLayerCnt()

unsigned int AlgoMuon::getFiredLayerCnt ( ) const
inline

Definition at line 100 of file AlgoMuon.h.

References GoldenPatternResult::getFiredLayerCnt(), GoldenPatternResult::getPdfSum(), GoldenPatternResult::getPdfSumUnconstr(), gpResultConstr, and gpResultUnconstr.

100  {
103  }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157
PdfValueType getPdfSumUnconstr() const
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
unsigned int getFiredLayerCnt() const
PdfValueType getPdfSum() const

◆ getFiredLayerCntConstr()

unsigned int AlgoMuon::getFiredLayerCntConstr ( ) const
inline

Definition at line 105 of file AlgoMuon.h.

References GoldenPatternResult::getFiredLayerCnt(), and gpResultConstr.

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

◆ getGoldenPatern()

GoldenPatternBase* AlgoMuon::getGoldenPatern ( ) const
inline

Definition at line 19 of file AlgoMuon.h.

References goldenPaternConstr.

19 { return goldenPaternConstr; }
GoldenPatternBase * goldenPaternConstr
Definition: AlgoMuon.h:159

◆ getGoldenPaternUnconstr()

GoldenPatternBase* AlgoMuon::getGoldenPaternUnconstr ( ) const
inline

Definition at line 129 of file AlgoMuon.h.

References goldenPaternUnconstr.

129 { return goldenPaternUnconstr; }
GoldenPatternBase * goldenPaternUnconstr
Definition: AlgoMuon.h:162

◆ getGpResultConstr()

const GoldenPatternResult& AlgoMuon::getGpResultConstr ( ) const
inline

Definition at line 24 of file AlgoMuon.h.

References gpResultConstr.

24 { return gpResultConstr; }
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153

◆ getGpResultUnconstr()

const GoldenPatternResult& AlgoMuon::getGpResultUnconstr ( ) const
inline

Definition at line 26 of file AlgoMuon.h.

References gpResultUnconstr.

26 { return gpResultUnconstr; }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157

◆ 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

◆ getHwPatternNumConstr()

unsigned int AlgoMuon::getHwPatternNumConstr ( ) const
inline

Definition at line 71 of file AlgoMuon.h.

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

Referenced by XMLConfigWriter::writeAlgoMuon().

71  {
72  return goldenPaternConstr == nullptr ? 0 : goldenPaternConstr->key().getHwPatternNumber();
73  }
unsigned int getHwPatternNumber() const
virtual Key & key()
GoldenPatternBase * goldenPaternConstr
Definition: AlgoMuon.h:159

◆ getHwPatternNumUnconstr()

unsigned int AlgoMuon::getHwPatternNumUnconstr ( ) const
inline

Definition at line 75 of file AlgoMuon.h.

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

75  {
77  }
unsigned int getHwPatternNumber() const
virtual Key & key()
GoldenPatternBase * goldenPaternUnconstr
Definition: AlgoMuon.h:162

◆ getKilledMuons()

std::vector<std::shared_ptr<AlgoMuon> >& AlgoMuon::getKilledMuons ( )
inline

Definition at line 127 of file AlgoMuon.h.

References killedMuons.

127 { return killedMuons; }
std::vector< std::shared_ptr< AlgoMuon > > killedMuons
Definition: AlgoMuon.h:173

◆ getPatternNum()

unsigned int AlgoMuon::getPatternNum ( ) const
inline

Definition at line 58 of file AlgoMuon.h.

References GoldenPatternResult::getPdfSum(), GoldenPatternResult::getPdfSumUnconstr(), goldenPaternConstr, goldenPaternUnconstr, gpResultConstr, gpResultUnconstr, GoldenPatternBase::key(), and Key::theNumber.

58  {
61  }
unsigned int theNumber
Definition: GoldenPattern.h:37
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157
PdfValueType getPdfSumUnconstr() const
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
virtual Key & key()
GoldenPatternBase * goldenPaternUnconstr
Definition: AlgoMuon.h:162
GoldenPatternBase * goldenPaternConstr
Definition: AlgoMuon.h:159
PdfValueType getPdfSum() const

◆ getPatternNumber()

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

◆ getPatternNumConstr()

unsigned int AlgoMuon::getPatternNumConstr ( ) const
inline

Definition at line 63 of file AlgoMuon.h.

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

63  {
64  return goldenPaternConstr == nullptr ? 0 : goldenPaternConstr->key().theNumber;
65  }
unsigned int theNumber
Definition: GoldenPattern.h:37
virtual Key & key()
GoldenPatternBase * goldenPaternConstr
Definition: AlgoMuon.h:159

◆ getPatternNumUnconstr()

unsigned int AlgoMuon::getPatternNumUnconstr ( ) const
inline

Definition at line 67 of file AlgoMuon.h.

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

67  {
68  return goldenPaternUnconstr == nullptr ? 0 : goldenPaternUnconstr->key().theNumber;
69  }
unsigned int theNumber
Definition: GoldenPattern.h:37
virtual Key & key()
GoldenPatternBase * goldenPaternUnconstr
Definition: AlgoMuon.h:162

◆ getPdfSum()

double AlgoMuon::getPdfSum ( ) const
inline

Definition at line 85 of file AlgoMuon.h.

References GoldenPatternResult::getPdfSum(), GoldenPatternResult::getPdfSumUnconstr(), gpResultConstr, and gpResultUnconstr.

85  {
88  }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157
PdfValueType getPdfSumUnconstr() const
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
PdfValueType getPdfSum() const

◆ getPdfSumConstr()

double AlgoMuon::getPdfSumConstr ( ) const
inline

Definition at line 83 of file AlgoMuon.h.

References GoldenPatternResult::getPdfSum(), and gpResultConstr.

83 { return gpResultConstr.getPdfSum(); }
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
PdfValueType getPdfSum() const

◆ getPhi() [1/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

◆ getPhi() [2/2]

int AlgoMuon::getPhi ( ) const
inline

Definition at line 95 of file AlgoMuon.h.

References GoldenPatternResult::getPdfSum(), GoldenPatternResult::getPdfSumUnconstr(), GoldenPatternResult::getPhi(), gpResultConstr, and gpResultUnconstr.

95  {
98  }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157
PdfValueType getPdfSumUnconstr() const
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
PdfValueType getPdfSum() const

◆ 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 56 of file AlgoMuon.h.

References GoldenPatternResult::getRefHitPhi(), and gpResultConstr.

56 { return gpResultConstr.getRefHitPhi(); }
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153

◆ getPt()

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

◆ getPtConstr()

int AlgoMuon::getPtConstr ( ) const
inline

Definition at line 43 of file AlgoMuon.h.

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

Referenced by isValid(), and XMLConfigWriter::writeAlgoMuon().

43  {
44  //TODO maybe it should return 0 and not -1?
45  return goldenPaternConstr == nullptr ? -1 : goldenPaternConstr->key().thePt;
46  }
virtual Key & key()
GoldenPatternBase * goldenPaternConstr
Definition: AlgoMuon.h:159
unsigned int thePt

◆ getPtNNConstr()

int AlgoMuon::getPtNNConstr ( ) const
inline

Definition at line 139 of file AlgoMuon.h.

References ptNNConstr.

139 { return ptNNConstr; }
int ptNNConstr
Definition: AlgoMuon.h:175

◆ getPtNNUnconstr()

int AlgoMuon::getPtNNUnconstr ( ) const
inline

Definition at line 147 of file AlgoMuon.h.

References ptNNUnconstr.

147 { return ptNNUnconstr; }
int ptNNUnconstr
Definition: AlgoMuon.h:178

◆ getPtUnconstr()

int AlgoMuon::getPtUnconstr ( ) const
inline

Definition at line 49 of file AlgoMuon.h.

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

Referenced by isValid().

49  {
50  //TODO maybe it should return 0 and not -1?
51  return goldenPaternUnconstr == nullptr ? -1 : (goldenPaternUnconstr->key().thePt - 1) / 2 + 1;
52  }
virtual Key & key()
GoldenPatternBase * goldenPaternUnconstr
Definition: AlgoMuon.h:162
unsigned int thePt

◆ getQ() [1/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

◆ getQ() [2/2]

int AlgoMuon::getQ ( ) const
inline

Definition at line 112 of file AlgoMuon.h.

References GoldenPatternResult::getFiredLayerCnt(), GoldenPatternResult::getPdfSum(), GoldenPatternResult::getPdfSumUnconstr(), gpResultConstr, and gpResultUnconstr.

112  {
115  }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157
PdfValueType getPdfSumUnconstr() const
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
unsigned int getFiredLayerCnt() const
PdfValueType getPdfSum() const

◆ getRefHitNumber() [1/2]

unsigned int AlgoMuon::getRefHitNumber ( ) const
inline

Definition at line 34 of file AlgoMuon.h.

References m_rhitNumb.

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

◆ getRefHitNumber() [2/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

◆ getRefLayer() [1/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

◆ getRefLayer() [2/2]

int AlgoMuon::getRefLayer ( ) const
inline

Definition at line 38 of file AlgoMuon.h.

References GoldenPatternResult::getRefLayer(), and gpResultConstr.

38 { return gpResultConstr.getRefLayer(); }
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153

◆ getStubResult()

const StubResult& AlgoMuon::getStubResult ( unsigned int  iLayer) const
inline

Definition at line 117 of file AlgoMuon.h.

References GoldenPatternResult::getStubResults(), and gpResultConstr.

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

◆ getStubResultsConstr()

const StubResults& AlgoMuon::getStubResultsConstr ( ) const
inline

Definition at line 119 of file AlgoMuon.h.

References GoldenPatternResult::getStubResults(), and gpResultConstr.

119 { return gpResultConstr.getStubResults(); }
GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153
const StubResults & getStubResults() const

◆ isKilled()

const bool AlgoMuon::isKilled ( ) const
inline

Definition at line 121 of file AlgoMuon.h.

References killed.

121 { return killed; }
bool killed
Definition: AlgoMuon.h:169

◆ isValid() [1/2]

bool AlgoMuon::isValid ( void  ) const

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 ( void  ) const
inline

Definition at line 79 of file AlgoMuon.h.

References getPtConstr(), and getPtUnconstr().

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

79  {
80  return (getPtConstr() > 0) || (getPtUnconstr() > 0); //should this really be pt or quality ?? FIXME
81  }
int getPtConstr() const
Definition: AlgoMuon.h:43
int getPtUnconstr() const
Definition: AlgoMuon.h:49

◆ kill()

void AlgoMuon::kill ( )
inline

Definition at line 123 of file AlgoMuon.h.

References killed.

123 { killed = true; }
bool killed
Definition: AlgoMuon.h:169

◆ operator<()

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

◆ 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.

◆ setChargeNNConstr()

void AlgoMuon::setChargeNNConstr ( int  chargeNn = 0)
inline

Definition at line 137 of file AlgoMuon.h.

References chargeNNConstr.

137 { chargeNNConstr = chargeNn; }
int chargeNNConstr
Definition: AlgoMuon.h:176

◆ setChargeNNUnconstr()

void AlgoMuon::setChargeNNUnconstr ( int  chargeNnUnconstr = 0)
inline

Definition at line 145 of file AlgoMuon.h.

References chargeNNUnconstr.

145 { chargeNNUnconstr = chargeNnUnconstr; }
int chargeNNUnconstr
Definition: AlgoMuon.h:179

◆ setDisc()

void AlgoMuon::setDisc ( int  disc)
inline

◆ setEta() [1/2]

void AlgoMuon::setEta ( int  eta)
inline

Definition at line 30 of file AlgoMuon.h.

References PVValHelper::eta, gpResultConstr, and GoldenPatternResult::setEta().

GoldenPatternResult gpResultConstr
FIXME maybe the gpResult cannot be a reference or pointer, ad not a copy.
Definition: AlgoMuon.h:153

◆ setEta() [2/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().

◆ setGoldenPaternUnconstr()

void AlgoMuon::setGoldenPaternUnconstr ( GoldenPatternBase goldenPaternUnconstr)
inline

Definition at line 131 of file AlgoMuon.h.

References goldenPaternUnconstr.

131  {
132  this->goldenPaternUnconstr = goldenPaternUnconstr;
133  }
GoldenPatternBase * goldenPaternUnconstr
Definition: AlgoMuon.h:162

◆ setGpResultUnconstr()

void AlgoMuon::setGpResultUnconstr ( const GoldenPatternResult gpResultUnconstr)
inline

Definition at line 28 of file AlgoMuon.h.

References gpResultUnconstr.

28 { this->gpResultUnconstr = gpResultUnconstr; }
GoldenPatternResult gpResultUnconstr
Definition: AlgoMuon.h:157

◆ 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.

◆ setPtNNConstr()

void AlgoMuon::setPtNNConstr ( int  ptNn = 0)
inline

Definition at line 141 of file AlgoMuon.h.

References ptNNConstr.

141 { ptNNConstr = ptNn; }
int ptNNConstr
Definition: AlgoMuon.h:175

◆ setPtNNUnconstr()

void AlgoMuon::setPtNNUnconstr ( int  ptNnUnconstr = 0)
inline

Definition at line 149 of file AlgoMuon.h.

References ptNNUnconstr.

149 { ptNNUnconstr = ptNnUnconstr; }
int ptNNUnconstr
Definition: AlgoMuon.h:178

◆ setQ()

void AlgoMuon::setQ ( int  q)
inline

◆ setRefHitNumber() [1/2]

void AlgoMuon::setRefHitNumber ( unsigned int  aRefHitNum)
inline

Definition at line 36 of file AlgoMuon.h.

References m_rhitNumb.

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

◆ setRefHitNumber() [2/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

◆ 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

◆ chargeNNConstr

int AlgoMuon::chargeNNConstr = 0
private

Definition at line 176 of file AlgoMuon.h.

Referenced by getChargeNNConstr(), and setChargeNNConstr().

◆ chargeNNUnconstr

int AlgoMuon::chargeNNUnconstr = 0
private

Definition at line 179 of file AlgoMuon.h.

Referenced by getChargeNNUnconstr(), and setChargeNNUnconstr().

◆ goldenPaternConstr

GoldenPatternBase* AlgoMuon::goldenPaternConstr = nullptr
private

◆ goldenPaternUnconstr

GoldenPatternBase* AlgoMuon::goldenPaternUnconstr = nullptr
private

◆ gpResultConstr

GoldenPatternResult AlgoMuon::gpResultConstr
private

◆ gpResultUnconstr

GoldenPatternResult AlgoMuon::gpResultUnconstr
private

◆ index

unsigned int AlgoMuon::index = 0
private

Definition at line 171 of file AlgoMuon.h.

◆ killed

bool AlgoMuon::killed = false
private

Definition at line 169 of file AlgoMuon.h.

Referenced by isKilled(), and kill().

◆ killedMuons

std::vector<std::shared_ptr<AlgoMuon> > AlgoMuon::killedMuons
private

Definition at line 173 of file AlgoMuon.h.

Referenced by getKilledMuons().

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

◆ ptNNConstr

int AlgoMuon::ptNNConstr = 0
private

Definition at line 175 of file AlgoMuon.h.

Referenced by getPtNNConstr(), and setPtNNConstr().

◆ ptNNUnconstr

int AlgoMuon::ptNNUnconstr = 0
private

Definition at line 178 of file AlgoMuon.h.

Referenced by getPtNNUnconstr(), and setPtNNUnconstr().