CMS 3D CMS Logo

EnergySumTemplate.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_EnergySumTemplate_h
2 #define L1Trigger_L1TGlobal_EnergySumTemplate_h
3 
20 // system include files
21 #include <string>
22 #include <iosfwd>
23 
24 // user include files
25 
26 // base class
28 
29 // forward declarations
30 
31 // class declaration
33 public:
34  // constructor
36 
37  // constructor
39 
40  // constructor
42 
43  // copy constructor
45 
46  // destructor
47  ~EnergySumTemplate() override;
48 
49  // assign operator
51 
52 public:
54  struct ObjectParameter {
55  unsigned int etLowThreshold;
56  unsigned int etHighThreshold;
58 
59  unsigned int phiWindow1Lower;
60  unsigned int phiWindow1Upper;
61  unsigned int phiWindow2Lower;
62  unsigned int phiWindow2Upper;
63 
64  // two words used only for ETM (ETM phi has 72 bins - two 64-bits words)
65  // one word used for HTM
66  unsigned long long phiRange0Word;
67  unsigned long long phiRange1Word;
68  };
69 
70 public:
71  inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
72 
74  void setConditionParameter(const std::vector<ObjectParameter>&);
75 
77  void print(std::ostream& myCout) const override;
78 
80  friend std::ostream& operator<<(std::ostream&, const EnergySumTemplate&);
81 
82 private:
84  void copy(const EnergySumTemplate& cp);
85 
86 private:
88  std::vector<ObjectParameter> m_objectParameter;
89 };
90 
91 #endif
EnergySumTemplate & operator=(const EnergySumTemplate &)
void copy(const EnergySumTemplate &cp)
copy function for copy constructor and operator=
friend std::ostream & operator<<(std::ostream &, const EnergySumTemplate &)
output stream operator
typedef for a single object template
const std::vector< ObjectParameter > * objectParameter() const
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
void print(std::ostream &myCout) const override
print the condition
~EnergySumTemplate() override
void setConditionParameter(const std::vector< ObjectParameter > &)
set functions