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  ;
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
L1GtCondition
Definition: L1GtCondition.h:35
L1GtEnergySumTemplate::operator<<
friend std::ostream & operator<<(std::ostream &, const L1GtEnergySumTemplate &)
output stream operator
Definition: L1GtEnergySumTemplate.cc:112
funct::false
false
Definition: Factorize.h:34
L1GtEnergySumTemplate
Definition: L1GtEnergySumTemplate.h:34
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1GtEnergySumTemplate::ObjectParameter::ObjectParameter
ObjectParameter()
Definition: L1GtEnergySumTemplate.h:66
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:91
L1GtEnergySumTemplate::setConditionParameter
void setConditionParameter(const std::vector< ObjectParameter > &)
set functions
Definition: L1GtEnergySumTemplate.cc:71
L1GtEnergySumTemplate::L1GtEnergySumTemplate
L1GtEnergySumTemplate()
Definition: L1GtEnergySumTemplate.cc:35
L1GtEnergySumTemplate::ObjectParameter::energyOverflow
bool energyOverflow
Definition: L1GtEnergySumTemplate.h:58
L1GtEnergySumTemplate::ObjectParameter::phiRange0Word
unsigned long long phiRange0Word
Definition: L1GtEnergySumTemplate.h:62
L1GtEnergySumTemplate::m_objectParameter
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
Definition: L1GtEnergySumTemplate.h:91
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtEnergySumTemplate::ObjectParameter
typedef for a single object template
Definition: L1GtEnergySumTemplate.h:56
L1GtCondition.h
L1GtEnergySumTemplate::operator=
L1GtEnergySumTemplate & operator=(const L1GtEnergySumTemplate &)
Definition: L1GtEnergySumTemplate.cc:65
L1GtEnergySumTemplate::ObjectParameter::phiRange1Word
unsigned long long phiRange1Word
Definition: L1GtEnergySumTemplate.h:63
Serializable.h
L1GtEnergySumTemplate::copy
void copy(const L1GtEnergySumTemplate &cp)
copy function for copy constructor and operator=
Definition: L1GtEnergySumTemplate.cc:100
L1GtEnergySumTemplate::~L1GtEnergySumTemplate
~L1GtEnergySumTemplate() override
Definition: L1GtEnergySumTemplate.cc:60
L1GtEnergySumTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: L1GtEnergySumTemplate.cc:75
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
L1GtEnergySumTemplate::objectParameter
const std::vector< ObjectParameter > * objectParameter() const
Definition: L1GtEnergySumTemplate.h:74
L1GtEnergySumTemplate::ObjectParameter::etThreshold
unsigned int etThreshold
Definition: L1GtEnergySumTemplate.h:57