CMS 3D CMS Logo

AlgoMuon.h
Go to the documentation of this file.
1 #ifndef AlgoMuon_H
2 #define AlgoMuon_H
3 
4 #include <ostream>
5 
6 class AlgoMuon{
7 
8  public:
9 
10  // AlgoMuon() : pt(-1.), eta(99.), phi(9999.), disc(-999), bx(0), q(-1), charge(99), refLayer(-1), hits(0) {} // the old one version
11  AlgoMuon() : 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) {}
12  AlgoMuon(int disc=-999, int phi=9999, int eta=99, int refLayer=-1,
13  int hits=0, int q=-1, int bx=0, int pt=-1, int charge=99):
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),
16  m_patNumb(999), m_rhitNumb(999) {}
17 
18  virtual ~AlgoMuon() {}
19 
20  int getDisc() const { return m_disc; }
21  int getPhi() const { return m_phi; }
22  int getEta() const { return m_eta; }
23  int getRefLayer() const { return m_refLayer; }
24  int getHits() const { return m_hits; }
25  int getQ() const { return m_q; }
26  int getBx() const { return m_bx; }
27  int getPt() const { return m_pt; }
28  int getCharge() const { return m_charge; }
29  int getPhiRHit() const { return m_phiRHit; }
30  unsigned int getPatternNumber() const { return m_patNumb; }
31  unsigned int getRefHitNumber() const { return m_rhitNumb; }
32 
33  void setDisc(int disc) { m_disc = disc; }
34  void setPhi(int phi) { m_phi = phi; }
35  void setEta(int eta) { m_eta = eta; }
36  void setRefLayer(int refLayer) { m_refLayer = refLayer; }
37  void setHits(int hits) { m_hits = hits; }
38  void setQ(int q) { m_q = q; }
39  void setBx(int bx) { m_bx = bx; }
40  void setPt(int pt) { m_pt = pt; }
41  void setCharge(int charge) { m_charge = charge; }
42  void setPhiRHit(int phiRHit) { m_phiRHit = phiRHit; }
43  void setPatternNumber(unsigned int aPatNum) { m_patNumb = aPatNum;}
44  void setRefHitNumber(unsigned int aRefHitNum) { m_rhitNumb = aRefHitNum; }
45 
46  bool isValid() const;
47 
48  bool operator< (const AlgoMuon & o) const;
49 
50  friend std::ostream & operator<< (std::ostream &out, const AlgoMuon &o);
51 
52  private:
53 
54  int m_disc;
55  int m_phi;
56  int m_eta;
58  int m_hits;
59  int m_q;
60  int m_bx;
61  int m_pt;
62  int m_charge;
63  int m_phiRHit;
64  // to add
65  // int m_pdf;
66  unsigned int m_patNumb;
67  unsigned int m_rhitNumb;
68 
69 };
70 #endif
AlgoMuon()
Definition: AlgoMuon.h:11
int getCharge() const
Definition: AlgoMuon.h:28
int getEta() const
Definition: AlgoMuon.h:22
int m_refLayer
Definition: AlgoMuon.h:57
void setCharge(int charge)
Definition: AlgoMuon.h:41
int getQ() const
Definition: AlgoMuon.h:25
void setQ(int q)
Definition: AlgoMuon.h:38
int m_eta
Definition: AlgoMuon.h:56
bool isValid() const
Definition: AlgoMuon.cc:6
int m_phiRHit
Definition: AlgoMuon.h:63
unsigned int m_rhitNumb
Definition: AlgoMuon.h:67
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)
Definition: AlgoMuon.h:12
unsigned int getRefHitNumber() const
Definition: AlgoMuon.h:31
void setBx(int bx)
Definition: AlgoMuon.h:39
virtual ~AlgoMuon()
Definition: AlgoMuon.h:18
unsigned int m_patNumb
Definition: AlgoMuon.h:66
int m_q
Definition: AlgoMuon.h:59
int getDisc() const
Definition: AlgoMuon.h:20
void setRefLayer(int refLayer)
Definition: AlgoMuon.h:36
void setDisc(int disc)
Definition: AlgoMuon.h:33
void setPt(int pt)
Definition: AlgoMuon.h:40
int getBx() const
Definition: AlgoMuon.h:26
int getRefLayer() const
Definition: AlgoMuon.h:23
friend std::ostream & operator<<(std::ostream &out, const AlgoMuon &o)
Definition: AlgoMuon.cc:18
void setPatternNumber(unsigned int aPatNum)
Definition: AlgoMuon.h:43
int m_pt
Definition: AlgoMuon.h:61
int m_bx
Definition: AlgoMuon.h:60
int m_hits
Definition: AlgoMuon.h:58
void setHits(int hits)
Definition: AlgoMuon.h:37
int getHits() const
Definition: AlgoMuon.h:24
bool operator<(const AlgoMuon &o) const
Definition: AlgoMuon.cc:10
void setEta(int eta)
Definition: AlgoMuon.h:35
int getPt() const
Definition: AlgoMuon.h:27
void setPhi(int phi)
Definition: AlgoMuon.h:34
void setPhiRHit(int phiRHit)
Definition: AlgoMuon.h:42
int m_charge
Definition: AlgoMuon.h:62
unsigned int getPatternNumber() const
Definition: AlgoMuon.h:30
void setRefHitNumber(unsigned int aRefHitNum)
Definition: AlgoMuon.h:44
int getPhi() const
Definition: AlgoMuon.h:21
int m_phi
Definition: AlgoMuon.h:55
int getPhiRHit() const
Definition: AlgoMuon.h:29
int m_disc
Definition: AlgoMuon.h:54