File indexing completed on 2024-04-06 12:04:39
0001 #include "DataFormats/L1Trigger/interface/MuonShower.h"
0002
0003 l1t::MuonShower::MuonShower(bool oneNominalInTime,
0004 bool oneNominalOutOfTime,
0005 bool twoLooseInTime,
0006 bool twoLooseOutOfTime,
0007 bool oneTightInTime,
0008 bool oneTightOutOfTime,
0009 bool twoLooseDiffSectorsInTime)
0010 : L1Candidate(math::PtEtaPhiMLorentzVector{0., 0., 0., 0.}, 0., 0., 0., 0, 0),
0011
0012
0013 oneNominalInTime_(oneNominalInTime),
0014 oneTightInTime_(oneTightInTime),
0015 twoLooseDiffSectorsInTime_(twoLooseDiffSectorsInTime),
0016 musOutOfTime0_(false),
0017 musOutOfTime1_(false) {}
0018
0019 l1t::MuonShower::~MuonShower() {}
0020
0021 bool l1t::MuonShower::isValid() const {
0022 return oneNominalInTime_ or oneTightInTime_ or twoLooseDiffSectorsInTime_ or musOutOfTime0_ or musOutOfTime1_;
0023 }
0024
0025 bool l1t::MuonShower::operator==(const l1t::MuonShower& rhs) const {
0026 return (oneNominalInTime_ == rhs.isOneNominalInTime() and oneTightInTime_ == rhs.isOneTightInTime() and
0027 musOutOfTime0_ == rhs.musOutOfTime0() and musOutOfTime1_ == rhs.musOutOfTime1() and
0028 twoLooseDiffSectorsInTime_ == rhs.isTwoLooseDiffSectorsInTime());
0029 }