CMS 3D CMS Logo

L1GtMuonTemplate.h
Go to the documentation of this file.
1 #ifndef CondFormats_L1TObjects_L1GtMuonTemplate_h
2 #define CondFormats_L1TObjects_L1GtMuonTemplate_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  ~L1GtMuonTemplate() override;
50 
51  // assign operator
53 
54 public:
55  // typedef for a single object template
56  struct ObjectParameter {
57  unsigned int ptHighThreshold;
58  unsigned int ptLowThreshold;
59  bool enableMip;
60  bool enableIso;
61  bool requestIso;
62  unsigned int qualityRange;
63  unsigned long long etaRange;
64  unsigned int phiHigh;
65  unsigned int phiLow;
66 
68  };
69 
70  // typedef for correlation parameters
71  // chargeCorrelation is defined always
72  // see documentation for meaning
74  unsigned int chargeCorrelation;
75  unsigned long long deltaEtaRange;
76 
77  unsigned long long deltaPhiRange0Word;
78  unsigned long long deltaPhiRange1Word;
79  unsigned int deltaPhiMaxbits;
80 
82  };
83 
84 public:
85  inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
86 
88 
90  void setConditionParameter(const std::vector<ObjectParameter>& objParameter,
91  const CorrelationParameter& corrParameter);
92 
94  void print(std::ostream& myCout) const override;
95 
97  friend std::ostream& operator<<(std::ostream&, const L1GtMuonTemplate&);
98 
99 private:
101  void copy(const L1GtMuonTemplate& cp);
102 
103 private:
105  std::vector<ObjectParameter> m_objectParameter;
107 
109 };
110 
111 #endif
L1GtMuonTemplate::operator=
L1GtMuonTemplate & operator=(const L1GtMuonTemplate &)
Definition: L1GtMuonTemplate.cc:60
L1GtCondition
Definition: L1GtCondition.h:35
L1GtMuonTemplate::CorrelationParameter::deltaPhiRange1Word
unsigned long long deltaPhiRange1Word
Definition: L1GtMuonTemplate.h:78
L1GtMuonTemplate::m_correlationParameter
CorrelationParameter m_correlationParameter
Definition: L1GtMuonTemplate.h:106
L1GtMuonTemplate::correlationParameter
const CorrelationParameter * correlationParameter() const
Definition: L1GtMuonTemplate.h:87
L1GtMuonTemplate::ObjectParameter
Definition: L1GtMuonTemplate.h:56
L1GtMuonTemplate::L1GtMuonTemplate
L1GtMuonTemplate()
Definition: L1GtMuonTemplate.cc:35
L1GtMuonTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: L1GtMuonTemplate.cc:72
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
L1GtMuonTemplate::objectParameter
const std::vector< ObjectParameter > * objectParameter() const
Definition: L1GtMuonTemplate.h:85
L1GtMuonTemplate::CorrelationParameter::deltaPhiMaxbits
unsigned int deltaPhiMaxbits
Definition: L1GtMuonTemplate.h:79
L1GtMuonTemplate::ObjectParameter::etaRange
unsigned long long etaRange
Definition: L1GtMuonTemplate.h:63
L1GtMuonTemplate::copy
void copy(const L1GtMuonTemplate &cp)
copy function for copy constructor and operator=
Definition: L1GtMuonTemplate.cc:123
L1GtMuonTemplate::CorrelationParameter
Definition: L1GtMuonTemplate.h:73
L1GtMuonTemplate::ObjectParameter::enableIso
bool enableIso
Definition: L1GtMuonTemplate.h:60
L1GtMuonTemplate::ObjectParameter::qualityRange
unsigned int qualityRange
Definition: L1GtMuonTemplate.h:62
L1GtMuonTemplate::ObjectParameter::phiLow
unsigned int phiLow
Definition: L1GtMuonTemplate.h:65
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:4
L1GtCondition.h
L1GtMuonTemplate::ObjectParameter::requestIso
bool requestIso
Definition: L1GtMuonTemplate.h:61
Serializable.h
L1GtMuonTemplate::CorrelationParameter::deltaPhiRange0Word
unsigned long long deltaPhiRange0Word
Definition: L1GtMuonTemplate.h:77
L1GtMuonTemplate::ObjectParameter::ptLowThreshold
unsigned int ptLowThreshold
Definition: L1GtMuonTemplate.h:58
L1GtMuonTemplate::ObjectParameter::phiHigh
unsigned int phiHigh
Definition: L1GtMuonTemplate.h:64
L1GtMuonTemplate::m_objectParameter
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
Definition: L1GtMuonTemplate.h:105
L1GtMuonTemplate::CorrelationParameter::chargeCorrelation
unsigned int chargeCorrelation
Definition: L1GtMuonTemplate.h:74
L1GtMuonTemplate::CorrelationParameter::deltaEtaRange
unsigned long long deltaEtaRange
Definition: L1GtMuonTemplate.h:75
L1GtMuonTemplate::setConditionParameter
void setConditionParameter(const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter)
set functions
Definition: L1GtMuonTemplate.cc:66
L1GtMuonTemplate::~L1GtMuonTemplate
~L1GtMuonTemplate() override
Definition: L1GtMuonTemplate.cc:55
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
L1GtMuonTemplate::ObjectParameter::ptHighThreshold
unsigned int ptHighThreshold
Definition: L1GtMuonTemplate.h:57
L1GtMuonTemplate::operator<<
friend std::ostream & operator<<(std::ostream &, const L1GtMuonTemplate &)
output stream operator
Definition: L1GtMuonTemplate.cc:136
L1GtMuonTemplate::ObjectParameter::enableMip
bool enableMip
Definition: L1GtMuonTemplate.h:59
L1GtMuonTemplate
Definition: L1GtMuonTemplate.h:34