Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-10-29 06:08:31

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