Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:25

0001 #ifndef AlgoMuon_H
0002 #define AlgoMuon_H
0003 
0004 #include <ostream>
0005 
0006 class AlgoMuon {
0007 public:
0008   // AlgoMuon() : pt(-1.), eta(99.), phi(9999.), disc(-999), bx(0), q(-1), charge(99), refLayer(-1), hits(0) {} // the old one version
0009   AlgoMuon()
0010       : 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) {}
0011   AlgoMuon(int disc = -999,
0012            int phi = 9999,
0013            int eta = 99,
0014            int refLayer = -1,
0015            int hits = 0,
0016            int q = -1,
0017            int bx = 0,
0018            int pt = -1,
0019            int charge = 99)
0020       : m_disc(disc),
0021         m_phi(phi),
0022         m_eta(eta),
0023         m_refLayer(refLayer),
0024         m_hits(hits),
0025         m_q(q),
0026         m_bx(bx),
0027         m_pt(pt),
0028         m_charge(charge),
0029         m_patNumb(999),
0030         m_rhitNumb(999) {}
0031 
0032   virtual ~AlgoMuon() {}
0033 
0034   int getDisc() const { return m_disc; }
0035   int getPhi() const { return m_phi; }
0036   int getEta() const { return m_eta; }
0037   int getRefLayer() const { return m_refLayer; }
0038   int getHits() const { return m_hits; }
0039   int getQ() const { return m_q; }
0040   int getBx() const { return m_bx; }
0041   int getPt() const { return m_pt; }
0042   int getCharge() const { return m_charge; }
0043   int getPhiRHit() const { return m_phiRHit; }
0044   unsigned int getPatternNumber() const { return m_patNumb; }
0045   unsigned int getRefHitNumber() const { return m_rhitNumb; }
0046 
0047   void setDisc(int disc) { m_disc = disc; }
0048   void setPhi(int phi) { m_phi = phi; }
0049   void setEta(int eta) { m_eta = eta; }
0050   void setRefLayer(int refLayer) { m_refLayer = refLayer; }
0051   void setHits(int hits) { m_hits = hits; }
0052   void setQ(int q) { m_q = q; }
0053   void setBx(int bx) { m_bx = bx; }
0054   void setPt(int pt) { m_pt = pt; }
0055   void setCharge(int charge) { m_charge = charge; }
0056   void setPhiRHit(int phiRHit) { m_phiRHit = phiRHit; }
0057   void setPatternNumber(unsigned int aPatNum) { m_patNumb = aPatNum; }
0058   void setRefHitNumber(unsigned int aRefHitNum) { m_rhitNumb = aRefHitNum; }
0059 
0060   bool isValid() const;
0061 
0062   bool operator<(const AlgoMuon &o) const;
0063 
0064   friend std::ostream &operator<<(std::ostream &out, const AlgoMuon &o);
0065 
0066 private:
0067   int m_disc;
0068   int m_phi;
0069   int m_eta;
0070   int m_refLayer;
0071   int m_hits;
0072   int m_q;
0073   int m_bx;
0074   int m_pt;
0075   int m_charge;
0076   int m_phiRHit;
0077   // to add
0078   // int m_pdf;
0079   unsigned int m_patNumb;
0080   unsigned int m_rhitNumb;
0081 };
0082 #endif