CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
int getPhi () const
 
int getPhiRHit () const
 
int getPt () const
 
int getQ () 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 setPhi (int phi)
 
void setPhiRHit (int phiRHit)
 
void setPt (int pt)
 
void setQ (int q)
 
void setRefLayer (int refLayer)
 

Private Attributes

int m_bx
 
int m_charge
 
int m_disc
 
int m_eta
 
int m_hits
 
int m_phi
 
int m_phiRHit
 
int m_pt
 
int m_q
 
int m_refLayer
 

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:50
int m_eta
Definition: AlgoMuon.h:49
int m_q
Definition: AlgoMuon.h:52
int m_pt
Definition: AlgoMuon.h:54
int m_bx
Definition: AlgoMuon.h:53
int m_hits
Definition: AlgoMuon.h:51
int m_charge
Definition: AlgoMuon.h:55
int m_phi
Definition: AlgoMuon.h:48
int m_disc
Definition: AlgoMuon.h:47
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.

13  :
14  m_disc(disc), m_phi(phi), m_eta(eta), m_refLayer(refLayer),
15  m_hits(hits), m_q(q), m_bx(bx), m_pt(pt), m_charge(charge) {}
int m_refLayer
Definition: AlgoMuon.h:50
int m_eta
Definition: AlgoMuon.h:49
int m_q
Definition: AlgoMuon.h:52
int m_pt
Definition: AlgoMuon.h:54
int m_bx
Definition: AlgoMuon.h:53
int m_hits
Definition: AlgoMuon.h:51
int m_charge
Definition: AlgoMuon.h:55
int m_phi
Definition: AlgoMuon.h:48
int m_disc
Definition: AlgoMuon.h:47

Member Function Documentation

int AlgoMuon::getBx ( ) const
inline

Definition at line 23 of file AlgoMuon.h.

References m_bx.

Referenced by operator<<().

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

Definition at line 25 of file AlgoMuon.h.

References m_charge.

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

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

Definition at line 17 of file AlgoMuon.h.

References m_disc.

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

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

Definition at line 19 of file AlgoMuon.h.

References m_eta.

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

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

Definition at line 21 of file AlgoMuon.h.

References m_hits.

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

21 { return m_hits; }
int m_hits
Definition: AlgoMuon.h:51
int AlgoMuon::getPhi ( ) const
inline

Definition at line 18 of file AlgoMuon.h.

References m_phi.

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

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

Definition at line 26 of file AlgoMuon.h.

References m_phiRHit.

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

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

Definition at line 24 of file AlgoMuon.h.

References m_pt.

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

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

Definition at line 22 of file AlgoMuon.h.

References m_q.

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

22 { return m_q; }
int m_q
Definition: AlgoMuon.h:52
int AlgoMuon::getRefLayer ( ) const
inline

Definition at line 20 of file AlgoMuon.h.

References m_refLayer.

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

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

Definition at line 6 of file AlgoMuon.cc.

References m_q.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

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

Definition at line 10 of file AlgoMuon.cc.

References getDisc(), and getQ().

10  {
11  if(this->getQ() > o.getQ()) return false;
12  else if(this->getQ()==o.getQ() && this->getDisc() > o.getDisc()) return false;
13  else return true;
14 }
int getQ() const
Definition: AlgoMuon.h:22
int getDisc() const
Definition: AlgoMuon.h:17
void AlgoMuon::setBx ( int  bx)
inline

Definition at line 34 of file AlgoMuon.h.

References m_bx.

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

Definition at line 36 of file AlgoMuon.h.

References RecoTauCleanerPlugins::charge, and m_charge.

void AlgoMuon::setDisc ( int  disc)
inline

Definition at line 28 of file AlgoMuon.h.

References m_disc.

Referenced by OMTFSorter::sortSingleResult().

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

Definition at line 30 of file AlgoMuon.h.

References eta, and m_eta.

Referenced by OMTFSorter::sortSingleResult().

30 { m_eta = eta; }
int m_eta
Definition: AlgoMuon.h:49
void AlgoMuon::setHits ( int  hits)
inline

Definition at line 32 of file AlgoMuon.h.

References m_hits.

Referenced by OMTFSorter::sortSingleResult().

32 { m_hits = hits; }
int m_hits
Definition: AlgoMuon.h:51
void AlgoMuon::setPhi ( int  phi)
inline

Definition at line 29 of file AlgoMuon.h.

References m_phi, and phi.

Referenced by OMTFSorter::sortSingleResult().

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

Definition at line 37 of file AlgoMuon.h.

References m_phiRHit.

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

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

Definition at line 35 of file AlgoMuon.h.

References m_pt, and EnergyCorrector::pt.

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

Definition at line 33 of file AlgoMuon.h.

References m_q, and lumiQueryAPI::q.

Referenced by OMTFSorter::sortSingleResult().

33 { m_q = q; }
int m_q
Definition: AlgoMuon.h:52
void AlgoMuon::setRefLayer ( int  refLayer)
inline

Definition at line 31 of file AlgoMuon.h.

References m_refLayer.

Referenced by OMTFSorter::sortSingleResult().

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

Friends And Related Function Documentation

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

Definition at line 16 of file AlgoMuon.cc.

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

Member Data Documentation

int AlgoMuon::m_bx
private

Definition at line 53 of file AlgoMuon.h.

Referenced by getBx(), and setBx().

int AlgoMuon::m_charge
private

Definition at line 55 of file AlgoMuon.h.

Referenced by getCharge(), and setCharge().

int AlgoMuon::m_disc
private

Definition at line 47 of file AlgoMuon.h.

Referenced by getDisc(), and setDisc().

int AlgoMuon::m_eta
private

Definition at line 49 of file AlgoMuon.h.

Referenced by getEta(), and setEta().

int AlgoMuon::m_hits
private

Definition at line 51 of file AlgoMuon.h.

Referenced by getHits(), and setHits().

int AlgoMuon::m_phi
private

Definition at line 48 of file AlgoMuon.h.

Referenced by getPhi(), and setPhi().

int AlgoMuon::m_phiRHit
private

Definition at line 56 of file AlgoMuon.h.

Referenced by getPhiRHit(), and setPhiRHit().

int AlgoMuon::m_pt
private

Definition at line 54 of file AlgoMuon.h.

Referenced by getPt(), and setPt().

int AlgoMuon::m_q
private

Definition at line 52 of file AlgoMuon.h.

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

int AlgoMuon::m_refLayer
private

Definition at line 50 of file AlgoMuon.h.

Referenced by getRefLayer(), and setRefLayer().