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 #include "RegionalMuonCandFwd.h" // For tftype.
9 
10 namespace l1t {
11 
17 
19  public:
20  RegionalMuonShower(bool oneNominalInTime = false,
21  bool oneNominalOutOfTime = false,
22  bool twoLooseInTime = false,
23  bool twoLooseOutOfTime = false,
24  bool oneLooseInTime = false,
25  bool oneTightInTime = false,
26  bool oneTightOutOfTime = false);
27 
29 
32  void setOneTightInTime(const bool bit) { isOneTightInTime_ = bit; }
35  void setTwoLooseInTime(const bool bit) { isTwoLooseInTime_ = bit; }
36  void setOneLooseInTime(const bool bit) { isOneLooseInTime_ = bit; }
37 
39  void setTFIdentifiers(int processor, tftype trackFinder);
40 
41  bool isValid() const;
42  bool isOneNominalInTime() const { return isOneNominalInTime_; }
44  bool isOneTightInTime() const { return isOneTightInTime_; }
45  bool isOneTightOutOfTime() const { return isOneTightOutOfTime_; }
46  bool isTwoLooseInTime() const { return isTwoLooseInTime_; }
47  bool isTwoLooseOutOfTime() const { return isTwoLooseOutOfTime_; }
48  bool isOneLooseInTime() const { return isOneLooseInTime_; }
49 
51  const int link() const { return link_; };
53  const int processor() const { return processor_; };
55  const tftype trackFinderType() const { return trackFinder_; };
56 
57  bool operator==(const l1t::RegionalMuonShower& rhs) const;
58  inline bool operator!=(const l1t::RegionalMuonShower& rhs) const { return !(operator==(rhs)); };
59 
60  private:
61  // Run-3 definitions as provided in DN-20-033
62  // in time and out-of-time qualities. only 2 bits each.
70  int link_;
73  };
74 
75 } // namespace l1t
76 
77 #endif
void setOneTightInTime(const bool bit)
const tftype trackFinderType() const
Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg) ...
ObjectRefPair< RegionalMuonShower > RegionalMuonShowerRefPair
void setOneTightOutOfTime(const bool bit)
void setOneLooseInTime(const bool bit)
void setTwoLooseInTime(const bool bit)
delete x;
Definition: CaloConfig.h:22
const int processor() const
Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF) ...
std::pair< edm::Ref< BXVector< T > >, edm::Ref< BXVector< T > >> ObjectRefPair
bool operator==(const l1t::RegionalMuonShower &rhs) const
BXVector< RegionalMuonShower > RegionalMuonShowerBxCollection
void setOneNominalInTime(const bool bit)
const int link() const
Get link on which the MicroGMT receives the candidate.
ObjectRefBxCollection< RegionalMuonShower > RegionalMuonShowerRefBxCollection
bool isOneNominalOutOfTime() const
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
RegionalMuonShower(bool oneNominalInTime=false, bool oneNominalOutOfTime=false, bool twoLooseInTime=false, bool twoLooseOutOfTime=false, bool oneLooseInTime=false, bool oneTightInTime=false, bool oneTightOutOfTime=false)
void setTwoLooseOutOfTime(const bool bit)
void setOneNominalOutOfTime(const bool bit)
bool operator!=(const l1t::RegionalMuonShower &rhs) const
ObjectRefPairBxCollection< RegionalMuonShower > RegionalMuonShowerRefPairBxCollection