CMS 3D CMS Logo

MuonShowerCondition.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_MuonShowerCondition_h
2 #define L1Trigger_L1TGlobal_MuonShowerCondition_h
3 
10 // system include files
11 #include <iosfwd>
12 #include <string>
13 
14 // user include files
15 // base classes
17 
19 
20 // forward declarations
21 class GlobalCondition;
22 class MuonShowerTemplate;
23 
24 namespace l1t {
25 
26  class GlobalBoard;
27 
28  // class declaration
30  public:
34 
36  MuonShowerCondition(const GlobalCondition*, const GlobalBoard*, const int nrL1MuShower);
37 
38  // copy constructor
40 
41  // destructor
42  ~MuonShowerCondition() override;
43 
44  // assign operator
46 
48  const bool evaluateCondition(const int bxEval) const override;
49 
51  void print(std::ostream& myCout) const override;
52 
55 
57 
59  inline const GlobalBoard* gtGTL() const { return m_gtGTL; }
60 
61  void setGtGTL(const GlobalBoard*);
62 
63  private:
65  void copy(const MuonShowerCondition& cp);
66 
68  const l1t::MuonShower* getCandidate(const int bx, const int indexCand) const;
69 
71  const bool checkObjectParameter(const int iCondition, const l1t::MuonShower& cand, const unsigned int index) const;
72 
75 
78  };
79 
80 } // namespace l1t
81 #endif
const GlobalBoard * gtGTL() const
get / set the pointer to GTL
const bool checkObjectParameter(const int iCondition, const l1t::MuonShower &cand, const unsigned int index) const
function to check a single object if it matches a condition
void copy(const MuonShowerCondition &cp)
copy function for copy constructor and operator=
delete x;
Definition: CaloConfig.h:22
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
void setGtMuonShowerTemplate(const MuonShowerTemplate *)
MuonShowerCondition & operator=(const MuonShowerCondition &)
const MuonShowerTemplate * m_gtMuonShowerTemplate
pointer to a MuonShowerTemplate
void print(std::ostream &myCout) const override
print condition
const MuonShowerTemplate * gtMuonShowerTemplate() const
get / set the pointer to a Condition
const GlobalBoard * m_gtGTL
pointer to GTL, to be able to get the trigger objects
void setGtGTL(const GlobalBoard *)
set the pointer to GTL
const l1t::MuonShower * getCandidate(const int bx, const int indexCand) const
load muon candidates