CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  ;
68  };
69 
71  };
72 
73 public:
74  inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
75 
77  void setConditionParameter(const std::vector<ObjectParameter>&);
78 
80  void print(std::ostream& myCout) const override;
81 
83  friend std::ostream& operator<<(std::ostream&, const L1GtEnergySumTemplate&);
84 
85 private:
87  void copy(const L1GtEnergySumTemplate& cp);
88 
89 private:
91  std::vector<ObjectParameter> m_objectParameter;
92 
94 };
95 
96 #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
const std::vector< ObjectParameter > * objectParameter() const
void copy(const L1GtEnergySumTemplate &cp)
copy function for copy constructor and operator=
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1GtEnergySumTemplate & operator=(const L1GtEnergySumTemplate &)
void setConditionParameter(const std::vector< ObjectParameter > &)
set functions
typedef for a single object template