CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  bool oneTightInTime = false,
23  bool oneTightOutOfTime = false);
24 
26 
27  void setOneNominalInTime(const bool bit) { isOneNominalInTime_ = bit; }
28  void setOneNominalOutOfTime(const bool bit) { isOneNominalOutOfTime_ = bit; }
29  void setOneTightInTime(const bool bit) { isOneTightInTime_ = bit; }
30  void setOneTightOutOfTime(const bool bit) { isOneTightOutOfTime_ = bit; }
31  void setTwoLooseOutOfTime(const bool bit) { isTwoLooseOutOfTime_ = bit; }
32  void setTwoLooseInTime(const bool bit) { isTwoLooseInTime_ = bit; }
33 
34  void setEndcap(const int endcap) { endcap_ = endcap; }
35  void setSector(const unsigned sector) { sector_ = sector; }
36  void setLink(const int link) { link_ = link; };
37 
38  bool isValid() const;
39  bool isOneNominalInTime() const { return isOneNominalInTime_; }
41  bool isOneTightInTime() const { return isOneTightInTime_; }
42  bool isOneTightOutOfTime() const { return isOneTightOutOfTime_; }
43  bool isTwoLooseInTime() const { return isTwoLooseInTime_; }
44  bool isTwoLooseOutOfTime() const { return isTwoLooseOutOfTime_; }
45 
46  int endcap() const { return endcap_; }
47  int sector() const { return sector_; }
49  int link() const { return link_; }
50 
51  bool operator==(const l1t::RegionalMuonShower& rhs) const;
52  inline bool operator!=(const l1t::RegionalMuonShower& rhs) const { return !(operator==(rhs)); };
53 
54  private:
55  // Run-3 definitions as provided in DN-20-033
56  // in time and out-of-time qualities. only 2 bits each.
63  int endcap_; // +/-1. For ME+ and ME-.
64  unsigned sector_; // 1 - 6.
65  int link_;
66  };
67 
68 } // namespace l1t
69 
70 #endif
void setOneTightInTime(const bool bit)
void setEndcap(const int endcap)
ObjectRefPair< RegionalMuonShower > RegionalMuonShowerRefPair
bool operator!=(const l1t::RegionalMuonShower &rhs) const
void setOneTightOutOfTime(const bool bit)
RegionalMuonShower(bool oneNominalInTime=false, bool oneNominalOutOfTime=false, bool twoLooseInTime=false, bool twoLooseOutOfTime=false, bool oneTightInTime=false, bool oneTightOutOfTime=false)
bool isOneTightOutOfTime() const
void setTwoLooseInTime(const bool bit)
bool isOneNominalInTime() const
bool isOneNominalOutOfTime() const
bool isTwoLooseOutOfTime() const
int link() const
Get link on which the MicroGMT receives the candidate.
void setLink(const int link)
std::pair< edm::Ref< BXVector< T >>, edm::Ref< BXVector< T >>> ObjectRefPair
BXVector< RegionalMuonShower > RegionalMuonShowerBxCollection
void setOneNominalInTime(const bool bit)
ObjectRefBxCollection< RegionalMuonShower > RegionalMuonShowerRefBxCollection
void setSector(const unsigned sector)
void setTwoLooseOutOfTime(const bool bit)
void setOneNominalOutOfTime(const bool bit)
ObjectRefPairBxCollection< RegionalMuonShower > RegionalMuonShowerRefPairBxCollection
bool operator==(const l1t::RegionalMuonShower &rhs) const