CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloTemplate.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_CaloTemplate_h
2 #define L1Trigger_L1TGlobal_CaloTemplate_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
32 class CaloTemplate : public GtCondition
33 {
34 
35 public:
36 
37  // constructor
38  CaloTemplate();
39 
40  // constructor
41  CaloTemplate(const std::string& );
42 
43  // constructor
45 
46  // copy constructor
47  CaloTemplate( const CaloTemplate& );
48 
49  // destructor
50  virtual ~CaloTemplate();
51 
52  // assign operator
54 
55 public:
56 
59  {
60  unsigned int etThreshold;
61  unsigned int etaRange;
62  unsigned int phiRange;
63 
64  unsigned int etaWindowLower;
65  unsigned int etaWindowUpper;
66  unsigned int etaWindowVetoLower;
67  unsigned int etaWindowVetoUpper;
68 
69  unsigned int phiWindowLower;
70  unsigned int phiWindowUpper;
71  unsigned int phiWindowVetoLower;
72  unsigned int phiWindowVetoUpper;
73 
74  };
75 
78  {
79  unsigned long long deltaEtaRange;
80 
81  unsigned long long deltaPhiRange;
82  unsigned int deltaPhiMaxbits;
83 
84  unsigned int deltaEtaRangeLower;
85  unsigned int deltaEtaRangeUpper;
86 
87  unsigned int deltaPhiRangeLower;
88  unsigned int deltaPhiRangeUpper;
89 
90  };
91 
92 
93 public:
94 
95  inline const std::vector<ObjectParameter>* objectParameter() const
96  {
97  return &m_objectParameter;
98  }
99 
101  {
102  return &m_correlationParameter;
103  }
104 
105 
107  void setConditionParameter(const std::vector<ObjectParameter>& objParameter,
108  const CorrelationParameter& corrParameter);
109 
110 
112  virtual void print(std::ostream& myCout) const;
113 
115  friend std::ostream& operator<<(std::ostream&, const CaloTemplate&);
116 
117 protected:
118 
120  void copy( const CaloTemplate& cp);
121 
122 
123 protected:
124 
126  std::vector<ObjectParameter> m_objectParameter;
128 
129 };
130 
131 #endif
const std::vector< ObjectParameter > * objectParameter() const
Definition: CaloTemplate.h:95
GtConditionType
Definition: GtDefinitions.h:99
CorrelationParameter m_correlationParameter
Definition: CaloTemplate.h:127
unsigned long long deltaEtaRange
Definition: CaloTemplate.h:79
unsigned long long deltaPhiRange
Definition: CaloTemplate.h:81
void copy(const CaloTemplate &cp)
copy function for copy constructor and operator=
typedef for a single object template
Definition: CaloTemplate.h:58
virtual ~CaloTemplate()
Definition: CaloTemplate.cc:73
friend std::ostream & operator<<(std::ostream &, const CaloTemplate &)
output stream operator
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
Definition: CaloTemplate.h:126
CaloTemplate & operator=(const CaloTemplate &)
Definition: CaloTemplate.cc:79
void setConditionParameter(const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter)
set functions
Definition: CaloTemplate.cc:88
typedef for correlation parameters
Definition: CaloTemplate.h:77
virtual void print(std::ostream &myCout) const
print the condition
Definition: CaloTemplate.cc:98
const CorrelationParameter * correlationParameter() const
Definition: CaloTemplate.h:100