CMS 3D CMS Logo

RegionalMuonShower.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1Trigger_RegionalMuonShower_h
2 #define DataFormats_L1Trigger_RegionalMuonShower_h
3 
7 
8 namespace l1t {
9 
15 
17  public:
18  RegionalMuonShower(bool oneNominalInTime = false,
19  bool oneNominalOutOfTime = false,
20  bool twoLooseInTime = false,
21  bool twoLooseOutOfTime = false);
22 
24 
25  void setOneNominalInTime(const bool bit) { isOneNominalInTime_ = bit; }
26  void setOneNominalOutOfTime(const bool bit) { isOneNominalOutOfTime_ = bit; }
27  void setTwoLooseOutOfTime(const bool bit) { isTwoLooseOutOfTime_ = bit; }
28  void setTwoLooseInTime(const bool bit) { isTwoLooseInTime_ = bit; }
29 
30  void setEndcap(const int endcap) { endcap_ = endcap; }
31  void setSector(const unsigned sector) { sector_ = sector; }
32  void setLink(const int link) { link_ = link; };
33 
34  bool isValid() const;
35  bool isOneNominalInTime() const { return isOneNominalInTime_; }
37  bool isTwoLooseInTime() const { return isTwoLooseInTime_; }
38  bool isTwoLooseOutOfTime() const { return isTwoLooseOutOfTime_; }
39 
40  int endcap() const { return endcap_; }
41  int sector() const { return sector_; }
43  int link() const { return link_; }
44 
45  bool operator==(const l1t::RegionalMuonShower& rhs) const;
46  inline bool operator!=(const l1t::RegionalMuonShower& rhs) const { return !(operator==(rhs)); };
47 
48  private:
49  // Run-3 definitions as provided in DN-20-033
50  // in time and out-of-time qualities. only 2 bits each.
55  int endcap_; // +/-1. For ME+ and ME-.
56  unsigned sector_; // 1 - 6.
57  int link_;
58  };
59 
60 } // namespace l1t
61 
62 #endif
l1t::RegionalMuonShower::operator==
bool operator==(const l1t::RegionalMuonShower &rhs) const
Definition: RegionalMuonShower.cc:21
l1t::RegionalMuonShower::isTwoLooseOutOfTime_
bool isTwoLooseOutOfTime_
Definition: RegionalMuonShower.h:54
BXVector.h
l1t::RegionalMuonShower
Definition: RegionalMuonShower.h:16
l1t::RegionalMuonShower::isOneNominalInTime_
bool isOneNominalInTime_
Definition: RegionalMuonShower.h:46
l1t::RegionalMuonShowerRefBxCollection
ObjectRefBxCollection< RegionalMuonShower > RegionalMuonShowerRefBxCollection
Definition: RegionalMuonShower.h:12
l1t::RegionalMuonShower::setTwoLooseOutOfTime
void setTwoLooseOutOfTime(const bool bit)
Definition: RegionalMuonShower.h:27
l1t::RegionalMuonShowerRefPairBxCollection
ObjectRefPairBxCollection< RegionalMuonShower > RegionalMuonShowerRefPairBxCollection
Definition: RegionalMuonShower.h:14
l1t::RegionalMuonShower::isValid
bool isValid() const
Definition: RegionalMuonShower.cc:17
l1t::RegionalMuonShower::setOneNominalOutOfTime
void setOneNominalOutOfTime(const bool bit)
Definition: RegionalMuonShower.h:26
l1t::RegionalMuonShower::setLink
void setLink(const int link)
Definition: RegionalMuonShower.h:32
BXVector
Definition: BXVector.h:15
l1t::RegionalMuonShower::setSector
void setSector(const unsigned sector)
Definition: RegionalMuonShower.h:31
l1t::RegionalMuonShower::endcap
int endcap() const
Definition: RegionalMuonShower.h:40
l1t::RegionalMuonShower::sector_
unsigned sector_
Definition: RegionalMuonShower.h:56
l1t::RegionalMuonShowerRefPair
ObjectRefPair< RegionalMuonShower > RegionalMuonShowerRefPair
Definition: RegionalMuonShower.h:13
l1t::RegionalMuonShower::isOneNominalOutOfTime_
bool isOneNominalOutOfTime_
Definition: RegionalMuonShower.h:52
l1t::RegionalMuonShower::operator!=
bool operator!=(const l1t::RegionalMuonShower &rhs) const
Definition: RegionalMuonShower.h:46
l1t
delete x;
Definition: CaloConfig.h:22
l1t::RegionalMuonShower::isTwoLooseInTime
bool isTwoLooseInTime() const
Definition: RegionalMuonShower.h:37
l1t::ObjectRefPair
std::pair< edm::Ref< BXVector< T > >, edm::Ref< BXVector< T > >> ObjectRefPair
Definition: L1TObjComparison.h:14
l1t::RegionalMuonShower::isOneNominalOutOfTime
bool isOneNominalOutOfTime() const
Definition: RegionalMuonShower.h:36
l1t::RegionalMuonShower::setOneNominalInTime
void setOneNominalInTime(const bool bit)
Definition: RegionalMuonShower.h:25
l1t::RegionalMuonShower::isTwoLooseInTime_
bool isTwoLooseInTime_
Definition: RegionalMuonShower.h:53
l1t::RegionalMuonShower::isOneNominalInTime
bool isOneNominalInTime() const
Definition: RegionalMuonShower.h:35
l1t::RegionalMuonShower::endcap_
int endcap_
Definition: RegionalMuonShower.h:55
Ref.h
l1t::RegionalMuonShower::isTwoLooseOutOfTime
bool isTwoLooseOutOfTime() const
Definition: RegionalMuonShower.h:38
l1t::RegionalMuonShower::RegionalMuonShower
RegionalMuonShower(bool oneNominalInTime=false, bool oneNominalOutOfTime=false, bool twoLooseInTime=false, bool twoLooseOutOfTime=false)
Definition: RegionalMuonShower.cc:3
l1t::RegionalMuonShower::sector
int sector() const
Definition: RegionalMuonShower.h:41
l1t::RegionalMuonShower::link_
int link_
Definition: RegionalMuonShower.h:57
l1t::RegionalMuonShower::setEndcap
void setEndcap(const int endcap)
Definition: RegionalMuonShower.h:30
l1t::RegionalMuonShower::setTwoLooseInTime
void setTwoLooseInTime(const bool bit)
Definition: RegionalMuonShower.h:28
l1t::RegionalMuonShower::~RegionalMuonShower
~RegionalMuonShower()
Definition: RegionalMuonShower.cc:15
L1TObjComparison.h
l1t::RegionalMuonShower::link
int link() const
Get link on which the MicroGMT receives the candidate.
Definition: RegionalMuonShower.h:43
l1t::RegionalMuonShowerBxCollection
BXVector< RegionalMuonShower > RegionalMuonShowerBxCollection
Definition: RegionalMuonShower.h:10