CMS 3D CMS Logo

L1GtEnergySumTemplate.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1GtEnergySumTemplate_h
2 #define CondFormats_L1TObjects_L1GtEnergySumTemplate_h
3 
20 // system include files
22 
23 #include <string>
24 #include <iosfwd>
25 
26 // user include files
27 
28 // base class
30 
31 // forward declarations
32 
33 // class declaration
35 public:
36  // constructor
38 
39  // constructor
41 
42  // constructor
44 
45  // copy constructor
47 
48  // destructor
49  ~L1GtEnergySumTemplate() override;
50 
51  // assign operator
53 
54 public:
56  struct ObjectParameter {
57  unsigned int etThreshold;
59 
60  // two words used only for ETM (ETM phi has 72 bins - two 64-bits words)
61  // one word used for HTM
62  unsigned long long phiRange0Word;
63  unsigned long long phiRange1Word;
64 
65  // make sure all objects (esp. the bool) are properly initialised to avoid problems with serialisation:
67 
69  };
70 
71 public:
72  inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
73 
75  void setConditionParameter(const std::vector<ObjectParameter>&);
76 
78  void print(std::ostream& myCout) const override;
79 
81  friend std::ostream& operator<<(std::ostream&, const L1GtEnergySumTemplate&);
82 
83 private:
85  void copy(const L1GtEnergySumTemplate& cp);
86 
87 private:
89  std::vector<ObjectParameter> m_objectParameter;
90 
92 };
93 
94 #endif
void print(std::ostream &myCout) const override
print the condition
L1GtConditionType
friend std::ostream & operator<<(std::ostream &, const L1GtEnergySumTemplate &)
output stream operator
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
void copy(const L1GtEnergySumTemplate &cp)
copy function for copy constructor and operator=
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1GtEnergySumTemplate & operator=(const L1GtEnergySumTemplate &)
const std::vector< ObjectParameter > * objectParameter() const
void setConditionParameter(const std::vector< ObjectParameter > &)
set functions
typedef for a single object template