Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-08 06:27:46

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     : L1Candidate(math::PtEtaPhiMLorentzVector{0., 0., 0., 0.}, 0., 0., 0., 0, 0),
0010       // in this object it makes more sense to the different shower types to
0011       // the 4 bits, so that the object easily interfaces with the uGT emulator
0012       oneNominalInTime_(oneNominalInTime),
0013       oneTightInTime_(oneTightInTime),
0014       musOutOfTime0_(false),
0015       musOutOfTime1_(false) {}
0016 
0017 l1t::MuonShower::~MuonShower() {}
0018 
0019 bool l1t::MuonShower::isValid() const {
0020   return oneNominalInTime_ or oneTightInTime_ or musOutOfTime0_ or musOutOfTime1_;
0021 }
0022 
0023 bool l1t::MuonShower::operator==(const l1t::MuonShower& rhs) const {
0024   return (oneNominalInTime_ == rhs.isOneNominalInTime() and oneTightInTime_ == rhs.isOneTightInTime() and
0025           musOutOfTime0_ == rhs.musOutOfTime0() and musOutOfTime1_ == rhs.musOutOfTime1());
0026 }