CMS 3D CMS Logo

MuonTemplate.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_MuonTemplate_h
2 #define L1Trigger_L1TGlobal_MuonTemplate_h
3 
21 // system include files
22 #include <string>
23 #include <iosfwd>
24 
25 // user include files
26 
27 // base class
29 
30 // forward declarations
31 
32 // class declaration
33 class MuonTemplate : public GlobalCondition {
34 public:
35  // constructor
36  MuonTemplate();
37 
38  // constructor
39  MuonTemplate(const std::string&);
40 
41  // constructor
43 
44  // copy constructor
45  MuonTemplate(const MuonTemplate&);
46 
47  // destructor
48  ~MuonTemplate() override;
49 
50  // assign operator
52 
53 public:
54  // typedef for a single object template
55  struct ObjectParameter {
56  unsigned int unconstrainedPtHigh;
57  unsigned int unconstrainedPtLow;
58  unsigned int impactParameterHigh;
59  unsigned int impactParameterLow;
60  unsigned int ptHighThreshold;
61  unsigned int ptLowThreshold;
62  unsigned int indexHigh;
63  unsigned int indexLow;
64  bool enableMip;
65  bool enableIso;
66  bool requestIso;
67  unsigned int qualityLUT;
68  unsigned int isolationLUT;
69  unsigned int impactParameterLUT;
70  unsigned long long etaRange;
71  unsigned int phiHigh;
72  unsigned int phiLow;
73 
74  int charge;
75 
76  unsigned int etaWindow1Lower;
77  unsigned int etaWindow1Upper;
78  unsigned int etaWindow2Lower;
79  unsigned int etaWindow2Upper;
80 
81  unsigned int phiWindow1Lower;
82  unsigned int phiWindow1Upper;
83  unsigned int phiWindow2Lower;
84  unsigned int phiWindow2Upper;
85  };
86 
87  // typedef for correlation parameters
88  // chargeCorrelation is defined always
89  // see documentation for meaning
91  unsigned int chargeCorrelation;
92  //unsigned long long deltaEtaRange;
93 
94  unsigned long long deltaPhiRange0Word;
95  unsigned long long deltaPhiRange1Word;
96  //unsigned int deltaPhiMaxbits;
97 
98  unsigned long long deltaEtaRange;
99 
100  unsigned long long deltaPhiRange;
101  unsigned int deltaPhiMaxbits;
102 
103  unsigned int deltaEtaRangeLower;
104  unsigned int deltaEtaRangeUpper;
105 
106  unsigned int deltaPhiRangeLower;
107  unsigned int deltaPhiRangeUpper;
108  };
109 
110 public:
111  inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
112 
114 
116  void setConditionParameter(const std::vector<ObjectParameter>& objParameter,
117  const CorrelationParameter& corrParameter);
118 
120  void print(std::ostream& myCout) const override;
121 
123  friend std::ostream& operator<<(std::ostream&, const MuonTemplate&);
124 
125 private:
127  void copy(const MuonTemplate& cp);
128 
129 private:
131  std::vector<ObjectParameter> m_objectParameter;
133 };
134 
135 #endif
MuonTemplate::ObjectParameter::phiWindow1Upper
unsigned int phiWindow1Upper
Definition: MuonTemplate.h:82
MuonTemplate::ObjectParameter::qualityLUT
unsigned int qualityLUT
Definition: MuonTemplate.h:67
MuonTemplate::ObjectParameter::phiWindow1Lower
unsigned int phiWindow1Lower
Definition: MuonTemplate.h:81
MuonTemplate::~MuonTemplate
~MuonTemplate() override
Definition: MuonTemplate.cc:54
MuonTemplate::ObjectParameter::impactParameterLUT
unsigned int impactParameterLUT
Definition: MuonTemplate.h:69
MuonTemplate::setConditionParameter
void setConditionParameter(const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter)
set functions
Definition: MuonTemplate.cc:65
MuonTemplate::m_objectParameter
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
Definition: MuonTemplate.h:131
MuonTemplate::ObjectParameter::indexLow
unsigned int indexLow
Definition: MuonTemplate.h:63
MuonTemplate::ObjectParameter::phiHigh
unsigned int phiHigh
Definition: MuonTemplate.h:71
MuonTemplate::operator<<
friend std::ostream & operator<<(std::ostream &, const MuonTemplate &)
output stream operator
Definition: MuonTemplate.cc:154
MuonTemplate::m_correlationParameter
CorrelationParameter m_correlationParameter
Definition: MuonTemplate.h:132
MuonTemplate::CorrelationParameter::deltaPhiRange
unsigned long long deltaPhiRange
Definition: MuonTemplate.h:100
MuonTemplate::copy
void copy(const MuonTemplate &cp)
copy function for copy constructor and operator=
Definition: MuonTemplate.cc:140
MuonTemplate::correlationParameter
const CorrelationParameter * correlationParameter() const
Definition: MuonTemplate.h:113
MuonTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: MuonTemplate.cc:71
hgcal_conditions::parameters
Definition: HGCConditions.h:86
GlobalCondition.h
MuonTemplate::ObjectParameter::isolationLUT
unsigned int isolationLUT
Definition: MuonTemplate.h:68
MuonTemplate::ObjectParameter::enableIso
bool enableIso
Definition: MuonTemplate.h:65
MuonTemplate::ObjectParameter::etaWindow1Lower
unsigned int etaWindow1Lower
Definition: MuonTemplate.h:76
MuonTemplate::MuonTemplate
MuonTemplate()
Definition: MuonTemplate.cc:34
MuonTemplate::CorrelationParameter::deltaPhiRangeUpper
unsigned int deltaPhiRangeUpper
Definition: MuonTemplate.h:107
MuonTemplate::CorrelationParameter::deltaPhiRange0Word
unsigned long long deltaPhiRange0Word
Definition: MuonTemplate.h:94
MuonTemplate::ObjectParameter::phiLow
unsigned int phiLow
Definition: MuonTemplate.h:72
MuonTemplate::ObjectParameter::etaWindow1Upper
unsigned int etaWindow1Upper
Definition: MuonTemplate.h:77
l1t::GtConditionType
GtConditionType
Definition: GlobalDefinitions.h:49
MuonTemplate::ObjectParameter::unconstrainedPtHigh
unsigned int unconstrainedPtHigh
Definition: MuonTemplate.h:56
MuonTemplate::CorrelationParameter::deltaPhiMaxbits
unsigned int deltaPhiMaxbits
Definition: MuonTemplate.h:101
MuonTemplate
Definition: MuonTemplate.h:33
MuonTemplate::CorrelationParameter::deltaEtaRange
unsigned long long deltaEtaRange
Definition: MuonTemplate.h:98
MuonTemplate::ObjectParameter::ptHighThreshold
unsigned int ptHighThreshold
Definition: MuonTemplate.h:60
MuonTemplate::CorrelationParameter::deltaEtaRangeUpper
unsigned int deltaEtaRangeUpper
Definition: MuonTemplate.h:104
MuonTemplate::ObjectParameter::unconstrainedPtLow
unsigned int unconstrainedPtLow
Definition: MuonTemplate.h:57
MuonTemplate::CorrelationParameter::deltaEtaRangeLower
unsigned int deltaEtaRangeLower
Definition: MuonTemplate.h:103
MuonTemplate::objectParameter
const std::vector< ObjectParameter > * objectParameter() const
Definition: MuonTemplate.h:111
MuonTemplate::CorrelationParameter::chargeCorrelation
unsigned int chargeCorrelation
Definition: MuonTemplate.h:91
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonTemplate::ObjectParameter::charge
int charge
Definition: MuonTemplate.h:74
MuonTemplate::ObjectParameter::impactParameterLow
unsigned int impactParameterLow
Definition: MuonTemplate.h:59
MuonTemplate::ObjectParameter::ptLowThreshold
unsigned int ptLowThreshold
Definition: MuonTemplate.h:61
MuonTemplate::ObjectParameter::phiWindow2Upper
unsigned int phiWindow2Upper
Definition: MuonTemplate.h:84
MuonTemplate::operator=
MuonTemplate & operator=(const MuonTemplate &)
Definition: MuonTemplate.cc:59
MuonTemplate::ObjectParameter::etaRange
unsigned long long etaRange
Definition: MuonTemplate.h:70
MuonTemplate::ObjectParameter::impactParameterHigh
unsigned int impactParameterHigh
Definition: MuonTemplate.h:58
MuonTemplate::CorrelationParameter::deltaPhiRange1Word
unsigned long long deltaPhiRange1Word
Definition: MuonTemplate.h:95
MuonTemplate::ObjectParameter::phiWindow2Lower
unsigned int phiWindow2Lower
Definition: MuonTemplate.h:83
MuonTemplate::ObjectParameter
Definition: MuonTemplate.h:55
MuonTemplate::ObjectParameter::enableMip
bool enableMip
Definition: MuonTemplate.h:64
MuonTemplate::ObjectParameter::etaWindow2Lower
unsigned int etaWindow2Lower
Definition: MuonTemplate.h:78
MuonTemplate::ObjectParameter::requestIso
bool requestIso
Definition: MuonTemplate.h:66
MuonTemplate::CorrelationParameter
Definition: MuonTemplate.h:90
GlobalCondition
Definition: GlobalCondition.h:34
MuonTemplate::ObjectParameter::indexHigh
unsigned int indexHigh
Definition: MuonTemplate.h:62
MuonTemplate::ObjectParameter::etaWindow2Upper
unsigned int etaWindow2Upper
Definition: MuonTemplate.h:79
MuonTemplate::CorrelationParameter::deltaPhiRangeLower
unsigned int deltaPhiRangeLower
Definition: MuonTemplate.h:106