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 ptHighThreshold;
57  unsigned int ptLowThreshold;
58  unsigned int indexHigh;
59  unsigned int indexLow;
60  bool enableMip;
61  bool enableIso;
62  bool requestIso;
63  unsigned int qualityLUT;
64  unsigned int isolationLUT;
65  unsigned long long etaRange;
66  unsigned int phiHigh;
67  unsigned int phiLow;
68 
69  int charge;
70 
71  unsigned int etaWindow1Lower;
72  unsigned int etaWindow1Upper;
73  unsigned int etaWindow2Lower;
74  unsigned int etaWindow2Upper;
75 
76  unsigned int phiWindow1Lower;
77  unsigned int phiWindow1Upper;
78  unsigned int phiWindow2Lower;
79  unsigned int phiWindow2Upper;
80  };
81 
82  // typedef for correlation parameters
83  // chargeCorrelation is defined always
84  // see documentation for meaning
86  unsigned int chargeCorrelation;
87  //unsigned long long deltaEtaRange;
88 
89  unsigned long long deltaPhiRange0Word;
90  unsigned long long deltaPhiRange1Word;
91  //unsigned int deltaPhiMaxbits;
92 
93  unsigned long long deltaEtaRange;
94 
95  unsigned long long deltaPhiRange;
96  unsigned int deltaPhiMaxbits;
97 
98  unsigned int deltaEtaRangeLower;
99  unsigned int deltaEtaRangeUpper;
100 
101  unsigned int deltaPhiRangeLower;
102  unsigned int deltaPhiRangeUpper;
103  };
104 
105 public:
106  inline const std::vector<ObjectParameter>* objectParameter() const { return &m_objectParameter; }
107 
109 
111  void setConditionParameter(const std::vector<ObjectParameter>& objParameter,
112  const CorrelationParameter& corrParameter);
113 
115  void print(std::ostream& myCout) const override;
116 
118  friend std::ostream& operator<<(std::ostream&, const MuonTemplate&);
119 
120 private:
122  void copy(const MuonTemplate& cp);
123 
124 private:
126  std::vector<ObjectParameter> m_objectParameter;
128 };
129 
130 #endif
MuonTemplate::ObjectParameter::phiWindow1Upper
unsigned int phiWindow1Upper
Definition: MuonTemplate.h:77
MuonTemplate::ObjectParameter::qualityLUT
unsigned int qualityLUT
Definition: MuonTemplate.h:63
MuonTemplate::ObjectParameter::phiWindow1Lower
unsigned int phiWindow1Lower
Definition: MuonTemplate.h:76
MuonTemplate::~MuonTemplate
~MuonTemplate() override
Definition: MuonTemplate.cc:53
MuonTemplate::setConditionParameter
void setConditionParameter(const std::vector< ObjectParameter > &objParameter, const CorrelationParameter &corrParameter)
set functions
Definition: MuonTemplate.cc:64
MuonTemplate::m_objectParameter
std::vector< ObjectParameter > m_objectParameter
variables containing the parameters
Definition: MuonTemplate.h:126
MuonTemplate::ObjectParameter::indexLow
unsigned int indexLow
Definition: MuonTemplate.h:59
MuonTemplate::ObjectParameter::phiHigh
unsigned int phiHigh
Definition: MuonTemplate.h:66
MuonTemplate::operator<<
friend std::ostream & operator<<(std::ostream &, const MuonTemplate &)
output stream operator
Definition: MuonTemplate.cc:150
MuonTemplate::m_correlationParameter
CorrelationParameter m_correlationParameter
Definition: MuonTemplate.h:127
MuonTemplate::CorrelationParameter::deltaPhiRange
unsigned long long deltaPhiRange
Definition: MuonTemplate.h:95
MuonTemplate::copy
void copy(const MuonTemplate &cp)
copy function for copy constructor and operator=
Definition: MuonTemplate.cc:136
MuonTemplate::correlationParameter
const CorrelationParameter * correlationParameter() const
Definition: MuonTemplate.h:108
MuonTemplate::print
void print(std::ostream &myCout) const override
print the condition
Definition: MuonTemplate.cc:70
GlobalCondition.h
MuonTemplate::ObjectParameter::isolationLUT
unsigned int isolationLUT
Definition: MuonTemplate.h:64
MuonTemplate::ObjectParameter::enableIso
bool enableIso
Definition: MuonTemplate.h:61
MuonTemplate::ObjectParameter::etaWindow1Lower
unsigned int etaWindow1Lower
Definition: MuonTemplate.h:71
MuonTemplate::MuonTemplate
MuonTemplate()
Definition: MuonTemplate.cc:33
MuonTemplate::CorrelationParameter::deltaPhiRangeUpper
unsigned int deltaPhiRangeUpper
Definition: MuonTemplate.h:102
MuonTemplate::CorrelationParameter::deltaPhiRange0Word
unsigned long long deltaPhiRange0Word
Definition: MuonTemplate.h:89
MuonTemplate::ObjectParameter::phiLow
unsigned int phiLow
Definition: MuonTemplate.h:67
MuonTemplate::ObjectParameter::etaWindow1Upper
unsigned int etaWindow1Upper
Definition: MuonTemplate.h:72
l1t::GtConditionType
GtConditionType
Definition: GlobalDefinitions.h:48
MuonTemplate::CorrelationParameter::deltaPhiMaxbits
unsigned int deltaPhiMaxbits
Definition: MuonTemplate.h:96
MuonTemplate
Definition: MuonTemplate.h:33
MuonTemplate::CorrelationParameter::deltaEtaRange
unsigned long long deltaEtaRange
Definition: MuonTemplate.h:93
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonTemplate::ObjectParameter::ptHighThreshold
unsigned int ptHighThreshold
Definition: MuonTemplate.h:56
MuonTemplate::CorrelationParameter::deltaEtaRangeUpper
unsigned int deltaEtaRangeUpper
Definition: MuonTemplate.h:99
MuonTemplate::CorrelationParameter::deltaEtaRangeLower
unsigned int deltaEtaRangeLower
Definition: MuonTemplate.h:98
MuonTemplate::objectParameter
const std::vector< ObjectParameter > * objectParameter() const
Definition: MuonTemplate.h:106
MuonTemplate::CorrelationParameter::chargeCorrelation
unsigned int chargeCorrelation
Definition: MuonTemplate.h:86
MuonTemplate::ObjectParameter::charge
int charge
Definition: MuonTemplate.h:69
MuonTemplate::ObjectParameter::ptLowThreshold
unsigned int ptLowThreshold
Definition: MuonTemplate.h:57
MuonTemplate::ObjectParameter::phiWindow2Upper
unsigned int phiWindow2Upper
Definition: MuonTemplate.h:79
MuonTemplate::operator=
MuonTemplate & operator=(const MuonTemplate &)
Definition: MuonTemplate.cc:58
MuonTemplate::ObjectParameter::etaRange
unsigned long long etaRange
Definition: MuonTemplate.h:65
MuonTemplate::CorrelationParameter::deltaPhiRange1Word
unsigned long long deltaPhiRange1Word
Definition: MuonTemplate.h:90
MuonTemplate::ObjectParameter::phiWindow2Lower
unsigned int phiWindow2Lower
Definition: MuonTemplate.h:78
MuonTemplate::ObjectParameter
Definition: MuonTemplate.h:55
MuonTemplate::ObjectParameter::enableMip
bool enableMip
Definition: MuonTemplate.h:60
MuonTemplate::ObjectParameter::etaWindow2Lower
unsigned int etaWindow2Lower
Definition: MuonTemplate.h:73
MuonTemplate::ObjectParameter::requestIso
bool requestIso
Definition: MuonTemplate.h:62
MuonTemplate::CorrelationParameter
Definition: MuonTemplate.h:85
GlobalCondition
Definition: GlobalCondition.h:33
MuonTemplate::ObjectParameter::indexHigh
unsigned int indexHigh
Definition: MuonTemplate.h:58
CommonMethods.cp
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)
Definition: CommonMethods.py:192
MuonTemplate::ObjectParameter::etaWindow2Upper
unsigned int etaWindow2Upper
Definition: MuonTemplate.h:74
MuonTemplate::CorrelationParameter::deltaPhiRangeLower
unsigned int deltaPhiRangeLower
Definition: MuonTemplate.h:101