CMS 3D CMS Logo

MuonShower.cc
Go to the documentation of this file.
2 
3 l1t::MuonShower::MuonShower(bool oneNominalInTime,
4  bool oneNominalOutOfTime,
5  bool twoLooseInTime,
6  bool twoLooseOutOfTime,
7  bool oneTightInTime,
8  bool oneTightOutOfTime,
9  bool twoLooseDiffSectorsInTime)
10  : L1Candidate(math::PtEtaPhiMLorentzVector{0., 0., 0., 0.}, 0., 0., 0., 0, 0),
11  // in this object it makes more sense to the different shower types to
12  // the 4 bits, so that the object easily interfaces with the uGT emulator
13  oneNominalInTime_(oneNominalInTime),
14  oneTightInTime_(oneTightInTime),
15  twoLooseDiffSectorsInTime_(twoLooseDiffSectorsInTime),
16  musOutOfTime0_(false),
17  musOutOfTime1_(false) {}
18 
20 
22  return oneNominalInTime_ or oneTightInTime_ or twoLooseDiffSectorsInTime_ or musOutOfTime0_ or musOutOfTime1_;
23 }
24 
26  return (oneNominalInTime_ == rhs.isOneNominalInTime() and oneTightInTime_ == rhs.isOneTightInTime() and
27  musOutOfTime0_ == rhs.musOutOfTime0() and musOutOfTime1_ == rhs.musOutOfTime1() and
28  twoLooseDiffSectorsInTime_ == rhs.isTwoLooseDiffSectorsInTime());
29 }
bool isOneTightInTime() const
Definition: MuonShower.h:67
MuonShower(bool oneNominalInTime=false, bool oneNominalOutOfTime=false, bool twoLooseInTime=false, bool twoLooseOutOfTime=false, bool oneTightInTime=false, bool oneTightOutOfTime=false, bool twoLooseDiffSectorsIntime=false)
Definition: MuonShower.cc:3
bool operator==(const l1t::MuonShower &rhs) const
Definition: MuonShower.cc:25
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
bool isOneNominalInTime() const
Definition: MuonShower.h:66
~MuonShower() override
Definition: MuonShower.cc:19
bool isValid() const
Definition: MuonShower.cc:21
bool musOutOfTime0() const
Definition: MuonShower.h:69
bool musOutOfTime1() const
Definition: MuonShower.h:70
bool isTwoLooseDiffSectorsInTime() const
Definition: MuonShower.h:68