Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "DataFormats/L1Trigger/interface/Muon.h"
0002 
0003 l1t::Muon::Muon()
0004     : L1Candidate(math::PtEtaPhiMLorentzVector{0., 0., 0., 0.}, 0., 0., 0., 0, 0),
0005       hwCharge_(0),
0006       hwChargeValid_(0),
0007       tfMuonIndex_(-1),
0008       hwTag_(0),
0009       debug_(false),
0010       hwIsoSum_(0),
0011       hwDPhiExtra_(0),
0012       hwDEtaExtra_(0),
0013       hwRank_(0),
0014       hwEtaAtVtx_(0),
0015       hwPhiAtVtx_(0),
0016       etaAtVtx_(0.),
0017       phiAtVtx_(0.),
0018       hwPtUnconstrained_(0),
0019       ptUnconstrained_(0.),
0020       hwDXY_(0) {}
0021 
0022 l1t::Muon::Muon(const LorentzVector& p4,
0023                 int pt,
0024                 int eta,
0025                 int phi,
0026                 int qual,
0027                 int charge,
0028                 int chargeValid,
0029                 int iso,
0030                 int tfMuonIndex,
0031                 int tag,
0032                 bool debug,
0033                 int isoSum,
0034                 int dPhi,
0035                 int dEta,
0036                 int rank,
0037                 int hwEtaAtVtx,
0038                 int hwPhiAtVtx,
0039                 double etaAtVtx,
0040                 double phiAtVtx,
0041                 int hwPtUnconstrained,
0042                 double ptUnconstrained,
0043                 int dXY)
0044     : L1Candidate(p4, pt, eta, phi, qual, iso),
0045       hwCharge_(charge),
0046       hwChargeValid_(chargeValid),
0047       tfMuonIndex_(tfMuonIndex),
0048       hwTag_(tag),
0049       debug_(debug),
0050       hwIsoSum_(isoSum),
0051       hwDPhiExtra_(dPhi),
0052       hwDEtaExtra_(dEta),
0053       hwRank_(rank),
0054       hwEtaAtVtx_(hwEtaAtVtx),
0055       hwPhiAtVtx_(hwPhiAtVtx),
0056       etaAtVtx_(etaAtVtx),
0057       phiAtVtx_(phiAtVtx),
0058       hwPtUnconstrained_(hwPtUnconstrained),
0059       ptUnconstrained_(ptUnconstrained),
0060       hwDXY_(dXY) {}
0061 
0062 l1t::Muon::Muon(const PolarLorentzVector& p4,
0063                 int pt,
0064                 int eta,
0065                 int phi,
0066                 int qual,
0067                 int charge,
0068                 int chargeValid,
0069                 int iso,
0070                 int tfMuonIndex,
0071                 int tag,
0072                 bool debug,
0073                 int isoSum,
0074                 int dPhi,
0075                 int dEta,
0076                 int rank,
0077                 int hwEtaAtVtx,
0078                 int hwPhiAtVtx,
0079                 double etaAtVtx,
0080                 double phiAtVtx,
0081                 int hwPtUnconstrained,
0082                 double ptUnconstrained,
0083                 int dXY)
0084     : L1Candidate(p4, pt, eta, phi, qual, iso),
0085       hwCharge_(charge),
0086       hwChargeValid_(chargeValid),
0087       tfMuonIndex_(tfMuonIndex),
0088       hwTag_(tag),
0089       debug_(debug),
0090       hwIsoSum_(isoSum),
0091       hwDPhiExtra_(dPhi),
0092       hwDEtaExtra_(dEta),
0093       hwRank_(rank),
0094       hwEtaAtVtx_(hwEtaAtVtx),
0095       hwPhiAtVtx_(hwPhiAtVtx),
0096       etaAtVtx_(etaAtVtx),
0097       phiAtVtx_(phiAtVtx),
0098       hwPtUnconstrained_(hwPtUnconstrained),
0099       ptUnconstrained_(ptUnconstrained),
0100       hwDXY_(dXY) {}
0101 
0102 l1t::Muon::~Muon() {}
0103 
0104 bool l1t::Muon::operator==(const l1t::Muon& rhs) const {
0105   return l1t::L1Candidate::operator==(static_cast<const l1t::L1Candidate&>(rhs)) && hwCharge_ == rhs.hwCharge() &&
0106          hwChargeValid_ == rhs.hwChargeValid() && tfMuonIndex_ == rhs.tfMuonIndex() &&
0107          hwEtaAtVtx_ == rhs.hwEtaAtVtx() && hwPhiAtVtx_ == rhs.hwPhiAtVtx() &&
0108          hwPtUnconstrained_ == rhs.hwPtUnconstrained() && ptUnconstrained_ == rhs.ptUnconstrained() &&
0109          hwDXY_ == rhs.hwDXY();
0110 }