CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void copy(const MuonShowerCondition &cp)
copy function for copy constructor and operator=
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
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 setGtMuonShowerTemplate(const MuonShowerTemplate *)
MuonShowerCondition & operator=(const MuonShowerCondition &)
const MuonShowerTemplate * gtMuonShowerTemplate() const
get / set the pointer to a Condition
const l1t::MuonShower * getCandidate(const int bx, const int indexCand) const
load muon candidates
const MuonShowerTemplate * m_gtMuonShowerTemplate
pointer to a MuonShowerTemplate
void print(std::ostream &myCout) const override
print 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