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 public:
8  // AlgoMuon() : pt(-1.), eta(99.), phi(9999.), disc(-999), bx(0), q(-1), charge(99), refLayer(-1), hits(0) {} // the old one version
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) {}
11  AlgoMuon(int disc = -999,
12  int phi = 9999,
13  int eta = 99,
14  int refLayer = -1,
15  int hits = 0,
16  int q = -1,
17  int bx = 0,
18  int pt = -1,
19  int charge = 99)
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) {}
31 
32  virtual ~AlgoMuon() {}
33 
34  int getDisc() const { return m_disc; }
35  int getPhi() const { return m_phi; }
36  int getEta() const { return m_eta; }
37  int getRefLayer() const { return m_refLayer; }
38  int getHits() const { return m_hits; }
39  int getQ() const { return m_q; }
40  int getBx() const { return m_bx; }
41  int getPt() const { return m_pt; }
42  int getCharge() const { return m_charge; }
43  int getPhiRHit() const { return m_phiRHit; }
44  unsigned int getPatternNumber() const { return m_patNumb; }
45  unsigned int getRefHitNumber() const { return m_rhitNumb; }
46 
47  void setDisc(int disc) { m_disc = disc; }
48  void setPhi(int phi) { m_phi = phi; }
49  void setEta(int eta) { m_eta = eta; }
50  void setRefLayer(int refLayer) { m_refLayer = refLayer; }
51  void setHits(int hits) { m_hits = hits; }
52  void setQ(int q) { m_q = q; }
53  void setBx(int bx) { m_bx = bx; }
54  void setPt(int pt) { m_pt = pt; }
55  void setCharge(int charge) { m_charge = charge; }
56  void setPhiRHit(int phiRHit) { m_phiRHit = phiRHit; }
57  void setPatternNumber(unsigned int aPatNum) { m_patNumb = aPatNum; }
58  void setRefHitNumber(unsigned int aRefHitNum) { m_rhitNumb = aRefHitNum; }
59 
60  bool isValid() const;
61 
62  bool operator<(const AlgoMuon &o) const;
63 
64  friend std::ostream &operator<<(std::ostream &out, const AlgoMuon &o);
65 
66 private:
67  int m_disc;
68  int m_phi;
69  int m_eta;
71  int m_hits;
72  int m_q;
73  int m_bx;
74  int m_pt;
75  int m_charge;
76  int m_phiRHit;
77  // to add
78  // int m_pdf;
79  unsigned int m_patNumb;
80  unsigned int m_rhitNumb;
81 };
82 #endif
AlgoMuon()
Definition: AlgoMuon.h:9
int m_refLayer
Definition: AlgoMuon.h:70
void setCharge(int charge)
Definition: AlgoMuon.h:55
int getQ() const
Definition: AlgoMuon.h:39
void setQ(int q)
Definition: AlgoMuon.h:52
int m_eta
Definition: AlgoMuon.h:69
bool isValid() const
Definition: AlgoMuon.cc:6
int m_phiRHit
Definition: AlgoMuon.h:76
unsigned int m_rhitNumb
Definition: AlgoMuon.h:80
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:11
void setBx(int bx)
Definition: AlgoMuon.h:53
virtual ~AlgoMuon()
Definition: AlgoMuon.h:32
int getCharge() const
Definition: AlgoMuon.h:42
unsigned int m_patNumb
Definition: AlgoMuon.h:79
unsigned int getPatternNumber() const
Definition: AlgoMuon.h:44
int m_q
Definition: AlgoMuon.h:72
void setRefLayer(int refLayer)
Definition: AlgoMuon.h:50
int getBx() const
Definition: AlgoMuon.h:40
void setDisc(int disc)
Definition: AlgoMuon.h:47
void setPt(int pt)
Definition: AlgoMuon.h:54
unsigned int getRefHitNumber() const
Definition: AlgoMuon.h:45
friend std::ostream & operator<<(std::ostream &out, const AlgoMuon &o)
Definition: AlgoMuon.cc:22
void setPatternNumber(unsigned int aPatNum)
Definition: AlgoMuon.h:57
int m_pt
Definition: AlgoMuon.h:74
int m_bx
Definition: AlgoMuon.h:73
int m_hits
Definition: AlgoMuon.h:71
int getHits() const
Definition: AlgoMuon.h:38
int getPhiRHit() const
Definition: AlgoMuon.h:43
void setHits(int hits)
Definition: AlgoMuon.h:51
bool operator<(const AlgoMuon &o) const
Definition: AlgoMuon.cc:8
int getRefLayer() const
Definition: AlgoMuon.h:37
void setEta(int eta)
Definition: AlgoMuon.h:49
int getPhi() const
Definition: AlgoMuon.h:35
int getDisc() const
Definition: AlgoMuon.h:34
void setPhi(int phi)
Definition: AlgoMuon.h:48
int getPt() const
Definition: AlgoMuon.h:41
void setPhiRHit(int phiRHit)
Definition: AlgoMuon.h:56
int m_charge
Definition: AlgoMuon.h:75
void setRefHitNumber(unsigned int aRefHitNum)
Definition: AlgoMuon.h:58
int m_phi
Definition: AlgoMuon.h:68
int getEta() const
Definition: AlgoMuon.h:36
int m_disc
Definition: AlgoMuon.h:67