Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:30

0001 #ifndef DataFormats_L1Scouting_L1ScoutingMuon_h
0002 #define DataFormats_L1Scouting_L1ScoutingMuon_h
0003 
0004 #include "DataFormats/L1Scouting/interface/OrbitCollection.h"
0005 
0006 namespace l1ScoutingRun3 {
0007 
0008   class Muon {
0009   public:
0010     Muon()
0011         : hwPt_(0),
0012           hwEta_(0),
0013           hwPhi_(0),
0014           hwQual_(0),
0015           hwChrg_(0),
0016           hwChrgv_(0),
0017           hwIso_(0),
0018           tfIndex_(0),
0019           hwEtaAtVtx_(0),
0020           hwPhiAtVtx_(0),
0021           hwPtUnconstrained_(0),
0022           hwDXY_(0) {}
0023 
0024     Muon(int hwPt,
0025          int hwEta,
0026          int hwPhi,
0027          int hwQual,
0028          int hwChrg,
0029          int hwChrgv,
0030          int hwIso,
0031          int tfIndex,
0032          int hwEtaAtVtx,
0033          int hwPhiAtVtx,
0034          int hwPtUnconstrained,
0035          int hwDXY)
0036         : hwPt_(hwPt),
0037           hwEta_(hwEta),
0038           hwPhi_(hwPhi),
0039           hwQual_(hwQual),
0040           hwChrg_(hwChrg),
0041           hwChrgv_(hwChrgv),
0042           hwIso_(hwIso),
0043           tfIndex_(tfIndex),
0044           hwEtaAtVtx_(hwEtaAtVtx),
0045           hwPhiAtVtx_(hwPhiAtVtx),
0046           hwPtUnconstrained_(hwPtUnconstrained),
0047           hwDXY_(hwDXY) {}
0048 
0049     void setHwPt(int hwPt) { hwPt_ = hwPt; }
0050     void setHwEta(int hwEta) { hwEta_ = hwEta; }
0051     void setHwPhi(int hwPhi) { hwPhi_ = hwPhi; }
0052     void setHwQual(int hwQual) { hwQual_ = hwQual; }
0053     void setHwChrg(int hwChrg) { hwChrg_ = hwChrg; }
0054     void setHwChrgv(int hwChrgv) { hwChrgv_ = hwChrgv; }
0055     void setHwIso(int hwIso) { hwIso_ = hwIso; }
0056     void setTfIndex(int tfIndex) { tfIndex_ = tfIndex; }
0057     void setHwEtaAtVtx(int hwEtaAtVtx) { hwEtaAtVtx_ = hwEtaAtVtx; }
0058     void setHwPhiAtVtx(int hwPhiAtVtx) { hwPhiAtVtx_ = hwPhiAtVtx; }
0059     void setHwPtUnconstrained(int hwPtUnconstrained) { hwPtUnconstrained_ = hwPtUnconstrained; }
0060     void setHwDXY(int hwDXY) { hwDXY_ = hwDXY; }
0061 
0062     int hwPt() const { return hwPt_; }
0063     int hwEta() const { return hwEta_; }
0064     int hwPhi() const { return hwPhi_; }
0065     int hwQual() const { return hwQual_; }
0066     int hwCharge() const { return hwChrg_; }
0067     int hwChargeValid() const { return hwChrgv_; }
0068     int hwIso() const { return hwIso_; }
0069     int hwIndex() const { return tfIndex_; }
0070     int hwEtaAtVtx() const { return hwEtaAtVtx_; }
0071     int hwPhiAtVtx() const { return hwPhiAtVtx_; }
0072     int hwPtUnconstrained() const { return hwPtUnconstrained_; }
0073     int hwDXY() const { return hwDXY_; }
0074     int tfMuonIndex() const { return tfIndex_; }
0075 
0076   private:
0077     int hwPt_;
0078     int hwEta_;
0079     int hwPhi_;
0080     int hwQual_;
0081     int hwChrg_;
0082     int hwChrgv_;
0083     int hwIso_;
0084     int tfIndex_;
0085     int hwEtaAtVtx_;
0086     int hwPhiAtVtx_;
0087     int hwPtUnconstrained_;
0088     int hwDXY_;
0089   };
0090 
0091   typedef OrbitCollection<Muon> MuonOrbitCollection;
0092 
0093 }  // namespace l1ScoutingRun3
0094 
0095 #endif  // DataFormats_L1Scouting_L1ScoutingMuon_h