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 (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)
 
int getBx () const
 
int getCharge () const
 
int getDisc () const
 
int getEta () const
 
int getHits () const
 
unsigned int getPatternNumber () const
 
int getPhi () const
 
int getPhiRHit () const
 
int getPt () const
 
int getQ () const
 
unsigned int getRefHitNumber () const
 
int getRefLayer () const
 
bool isValid () const
 
bool operator< (const AlgoMuon &o) const
 
void setBx (int bx)
 
void setCharge (int charge)
 
void setDisc (int disc)
 
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 setRefHitNumber (unsigned int aRefHitNum)
 
void setRefLayer (int refLayer)
 
virtual ~AlgoMuon ()
 

Private Attributes

int m_bx
 
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
 

Friends

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

Detailed Description

Definition at line 6 of file AlgoMuon.h.

Constructor & Destructor Documentation

◆ AlgoMuon() [1/2]

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) {}

◆ AlgoMuon() [2/2]

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) {}

◆ ~AlgoMuon()

virtual AlgoMuon::~AlgoMuon ( )
inlinevirtual

Definition at line 32 of file AlgoMuon.h.

32 {}

Member Function Documentation

◆ getBx()

int AlgoMuon::getBx ( ) const
inline

Definition at line 40 of file AlgoMuon.h.

40 { return m_bx; }

References m_bx.

◆ getCharge()

int AlgoMuon::getCharge ( ) const
inline

Definition at line 42 of file AlgoMuon.h.

42 { return m_charge; }

References m_charge.

Referenced by XMLConfigWriter::writeAlgoMuon().

◆ getDisc()

int AlgoMuon::getDisc ( ) const
inline

Definition at line 34 of file AlgoMuon.h.

34 { return m_disc; }

References m_disc.

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

◆ getEta()

int AlgoMuon::getEta ( ) const
inline

Definition at line 36 of file AlgoMuon.h.

36 { return m_eta; }

References m_eta.

Referenced by XMLConfigWriter::writeAlgoMuon().

◆ getHits()

int AlgoMuon::getHits ( ) const
inline

Definition at line 38 of file AlgoMuon.h.

38 { return m_hits; }

References m_hits.

Referenced by XMLConfigWriter::writeAlgoMuon().

◆ getPatternNumber()

unsigned int AlgoMuon::getPatternNumber ( ) const
inline

Definition at line 44 of file AlgoMuon.h.

44 { return m_patNumb; }

References m_patNumb.

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

◆ getPhi()

int AlgoMuon::getPhi ( ) const
inline

Definition at line 35 of file AlgoMuon.h.

35 { return m_phi; }

References m_phi.

Referenced by XMLConfigWriter::writeAlgoMuon().

◆ getPhiRHit()

int AlgoMuon::getPhiRHit ( ) const
inline

Definition at line 43 of file AlgoMuon.h.

43 { return m_phiRHit; }

References m_phiRHit.

Referenced by XMLConfigWriter::writeAlgoMuon().

◆ getPt()

int AlgoMuon::getPt ( ) const
inline

Definition at line 41 of file AlgoMuon.h.

41 { return m_pt; }

References m_pt.

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

◆ getQ()

int AlgoMuon::getQ ( ) const
inline

Definition at line 39 of file AlgoMuon.h.

39 { return m_q; }

References m_q.

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

◆ getRefHitNumber()

unsigned int AlgoMuon::getRefHitNumber ( ) const
inline

Definition at line 45 of file AlgoMuon.h.

45 { return m_rhitNumb; }

References m_rhitNumb.

Referenced by operator<().

◆ getRefLayer()

int AlgoMuon::getRefLayer ( ) const
inline

Definition at line 37 of file AlgoMuon.h.

37 { return m_refLayer; }

References m_refLayer.

Referenced by XMLConfigWriter::writeAlgoMuon().

◆ isValid()

bool AlgoMuon::isValid ( void  ) const

Definition at line 6 of file AlgoMuon.cc.

6 { return m_q >= 0; }

References m_q.

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

◆ operator<()

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

Definition at line 8 of file AlgoMuon.cc.

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 }

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

◆ setBx()

void AlgoMuon::setBx ( int  bx)
inline

Definition at line 53 of file AlgoMuon.h.

53 { m_bx = bx; }

References l1GtPatternGenerator_cfi::bx, and m_bx.

◆ setCharge()

void AlgoMuon::setCharge ( int  charge)
inline

Definition at line 55 of file AlgoMuon.h.

55 { m_charge = charge; }

References ALCARECOTkAlJpsiMuMu_cff::charge, and m_charge.

◆ setDisc()

void AlgoMuon::setDisc ( int  disc)
inline

Definition at line 47 of file AlgoMuon.h.

47 { m_disc = disc; }

References TtSemiLepEvtBuilder_cfi::disc, and m_disc.

Referenced by OMTFSorter::sortSingleResult().

◆ setEta()

void AlgoMuon::setEta ( int  eta)
inline

Definition at line 49 of file AlgoMuon.h.

49 { m_eta = eta; }

References PVValHelper::eta, and m_eta.

Referenced by OMTFSorter::sortSingleResult().

◆ setHits()

void AlgoMuon::setHits ( int  hits)
inline

Definition at line 51 of file AlgoMuon.h.

51 { m_hits = hits; }

References hfClusterShapes_cfi::hits, and m_hits.

Referenced by OMTFSorter::sortSingleResult().

◆ setPatternNumber()

void AlgoMuon::setPatternNumber ( unsigned int  aPatNum)
inline

Definition at line 57 of file AlgoMuon.h.

57 { m_patNumb = aPatNum; }

References m_patNumb.

Referenced by OMTFSorter::sortRefHitResults().

◆ setPhi()

void AlgoMuon::setPhi ( int  phi)
inline

Definition at line 48 of file AlgoMuon.h.

48 { m_phi = phi; }

References m_phi, and phi.

Referenced by OMTFSorter::sortSingleResult().

◆ setPhiRHit()

void AlgoMuon::setPhiRHit ( int  phiRHit)
inline

Definition at line 56 of file AlgoMuon.h.

56 { m_phiRHit = phiRHit; }

References m_phiRHit.

Referenced by OMTFSorter::sortRefHitResults(), and OMTFSorter::sortSingleResult().

◆ setPt()

void AlgoMuon::setPt ( int  pt)
inline

Definition at line 54 of file AlgoMuon.h.

54 { m_pt = pt; }

References m_pt, and DiDispStaMuonMonitor_cfi::pt.

◆ setQ()

void AlgoMuon::setQ ( int  q)
inline

Definition at line 52 of file AlgoMuon.h.

52 { m_q = q; }

References m_q, and submitPVResolutionJobs::q.

Referenced by OMTFSorter::sortSingleResult().

◆ setRefHitNumber()

void AlgoMuon::setRefHitNumber ( unsigned int  aRefHitNum)
inline

Definition at line 58 of file AlgoMuon.h.

58 { m_rhitNumb = aRefHitNum; }

References m_rhitNumb.

◆ setRefLayer()

void AlgoMuon::setRefLayer ( int  refLayer)
inline

Definition at line 50 of file AlgoMuon.h.

50 { m_refLayer = refLayer; }

References m_refLayer.

Referenced by OMTFSorter::sortSingleResult().

Friends And Related Function Documentation

◆ operator<<

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 }

Member Data Documentation

◆ m_bx

int AlgoMuon::m_bx
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
private

Definition at line 80 of file AlgoMuon.h.

Referenced by getRefHitNumber(), and setRefHitNumber().

AlgoMuon::m_eta
int m_eta
Definition: AlgoMuon.h:69
AlgoMuon::getPatternNumber
unsigned int getPatternNumber() const
Definition: AlgoMuon.h:44
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
AlgoMuon::m_phiRHit
int m_phiRHit
Definition: AlgoMuon.h:76
AlgoMuon::m_bx
int m_bx
Definition: AlgoMuon.h:73
TtSemiLepEvtBuilder_cfi.disc
disc
Definition: TtSemiLepEvtBuilder_cfi.py:60
AlgoMuon::m_pt
int m_pt
Definition: AlgoMuon.h:74
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
AlgoMuon::getQ
int getQ() const
Definition: AlgoMuon.h:39
PVValHelper::eta
Definition: PVValidationHelpers.h:69
AlgoMuon::getRefHitNumber
unsigned int getRefHitNumber() const
Definition: AlgoMuon.h:45
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
AlgoMuon::getDisc
int getDisc() const
Definition: AlgoMuon.h:34
AlgoMuon::m_rhitNumb
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
AlgoMuon::m_refLayer
int m_refLayer
Definition: AlgoMuon.h:70
AlgoMuon::m_charge
int m_charge
Definition: AlgoMuon.h:75
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
AlgoMuon::m_hits
int m_hits
Definition: AlgoMuon.h:71
AlgoMuon::m_phi
int m_phi
Definition: AlgoMuon.h:68
AlgoMuon::m_disc
int m_disc
Definition: AlgoMuon.h:67
DDAxes::phi
AlgoMuon::m_patNumb
unsigned int m_patNumb
Definition: AlgoMuon.h:79
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
AlgoMuon::m_q
int m_q
Definition: AlgoMuon.h:72