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)
 

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::AlgoMuon ( )
inline

Definition at line 11 of file AlgoMuon.h.

11 : 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:55
int m_eta
Definition: AlgoMuon.h:54
int m_q
Definition: AlgoMuon.h:57
int m_pt
Definition: AlgoMuon.h:59
int m_bx
Definition: AlgoMuon.h:58
int m_hits
Definition: AlgoMuon.h:56
int m_charge
Definition: AlgoMuon.h:60
int m_phi
Definition: AlgoMuon.h:53
int m_disc
Definition: AlgoMuon.h:52
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 12 of file AlgoMuon.h.

Member Function Documentation

int AlgoMuon::getBx ( ) const
inline

Definition at line 24 of file AlgoMuon.h.

References m_bx.

Referenced by operator<<().

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

Definition at line 26 of file AlgoMuon.h.

References m_charge.

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

26 { return m_charge; }
int m_charge
Definition: AlgoMuon.h:60
int AlgoMuon::getDisc ( ) const
inline

Definition at line 18 of file AlgoMuon.h.

References m_disc.

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

18 { return m_disc; }
int m_disc
Definition: AlgoMuon.h:52
int AlgoMuon::getEta ( ) const
inline

Definition at line 20 of file AlgoMuon.h.

References m_eta.

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

20 { return m_eta; }
int m_eta
Definition: AlgoMuon.h:54
int AlgoMuon::getHits ( ) const
inline

Definition at line 22 of file AlgoMuon.h.

References m_hits.

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

22 { return m_hits; }
int m_hits
Definition: AlgoMuon.h:56
unsigned int AlgoMuon::getPatternNumber ( ) const
inline

Definition at line 28 of file AlgoMuon.h.

References m_patNumb.

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

28 { return m_patNumb; }
unsigned int m_patNumb
Definition: AlgoMuon.h:64
int AlgoMuon::getPhi ( ) const
inline

Definition at line 19 of file AlgoMuon.h.

References m_phi.

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

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

Definition at line 27 of file AlgoMuon.h.

References m_phiRHit.

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

27 { return m_phiRHit; }
int m_phiRHit
Definition: AlgoMuon.h:61
int AlgoMuon::getPt ( ) const
inline

Definition at line 25 of file AlgoMuon.h.

References m_pt.

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

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

Definition at line 23 of file AlgoMuon.h.

References m_q.

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

23 { return m_q; }
int m_q
Definition: AlgoMuon.h:57
unsigned int AlgoMuon::getRefHitNumber ( ) const
inline

Definition at line 29 of file AlgoMuon.h.

References m_rhitNumb.

Referenced by operator<().

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

Definition at line 21 of file AlgoMuon.h.

References m_refLayer.

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

21 { return m_refLayer; }
int m_refLayer
Definition: AlgoMuon.h:55
bool AlgoMuon::isValid ( void  ) const

Definition at line 6 of file AlgoMuon.cc.

References m_q.

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

6  {
7  return m_q >= 0;
8 }
int m_q
Definition: AlgoMuon.h:57
bool AlgoMuon::operator< ( const AlgoMuon o) const

Definition at line 10 of file AlgoMuon.cc.

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

Referenced by setRefHitNumber().

10  {
11  if(this->getQ() > o.getQ()) return false;
12  else if(this->getQ()==o.getQ() && this->getDisc() > o.getDisc()) return false;
13  else if (getQ()==o.getQ() && getDisc() == o.getDisc() && getPatternNumber() > o.getPatternNumber() ) return false;
14  else if (getQ()==o.getQ() && getDisc() == o.getDisc() && getPatternNumber() == o.getPatternNumber() && getRefHitNumber() < o.getRefHitNumber()) return false;
15  else return true;
16 }
int getQ() const
Definition: AlgoMuon.h:23
unsigned int getRefHitNumber() const
Definition: AlgoMuon.h:29
int getDisc() const
Definition: AlgoMuon.h:18
unsigned int getPatternNumber() const
Definition: AlgoMuon.h:28
void AlgoMuon::setBx ( int  bx)
inline

Definition at line 37 of file AlgoMuon.h.

References m_bx.

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

Definition at line 39 of file AlgoMuon.h.

References ALCARECOTkAlJpsiMuMu_cff::charge, and m_charge.

void AlgoMuon::setDisc ( int  disc)
inline

Definition at line 31 of file AlgoMuon.h.

References TtSemiLepEvtBuilder_cfi::disc, and m_disc.

Referenced by OMTFSorter::sortSingleResult().

void AlgoMuon::setEta ( int  eta)
inline

Definition at line 33 of file AlgoMuon.h.

References PVValHelper::eta, and m_eta.

Referenced by OMTFSorter::sortSingleResult().

void AlgoMuon::setHits ( int  hits)
inline

Definition at line 35 of file AlgoMuon.h.

References hfClusterShapes_cfi::hits, and m_hits.

Referenced by OMTFSorter::sortSingleResult().

void AlgoMuon::setPatternNumber ( unsigned int  aPatNum)
inline

Definition at line 41 of file AlgoMuon.h.

References m_patNumb.

Referenced by OMTFSorter::sortRefHitResults().

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

Definition at line 32 of file AlgoMuon.h.

References m_phi, and phi.

Referenced by OMTFSorter::sortSingleResult().

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

Definition at line 40 of file AlgoMuon.h.

References m_phiRHit.

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

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

Definition at line 38 of file AlgoMuon.h.

References m_pt, and EnergyCorrector::pt.

38 { m_pt = pt; }
int m_pt
Definition: AlgoMuon.h:59
void AlgoMuon::setQ ( int  q)
inline

Definition at line 36 of file AlgoMuon.h.

References m_q, and lumiQueryAPI::q.

Referenced by OMTFSorter::sortSingleResult().

36 { m_q = q; }
int m_q
Definition: AlgoMuon.h:57
void AlgoMuon::setRefHitNumber ( unsigned int  aRefHitNum)
inline

Definition at line 42 of file AlgoMuon.h.

References isValid(), m_rhitNumb, connectstrParser::o, operator<(), operator<<, and MillePedeFileConverter_cfg::out.

Referenced by OMTFSorter::sortRefHitResults().

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

Definition at line 34 of file AlgoMuon.h.

References m_refLayer.

Referenced by OMTFSorter::sortSingleResult().

34 { m_refLayer = refLayer; }
int m_refLayer
Definition: AlgoMuon.h:55

Friends And Related Function Documentation

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

Definition at line 18 of file AlgoMuon.cc.

Referenced by setRefHitNumber().

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

Member Data Documentation

int AlgoMuon::m_bx
private

Definition at line 58 of file AlgoMuon.h.

Referenced by getBx(), and setBx().

int AlgoMuon::m_charge
private

Definition at line 60 of file AlgoMuon.h.

Referenced by getCharge(), and setCharge().

int AlgoMuon::m_disc
private

Definition at line 52 of file AlgoMuon.h.

Referenced by getDisc(), and setDisc().

int AlgoMuon::m_eta
private

Definition at line 54 of file AlgoMuon.h.

Referenced by getEta(), and setEta().

int AlgoMuon::m_hits
private

Definition at line 56 of file AlgoMuon.h.

Referenced by getHits(), and setHits().

unsigned int AlgoMuon::m_patNumb
private

Definition at line 64 of file AlgoMuon.h.

Referenced by getPatternNumber(), and setPatternNumber().

int AlgoMuon::m_phi
private

Definition at line 53 of file AlgoMuon.h.

Referenced by getPhi(), and setPhi().

int AlgoMuon::m_phiRHit
private

Definition at line 61 of file AlgoMuon.h.

Referenced by getPhiRHit(), and setPhiRHit().

int AlgoMuon::m_pt
private

Definition at line 59 of file AlgoMuon.h.

Referenced by getPt(), and setPt().

int AlgoMuon::m_q
private

Definition at line 57 of file AlgoMuon.h.

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

int AlgoMuon::m_refLayer
private

Definition at line 55 of file AlgoMuon.h.

Referenced by getRefLayer(), and setRefLayer().

unsigned int AlgoMuon::m_rhitNumb
private

Definition at line 65 of file AlgoMuon.h.

Referenced by getRefHitNumber(), and setRefHitNumber().