CMS 3D CMS Logo

L1GtTriggerMenuXmlParser.h
Go to the documentation of this file.
1 #ifndef L1GtConfigProducers_L1GtTriggerMenuXmlParser_h
2 #define L1GtConfigProducers_L1GtTriggerMenuXmlParser_h
3 
19 // system include files
20 #include <string>
21 #include <vector>
22 
23 #include <xercesc/sax/HandlerBase.hpp>
24 #include <xercesc/dom/DOM.hpp>
25 #include <xercesc/parsers/XercesDOMParser.hpp>
26 
27 // user include files
28 // base class
30 
33 
44 #include <cstdint>
45 
46 // forward declarations
47 class L1GtCondition;
48 class L1GtAlgorithm;
49 
50 // class declaration
52 public:
56 
58  ~L1GtTriggerMenuXmlParser() override;
59 
60 public:
62  inline const unsigned int gtNumberConditionChips() const { return m_numberConditionChips; }
63 
64  void setGtNumberConditionChips(const unsigned int&);
65 
67  inline const unsigned int gtPinsOnConditionChip() const { return m_pinsOnConditionChip; }
68 
69  void setGtPinsOnConditionChip(const unsigned int&);
70 
73  inline std::vector<int> gtOrderConditionChip() const { return m_orderConditionChip; }
74 
75  void setGtOrderConditionChip(const std::vector<int>&);
76 
78  inline const unsigned int gtNumberPhysTriggers() const { return m_numberPhysTriggers; }
79 
80  void setGtNumberPhysTriggers(const unsigned int&);
81 
83  inline const unsigned int gtNumberTechTriggers() const { return m_numberTechTriggers; }
84 
85  void setGtNumberTechTriggers(const unsigned int&);
86 
88  inline const unsigned int gtNumberL1JetCounts() const { return m_numberL1JetCounts; }
89 
90  void setGtNumberL1JetCounts(const unsigned int&);
91 
92 public:
94  inline const std::vector<ConditionMap>& gtConditionMap() const { return m_conditionMap; }
95 
96  void setGtConditionMap(const std::vector<ConditionMap>&);
97 
99  inline const std::string& gtTriggerMenuInterface() const { return m_triggerMenuInterface; }
100 
102 
103  //
104  inline const std::string& gtTriggerMenuName() const { return m_triggerMenuName; }
105 
106  void setGtTriggerMenuName(const std::string&);
107 
108  //
110 
112 
114  inline const std::string& gtScaleDbKey() const { return m_scaleDbKey; }
115 
116  void setGtScaleDbKey(const std::string&);
117 
119  inline const std::vector<std::vector<L1GtMuonTemplate> >& vecMuonTemplate() const { return m_vecMuonTemplate; }
120  void setVecMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
121 
122  //
123  inline const std::vector<std::vector<L1GtCaloTemplate> >& vecCaloTemplate() const { return m_vecCaloTemplate; }
124 
125  void setVecCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
126 
127  //
128  inline const std::vector<std::vector<L1GtEnergySumTemplate> >& vecEnergySumTemplate() const {
129  return m_vecEnergySumTemplate;
130  }
131 
132  void setVecEnergySumTemplate(const std::vector<std::vector<L1GtEnergySumTemplate> >&);
133 
134  //
135  inline const std::vector<std::vector<L1GtJetCountsTemplate> >& vecJetCountsTemplate() const {
136  return m_vecJetCountsTemplate;
137  }
138 
139  void setVecJetCountsTemplate(const std::vector<std::vector<L1GtJetCountsTemplate> >&);
140 
141  //
142  inline const std::vector<std::vector<L1GtCastorTemplate> >& vecCastorTemplate() const { return m_vecCastorTemplate; }
143 
144  void setVecCastorTemplate(const std::vector<std::vector<L1GtCastorTemplate> >&);
145 
146  //
147  inline const std::vector<std::vector<L1GtHfBitCountsTemplate> >& vecHfBitCountsTemplate() const {
149  }
150 
151  void setVecHfBitCountsTemplate(const std::vector<std::vector<L1GtHfBitCountsTemplate> >&);
152 
153  //
154  inline const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >& vecHfRingEtSumsTemplate() const {
156  }
157 
158  void setVecHfRingEtSumsTemplate(const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >&);
159 
160  //
161  inline const std::vector<std::vector<L1GtBptxTemplate> >& vecBptxTemplate() const { return m_vecBptxTemplate; }
162 
163  void setVecBptxTemplate(const std::vector<std::vector<L1GtBptxTemplate> >&);
164 
165  //
166  inline const std::vector<std::vector<L1GtExternalTemplate> >& vecExternalTemplate() const {
167  return m_vecExternalTemplate;
168  }
169 
170  void setVecExternalTemplate(const std::vector<std::vector<L1GtExternalTemplate> >&);
171 
172  //
173  inline const std::vector<std::vector<L1GtCorrelationTemplate> >& vecCorrelationTemplate() const {
175  }
176 
177  void setVecCorrelationTemplate(const std::vector<std::vector<L1GtCorrelationTemplate> >&);
178 
179  // get / set the vectors containing the conditions for correlation templates
180  //
181  inline const std::vector<std::vector<L1GtMuonTemplate> >& corMuonTemplate() const { return m_corMuonTemplate; }
182 
183  void setCorMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
184 
185  //
186  inline const std::vector<std::vector<L1GtCaloTemplate> >& corCaloTemplate() const { return m_corCaloTemplate; }
187 
188  void setCorCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
189 
190  //
191  inline const std::vector<std::vector<L1GtEnergySumTemplate> >& corEnergySumTemplate() const {
192  return m_corEnergySumTemplate;
193  }
194 
195  void setCorEnergySumTemplate(const std::vector<std::vector<L1GtEnergySumTemplate> >&);
196 
198  inline const AlgorithmMap& gtAlgorithmMap() const { return m_algorithmMap; }
199 
200  void setGtAlgorithmMap(const AlgorithmMap&);
201 
203  inline const AlgorithmMap& gtAlgorithmAliasMap() const { return m_algorithmAliasMap; }
204 
206 
208  inline const AlgorithmMap& gtTechnicalTriggerMap() const { return m_technicalTriggerMap; }
209 
211 
212 public:
214  void parseXmlFile(const std::string& defXmlFile, const std::string& vmeXmlFile);
215 
216 public:
219 
221 
223 
225 
227 
229 
230  //
231 
232  inline const std::string& gtTriggerMenuDate() const { return m_triggerMenuDate; }
233 
234  void setGtTriggerMenuDate(const std::string&);
235 
236  inline const std::string& gtTriggerMenuAuthor() const { return m_triggerMenuAuthor; }
237 
238  void setGtTriggerMenuAuthor(const std::string&);
239 
241 
243 
245 
247 
248 private:
249  // XML methods
250 
252  XERCES_CPP_NAMESPACE::XercesDOMParser* initXML(const std::string& xmlFile);
253 
255  XERCES_CPP_NAMESPACE::DOMNode* findXMLChild(XERCES_CPP_NAMESPACE::DOMNode* startChild,
256  const std::string& tagName,
257  bool beginOnly = false,
258  std::string* rest = nullptr);
259 
261  std::string getXMLAttribute(const XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name);
262 
264  std::string getXMLTextValue(XERCES_CPP_NAMESPACE::DOMNode* node);
265 
267  bool hexString2UInt128(const std::string& hexString, uint64_t& dstL, uint64_t& dstH);
268 
270  bool getXMLHexTextValue128(XERCES_CPP_NAMESPACE::DOMNode* node, uint64_t& dstL, uint64_t& dstH);
271 
273  bool getXMLHexTextValue(XERCES_CPP_NAMESPACE::DOMNode* node, uint64_t& dst);
274 
276  bool countConditionChildMaxBits(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& childName, unsigned int& dst);
277 
279  bool getConditionChildValues(XERCES_CPP_NAMESPACE::DOMNode* node,
280  const std::string& childName,
281  unsigned int num,
282  std::vector<uint64_t>& dst);
283 
285  void cleanupXML(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
286 
287 private:
288  // methods for the VME file
289 
291  bool parseVmeXML(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
292 
293 private:
294  // methods for conditions and algorithms
295 
298  void clearMaps();
299 
302  bool insertConditionIntoMap(L1GtCondition& cond, const int chipNr);
303 
305  bool insertAlgorithmIntoMap(const L1GtAlgorithm& alg);
306 
308  bool insertTechTriggerIntoMap(const L1GtAlgorithm& alg);
309 
313 
315  int getNumFromType(const std::string& type);
316 
318  int getBitFromNode(XERCES_CPP_NAMESPACE::DOMNode* node);
319 
321  int getGEqFlag(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& nodeName);
322 
324  bool getMuonMipIsoBits(XERCES_CPP_NAMESPACE::DOMNode* node,
325  unsigned int num,
326  std::vector<bool>& mipDst,
327  std::vector<bool>& isoEnDst,
328  std::vector<bool>& isoReqDst);
329 
331  bool parseMuon(XERCES_CPP_NAMESPACE::DOMNode* node,
332  const std::string& name,
333  unsigned int chipNr = 0,
334  const bool corrFlag = false);
335 
337  bool parseCalo(XERCES_CPP_NAMESPACE::DOMNode* node,
338  const std::string& name,
339  unsigned int chipNr = 0,
340  const bool corrFlag = false);
341 
343  bool parseEnergySum(XERCES_CPP_NAMESPACE::DOMNode* node,
344  const std::string& name,
345  unsigned int chipNr = 0,
346  const bool corrFlag = false);
347 
349  bool parseJetCounts(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr = 0);
350 
352  bool parseCastor(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr = 0);
353 
355  bool parseHfBitCounts(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr = 0);
356 
358  bool parseHfRingEtSums(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr = 0);
359 
361  bool parseBptx(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr = 0);
362 
364  bool parseExternal(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr = 0);
365 
367  bool parseCorrelation(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr = 0);
368 
370  bool parseId(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
371 
373  bool workCondition(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr);
374 
376  bool parseConditions(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
377 
379  bool workAlgorithm(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name, unsigned int chipNr);
380 
382  bool parseAlgorithms(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
383 
385  bool workTechTrigger(XERCES_CPP_NAMESPACE::DOMNode* node, const std::string& name);
386 
388  bool parseTechTriggers(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
389 
391  bool workXML(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
392 
393 private:
395  XERCES_CPP_NAMESPACE::ErrorHandler* m_xmlErrHandler;
396 
398 
401 
403  unsigned int m_pinsOnConditionChip;
404 
407  std::vector<int> m_orderConditionChip;
408 
410  unsigned int m_numberPhysTriggers;
411 
413  unsigned int m_numberTechTriggers;
414 
416  unsigned int m_numberL1JetCounts;
417 
418 private:
420 
424 
428 
430 
431 private:
433  std::vector<ConditionMap> m_conditionMap;
434 
435 private:
440 
443 
446  std::vector<std::vector<L1GtMuonTemplate> > m_vecMuonTemplate;
447  std::vector<std::vector<L1GtCaloTemplate> > m_vecCaloTemplate;
448  std::vector<std::vector<L1GtEnergySumTemplate> > m_vecEnergySumTemplate;
449  std::vector<std::vector<L1GtJetCountsTemplate> > m_vecJetCountsTemplate;
450  std::vector<std::vector<L1GtCastorTemplate> > m_vecCastorTemplate;
451  std::vector<std::vector<L1GtHfBitCountsTemplate> > m_vecHfBitCountsTemplate;
452  std::vector<std::vector<L1GtHfRingEtSumsTemplate> > m_vecHfRingEtSumsTemplate;
453  std::vector<std::vector<L1GtBptxTemplate> > m_vecBptxTemplate;
454  std::vector<std::vector<L1GtExternalTemplate> > m_vecExternalTemplate;
455 
456  std::vector<std::vector<L1GtCorrelationTemplate> > m_vecCorrelationTemplate;
457  std::vector<std::vector<L1GtMuonTemplate> > m_corMuonTemplate;
458  std::vector<std::vector<L1GtCaloTemplate> > m_corCaloTemplate;
459  std::vector<std::vector<L1GtEnergySumTemplate> > m_corEnergySumTemplate;
460 
463 
466 
469 };
470 
471 #endif /*L1GtConfigProducers_L1GtTriggerMenuXmlParser_h*/
L1GtTriggerMenuXmlParser::getXMLAttribute
std::string getXMLAttribute(const XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name)
get a named attribute for an xml node as string
Definition: L1GtTriggerMenuXmlParser.cc:389
L1GtTriggerMenuXmlParser::setGtAlgorithmMap
void setGtAlgorithmMap(const AlgorithmMap &)
Definition: L1GtTriggerMenuXmlParser.cc:168
L1GtTriggerMenuXmlParser::parseJetCounts
bool parseJetCounts(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a "jet counts" condition
Definition: L1GtTriggerMenuXmlParser.cc:1886
L1GtCondition
Definition: L1GtCondition.h:35
L1GtTriggerMenuXmlParser::gtTriggerMenuName
const std::string & gtTriggerMenuName() const
Definition: L1GtTriggerMenuXmlParser.h:104
L1GtTriggerMenuXmlParser::setCorEnergySumTemplate
void setCorEnergySumTemplate(const std::vector< std::vector< L1GtEnergySumTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:162
L1GtTriggerMenuXmlParser::countConditionChildMaxBits
bool countConditionChildMaxBits(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &childName, unsigned int &dst)
get the number of bits in the max attribute of a condition child
Definition: L1GtTriggerMenuXmlParser.cc:595
L1GtTriggerMenuXmlParser::workCondition
bool workCondition(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr)
choose the parser for a particular condition
Definition: L1GtTriggerMenuXmlParser.cc:2947
L1GtTriggerMenuXmlParser::parseXmlFile
void parseXmlFile(const std::string &defXmlFile, const std::string &vmeXmlFile)
parse def.xml and vme.xml files
Definition: L1GtTriggerMenuXmlParser.cc:179
L1GtTriggerMenuXmlParser::getTypeFromType
L1GtConditionType getTypeFromType(const std::string &type)
Definition: L1GtTriggerMenuXmlParser.cc:1011
L1GtTriggerMenuXmlParser::m_numberPhysTriggers
unsigned int m_numberPhysTriggers
number of physics trigger algorithms
Definition: L1GtTriggerMenuXmlParser.h:410
L1GtTriggerMenuXmlParser::m_orderConditionChip
std::vector< int > m_orderConditionChip
Definition: L1GtTriggerMenuXmlParser.h:407
L1GtTriggerMenuXmlParser::setGtTriggerMenuInterfaceDate
void setGtTriggerMenuInterfaceDate(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:227
L1GtTriggerMenuXmlParser::m_vecMuonTemplate
std::vector< std::vector< L1GtMuonTemplate > > m_vecMuonTemplate
Definition: L1GtTriggerMenuXmlParser.h:446
L1GtTriggerMenuXmlParser::m_numberConditionChips
unsigned int m_numberConditionChips
hardware limits
Definition: L1GtTriggerMenuXmlParser.h:400
L1GtTriggerMenuXmlParser::parseConditions
bool parseConditions(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all conditions
Definition: L1GtTriggerMenuXmlParser.cc:3008
L1GtTriggerMenuXmlParser::setGtTriggerMenuInterface
void setGtTriggerMenuInterface(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:91
L1GtTriggerMenuXmlParser::workTechTrigger
bool workTechTrigger(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name)
parse an algorithm and insert it into algorithm map.
Definition: L1GtTriggerMenuXmlParser.cc:3269
L1GtCaloTemplate.h
L1GtTriggerMenuXmlParser::parseAlgorithms
bool parseAlgorithms(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all algorithms
Definition: L1GtTriggerMenuXmlParser.cc:3193
L1GtTriggerMenuXmlParser::setVecJetCountsTemplate
void setVecJetCountsTemplate(const std::vector< std::vector< L1GtJetCountsTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:118
L1GtTriggerMenuXmlParser::vecBptxTemplate
const std::vector< std::vector< L1GtBptxTemplate > > & vecBptxTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:161
L1GtTriggerMenuXmlParser::corCaloTemplate
const std::vector< std::vector< L1GtCaloTemplate > > & corCaloTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:186
L1GtTriggerMenuXmlParser::gtOrderConditionChip
std::vector< int > gtOrderConditionChip() const
Definition: L1GtTriggerMenuXmlParser.h:73
L1GtTriggerMenuXmlParser
Definition: L1GtTriggerMenuXmlParser.h:51
L1GtTriggerMenuXmlParser::parseCastor
bool parseCastor(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a CASTOR condition
Definition: L1GtTriggerMenuXmlParser.cc:2048
L1GtTriggerMenuXmlParser::setGtTriggerMenuInterfaceDescription
void setGtTriggerMenuInterfaceDescription(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:235
L1GtTriggerMenuXmlParser::getConditionChildValues
bool getConditionChildValues(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &childName, unsigned int num, std::vector< uint64_t > &dst)
get values from a child of a condition
Definition: L1GtTriggerMenuXmlParser.cc:703
L1GtTriggerMenuXmlParser::insertConditionIntoMap
bool insertConditionIntoMap(L1GtCondition &cond, const int chipNr)
Definition: L1GtTriggerMenuXmlParser.cc:850
L1GtTriggerMenuXmlParser::getGEqFlag
int getGEqFlag(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &nodeName)
getGEqFlag - get the "greater or equal flag" from a condition
Definition: L1GtTriggerMenuXmlParser.cc:1111
L1GtTriggerMenuXmlParser::setGtOrderConditionChip
void setGtOrderConditionChip(const std::vector< int > &)
Definition: L1GtTriggerMenuXmlParser.cc:68
L1GtTriggerMenuXmlParser::corMuonTemplate
const std::vector< std::vector< L1GtMuonTemplate > > & corMuonTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:181
L1GtTriggerMenuXmlParser::m_triggerMenuInterfaceDescription
std::string m_triggerMenuInterfaceDescription
Definition: L1GtTriggerMenuXmlParser.h:423
L1GtTriggerMenuXmlParser::setGtNumberConditionChips
void setGtNumberConditionChips(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:57
writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
L1GtTriggerMenuXmlParser::gtPinsOnConditionChip
const unsigned int gtPinsOnConditionChip() const
get / set the number of pins on the GTL condition chips
Definition: L1GtTriggerMenuXmlParser.h:67
L1GtTriggerMenuXmlParser::setVecExternalTemplate
void setVecExternalTemplate(const std::vector< std::vector< L1GtExternalTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:142
L1GtTriggerMenuXmlParser::m_triggerMenuImplementation
std::string m_triggerMenuImplementation
Definition: L1GtTriggerMenuXmlParser.h:439
L1GtTriggerMenuXmlParser::gtAlgorithmMap
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
Definition: L1GtTriggerMenuXmlParser.h:198
L1GtTriggerMenuXmlParser::m_triggerMenuDate
std::string m_triggerMenuDate
Definition: L1GtTriggerMenuXmlParser.h:425
L1GtTriggerMenuXmlParser::setVecCastorTemplate
void setVecCastorTemplate(const std::vector< std::vector< L1GtCastorTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:123
L1GtTriggerMenuXmlParser::m_triggerMenuName
std::string m_triggerMenuName
Definition: L1GtTriggerMenuXmlParser.h:438
L1GtTriggerMenuXmlParser::gtTriggerMenuAuthor
const std::string & gtTriggerMenuAuthor() const
Definition: L1GtTriggerMenuXmlParser.h:236
L1GtTriggerMenuXmlParser::gtTriggerMenuImplementation
const std::string & gtTriggerMenuImplementation() const
Definition: L1GtTriggerMenuXmlParser.h:109
L1GtTriggerMenuXmlParser::cleanupXML
void cleanupXML(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
shutdown the xml utils and deallocate parser and error handler
Definition: L1GtTriggerMenuXmlParser.cc:762
L1GtTriggerMenuXmlParser::m_conditionMap
std::vector< ConditionMap > m_conditionMap
map containing the conditions (per condition chip) - transient
Definition: L1GtTriggerMenuXmlParser.h:433
L1GtTriggerMenuXmlParser::m_triggerMenuDescription
std::string m_triggerMenuDescription
Definition: L1GtTriggerMenuXmlParser.h:427
L1GtTriggerMenuXmlParser::getXMLHexTextValue128
bool getXMLHexTextValue128(XERCES_CPP_NAMESPACE::DOMNode *node, uint64_t &dstL, uint64_t &dstH)
get a hexadecimal value of a xml node containing text with up to 128 bit
Definition: L1GtTriggerMenuXmlParser.cc:533
L1GtTriggerMenuXmlParser::parseVmeXML
bool parseVmeXML(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse the vme xml file
Definition: L1GtTriggerMenuXmlParser.cc:788
L1GtTriggerMenuXmlParser::m_corMuonTemplate
std::vector< std::vector< L1GtMuonTemplate > > m_corMuonTemplate
Definition: L1GtTriggerMenuXmlParser.h:457
L1GtTriggerMenuXmlParser::vecHfRingEtSumsTemplate
const std::vector< std::vector< L1GtHfRingEtSumsTemplate > > & vecHfRingEtSumsTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:154
L1GtTriggerMenuXmlParser::gtAlgorithmAliasMap
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
Definition: L1GtTriggerMenuXmlParser.h:203
L1GtCorrelationTemplate.h
L1GtTriggerMenuXmlParser::getXMLHexTextValue
bool getXMLHexTextValue(XERCES_CPP_NAMESPACE::DOMNode *node, uint64_t &dst)
get a hexadecimal value of a xml node containing text
Definition: L1GtTriggerMenuXmlParser.cc:566
L1GtTriggerMenuXmlParser::parseEnergySum
bool parseEnergySum(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0, const bool corrFlag=false)
parse an "energy sum" condition
Definition: L1GtTriggerMenuXmlParser.cc:1707
L1GtTriggerMenuXmlParser::m_vecEnergySumTemplate
std::vector< std::vector< L1GtEnergySumTemplate > > m_vecEnergySumTemplate
Definition: L1GtTriggerMenuXmlParser.h:448
L1GtTriggerMenuXmlParser::m_vecHfRingEtSumsTemplate
std::vector< std::vector< L1GtHfRingEtSumsTemplate > > m_vecHfRingEtSumsTemplate
Definition: L1GtTriggerMenuXmlParser.h:452
L1GtTriggerMenuXmlParser::parseTechTriggers
bool parseTechTriggers(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all algorithms
Definition: L1GtTriggerMenuXmlParser.cc:3347
L1GtTriggerMenuXmlParser::L1GtTriggerMenuXmlParser
L1GtTriggerMenuXmlParser()
Definition: L1GtTriggerMenuXmlParser.cc:39
L1GtXmlParserTags
Definition: L1GtXmlParserTags.h:26
L1GtTriggerMenuXmlParser::setGtAlgorithmAliasMap
void setGtAlgorithmAliasMap(const AlgorithmMap &)
Definition: L1GtTriggerMenuXmlParser.cc:171
L1GtTriggerMenuXmlParser::gtTriggerMenuInterfaceDescription
const std::string & gtTriggerMenuInterfaceDescription() const
Definition: L1GtTriggerMenuXmlParser.h:226
L1GtTriggerMenuXmlParser::setGtNumberTechTriggers
void setGtNumberTechTriggers(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:78
L1GtTriggerMenuXmlParser::insertTechTriggerIntoMap
bool insertTechTriggerIntoMap(const L1GtAlgorithm &alg)
insert a technical trigger into technical trigger map
Definition: L1GtTriggerMenuXmlParser.cc:957
AlgorithmMap
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
Definition: L1GtTriggerMenuFwd.h:31
L1GtCastorTemplate.h
L1GtJetCountsTemplate.h
L1GtTriggerMenuXmlParser::getMuonMipIsoBits
bool getMuonMipIsoBits(XERCES_CPP_NAMESPACE::DOMNode *node, unsigned int num, std::vector< bool > &mipDst, std::vector< bool > &isoEnDst, std::vector< bool > &isoReqDst)
get MIP and Isolation bits from a muon
Definition: L1GtTriggerMenuXmlParser.cc:1150
L1GtTriggerMenuXmlParser::corEnergySumTemplate
const std::vector< std::vector< L1GtEnergySumTemplate > > & corEnergySumTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:191
L1GtTriggerMenuXmlParser::m_vecJetCountsTemplate
std::vector< std::vector< L1GtJetCountsTemplate > > m_vecJetCountsTemplate
Definition: L1GtTriggerMenuXmlParser.h:449
L1GtXmlParserTags.h
L1GtTriggerMenuXmlParser::setCorCaloTemplate
void setCorCaloTemplate(const std::vector< std::vector< L1GtCaloTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:158
L1GtTriggerMenuXmlParser::gtTriggerMenuDescription
const std::string & gtTriggerMenuDescription() const
Definition: L1GtTriggerMenuXmlParser.h:240
L1GtConditionType
L1GtConditionType
Definition: L1GtDefinitions.h:4
L1GtTriggerMenuXmlParser::initXML
XERCES_CPP_NAMESPACE::XercesDOMParser * initXML(const std::string &xmlFile)
init xml system
Definition: L1GtTriggerMenuXmlParser.cc:258
L1GtTriggerMenuXmlParser::hexString2UInt128
bool hexString2UInt128(const std::string &hexString, uint64_t &dstL, uint64_t &dstH)
convert a hexadecimal string with up to 128 to 2 uint64_t
Definition: L1GtTriggerMenuXmlParser.cc:459
cond
Definition: plugin.cc:23
L1GtTriggerMenuXmlParser::clearMaps
void clearMaps()
Definition: L1GtTriggerMenuXmlParser.cc:834
L1GtTriggerMenuXmlParser::gtNumberPhysTriggers
const unsigned int gtNumberPhysTriggers() const
get / set the number of physics trigger algorithms
Definition: L1GtTriggerMenuXmlParser.h:78
L1GtTriggerMenuXmlParser::getXMLTextValue
std::string getXMLTextValue(XERCES_CPP_NAMESPACE::DOMNode *node)
get the text value of a xml node as string
Definition: L1GtTriggerMenuXmlParser.cc:425
L1GtTriggerMenuXmlParser::m_corCaloTemplate
std::vector< std::vector< L1GtCaloTemplate > > m_corCaloTemplate
Definition: L1GtTriggerMenuXmlParser.h:458
L1GtTriggerMenuXmlParser::setVecEnergySumTemplate
void setVecEnergySumTemplate(const std::vector< std::vector< L1GtEnergySumTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:113
math::cholesky::dst
constexpr void M2 & dst
Definition: choleskyInversion.h:23
L1GtTriggerMenuXmlParser::vecHfBitCountsTemplate
const std::vector< std::vector< L1GtHfBitCountsTemplate > > & vecHfBitCountsTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:147
L1GtTriggerMenuXmlParser::setVecCorrelationTemplate
void setVecCorrelationTemplate(const std::vector< std::vector< L1GtCorrelationTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:147
L1GtTriggerMenuXmlParser::getNumFromType
int getNumFromType(const std::string &type)
get number of particles from condition type
Definition: L1GtTriggerMenuXmlParser.cc:1048
L1GtTriggerMenuXmlParser::m_vecCastorTemplate
std::vector< std::vector< L1GtCastorTemplate > > m_vecCastorTemplate
Definition: L1GtTriggerMenuXmlParser.h:450
L1GtTriggerMenuXmlParser::m_algorithmImplementation
std::string m_algorithmImplementation
Definition: L1GtTriggerMenuXmlParser.h:429
L1GtAlgorithm
Definition: L1GtAlgorithm.h:32
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
L1GtTriggerMenuXmlParser::gtNumberConditionChips
const unsigned int gtNumberConditionChips() const
get / set the number of condition chips in GTL
Definition: L1GtTriggerMenuXmlParser.h:62
L1GtTriggerMenuXmlParser::setGtTriggerMenuInterfaceAuthor
void setGtTriggerMenuInterfaceAuthor(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:231
L1GtTriggerMenuXmlParser::gtScaleDbKey
const std::string & gtScaleDbKey() const
menu associated scale key
Definition: L1GtTriggerMenuXmlParser.h:114
L1GtMuonTemplate.h
L1GtTriggerMenuXmlParser::gtTriggerMenuDate
const std::string & gtTriggerMenuDate() const
Definition: L1GtTriggerMenuXmlParser.h:232
L1GtTriggerMenuXmlParser::m_vecCorrelationTemplate
std::vector< std::vector< L1GtCorrelationTemplate > > m_vecCorrelationTemplate
Definition: L1GtTriggerMenuXmlParser.h:456
L1GtTriggerMenuXmlParser::setGtNumberL1JetCounts
void setGtNumberL1JetCounts(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:83
L1GtTriggerMenuXmlParser::workAlgorithm
bool workAlgorithm(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr)
parse an algorithm and insert it into algorithm map.
Definition: L1GtTriggerMenuXmlParser.cc:3087
L1GtTriggerMenuXmlParser::setGtPinsOnConditionChip
void setGtPinsOnConditionChip(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:62
L1GtTriggerMenuXmlParser::gtTriggerMenuInterfaceDate
const std::string & gtTriggerMenuInterfaceDate() const
get / set the XML parser creation date, author, description for menu interface, menu
Definition: L1GtTriggerMenuXmlParser.h:218
L1GtFwd.h
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
L1GtTriggerMenuXmlParser::m_triggerMenuInterface
std::string m_triggerMenuInterface
menu names
Definition: L1GtTriggerMenuXmlParser.h:437
L1GtTriggerMenuXmlParser::setGtTriggerMenuDate
void setGtTriggerMenuDate(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:239
L1GtTriggerMenuXmlParser::setGtConditionMap
void setGtConditionMap(const std::vector< ConditionMap > &)
Definition: L1GtTriggerMenuXmlParser.cc:88
L1GtTriggerMenuXmlParser::m_corEnergySumTemplate
std::vector< std::vector< L1GtEnergySumTemplate > > m_corEnergySumTemplate
Definition: L1GtTriggerMenuXmlParser.h:459
L1GtTriggerMenuXmlParser::vecEnergySumTemplate
const std::vector< std::vector< L1GtEnergySumTemplate > > & vecEnergySumTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:128
L1GtTriggerMenuXmlParser::setGtTriggerMenuImplementation
void setGtTriggerMenuImplementation(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:97
L1GtTriggerMenuXmlParser::vecMuonTemplate
const std::vector< std::vector< L1GtMuonTemplate > > & vecMuonTemplate() const
get / set the vectors containing the conditions
Definition: L1GtTriggerMenuXmlParser.h:119
L1GtTriggerMenuXmlParser::m_algorithmMap
AlgorithmMap m_algorithmMap
map containing the physics algorithms (by name)
Definition: L1GtTriggerMenuXmlParser.h:462
L1GtTriggerMenuXmlParser::parseExternal
bool parseExternal(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse an External condition
Definition: L1GtTriggerMenuXmlParser.cc:2412
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtTriggerMenuXmlParser::gtNumberL1JetCounts
const unsigned int gtNumberL1JetCounts() const
get / set the number of L1 jet counts received by GT
Definition: L1GtTriggerMenuXmlParser.h:88
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:33
L1GtTriggerMenuXmlParser::vecCaloTemplate
const std::vector< std::vector< L1GtCaloTemplate > > & vecCaloTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:123
L1GtTriggerMenuXmlParser::workXML
bool workXML(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
do all the steps for filling a trigger menu
Definition: L1GtTriggerMenuXmlParser.cc:3396
L1GtTriggerMenuXmlParser::m_vecExternalTemplate
std::vector< std::vector< L1GtExternalTemplate > > m_vecExternalTemplate
Definition: L1GtTriggerMenuXmlParser.h:454
L1GtTriggerMenuXmlParser::setGtTriggerMenuDescription
void setGtTriggerMenuDescription(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:243
L1GtTriggerMenuXmlParser::m_vecBptxTemplate
std::vector< std::vector< L1GtBptxTemplate > > m_vecBptxTemplate
Definition: L1GtTriggerMenuXmlParser.h:453
L1GtTriggerMenuXmlParser::setGtTriggerMenuName
void setGtTriggerMenuName(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:95
L1GtExternalTemplate.h
L1GtTriggerMenuXmlParser::vecJetCountsTemplate
const std::vector< std::vector< L1GtJetCountsTemplate > > & vecJetCountsTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:135
L1GtHfRingEtSumsTemplate.h
L1GtTriggerMenuXmlParser::setGtTriggerMenuAuthor
void setGtTriggerMenuAuthor(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:241
L1GtTriggerMenuXmlParser::parseHfBitCounts
bool parseHfBitCounts(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a HfBitCounts condition
Definition: L1GtTriggerMenuXmlParser.cc:2112
L1GtTriggerMenuXmlParser::m_vecCaloTemplate
std::vector< std::vector< L1GtCaloTemplate > > m_vecCaloTemplate
Definition: L1GtTriggerMenuXmlParser.h:447
L1GtTriggerMenuXmlParser::getBitFromNode
int getBitFromNode(XERCES_CPP_NAMESPACE::DOMNode *node)
get bit from a bit node
Definition: L1GtTriggerMenuXmlParser.cc:1084
mergeAndRegister.rest
rest
Definition: mergeAndRegister.py:120
L1GtTriggerMenuXmlParser::setGtScaleDbKey
void setGtScaleDbKey(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:102
L1GtTriggerMenuXmlParser::insertAlgorithmIntoMap
bool insertAlgorithmIntoMap(const L1GtAlgorithm &alg)
insert an algorithm into algorithm map
Definition: L1GtTriggerMenuXmlParser.cc:871
L1GtBptxTemplate.h
L1GtTriggerMenuXmlParser::m_xmlErrHandler
XERCES_CPP_NAMESPACE::ErrorHandler * m_xmlErrHandler
error handler for xml-parser
Definition: L1GtTriggerMenuXmlParser.h:395
L1GtTriggerMenuXmlParser::vecCastorTemplate
const std::vector< std::vector< L1GtCastorTemplate > > & vecCastorTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:142
L1GtTriggerMenuXmlParser::setGtAlgorithmImplementation
void setGtAlgorithmImplementation(const std::string &)
Definition: L1GtTriggerMenuXmlParser.cc:245
L1GtTriggerMenuXmlParser::m_triggerMenuInterfaceDate
std::string m_triggerMenuInterfaceDate
members for XML parser only (do not appear in CondFormats)
Definition: L1GtTriggerMenuXmlParser.h:421
L1GtTriggerMenuXmlParser::m_technicalTriggerMap
AlgorithmMap m_technicalTriggerMap
map containing the technical triggers
Definition: L1GtTriggerMenuXmlParser.h:468
L1GtEnergySumTemplate.h
L1GtTriggerMenuXmlParser::m_pinsOnConditionChip
unsigned int m_pinsOnConditionChip
number of pins on the GTL condition chips
Definition: L1GtTriggerMenuXmlParser.h:403
L1GtTriggerMenuXmlParser::parseId
bool parseId(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all parse all identification attributes (trigger menu names, scale DB key, etc)
Definition: L1GtTriggerMenuXmlParser.cc:2745
L1GtTriggerMenuXmlParser::m_vecHfBitCountsTemplate
std::vector< std::vector< L1GtHfBitCountsTemplate > > m_vecHfBitCountsTemplate
Definition: L1GtTriggerMenuXmlParser.h:451
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
L1GtTriggerMenuXmlParser::setVecHfBitCountsTemplate
void setVecHfBitCountsTemplate(const std::vector< std::vector< L1GtHfBitCountsTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:128
L1GtTriggerMenuXmlParser::m_triggerMenuAuthor
std::string m_triggerMenuAuthor
Definition: L1GtTriggerMenuXmlParser.h:426
L1GtHfBitCountsTemplate.h
L1GtTriggerMenuXmlParser::setVecHfRingEtSumsTemplate
void setVecHfRingEtSumsTemplate(const std::vector< std::vector< L1GtHfRingEtSumsTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:133
L1GtTriggerMenuXmlParser::findXMLChild
XERCES_CPP_NAMESPACE::DOMNode * findXMLChild(XERCES_CPP_NAMESPACE::DOMNode *startChild, const std::string &tagName, bool beginOnly=false, std::string *rest=nullptr)
find a named child of a xml node
Definition: L1GtTriggerMenuXmlParser.cc:320
L1GtTriggerMenuXmlParser::vecCorrelationTemplate
const std::vector< std::vector< L1GtCorrelationTemplate > > & vecCorrelationTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:173
L1GtTriggerMenuXmlParser::setGtNumberPhysTriggers
void setGtNumberPhysTriggers(const unsigned int &)
Definition: L1GtTriggerMenuXmlParser.cc:73
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
L1GtTriggerMenuXmlParser::setGtTechnicalTriggerMap
void setGtTechnicalTriggerMap(const AlgorithmMap &)
Definition: L1GtTriggerMenuXmlParser.cc:174
L1GtTriggerMenuXmlParser::parseHfRingEtSums
bool parseHfRingEtSums(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a HfRingEtSums condition
Definition: L1GtTriggerMenuXmlParser.cc:2232
L1GtTriggerMenuXmlParser::setCorMuonTemplate
void setCorMuonTemplate(const std::vector< std::vector< L1GtMuonTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:154
L1GtTriggerMenuXmlParser::setVecCaloTemplate
void setVecCaloTemplate(const std::vector< std::vector< L1GtCaloTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:109
L1GtTriggerMenuXmlParser::parseMuon
bool parseMuon(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0, const bool corrFlag=false)
parse a muon condition
Definition: L1GtTriggerMenuXmlParser.cc:1246
L1GtTriggerMenuFwd.h
L1GtTriggerMenuXmlParser::m_triggerMenuInterfaceAuthor
std::string m_triggerMenuInterfaceAuthor
Definition: L1GtTriggerMenuXmlParser.h:422
L1GtTriggerMenuXmlParser::m_numberL1JetCounts
unsigned int m_numberL1JetCounts
jet counts
Definition: L1GtTriggerMenuXmlParser.h:416
L1GtTriggerMenuXmlParser::gtTriggerMenuInterface
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
Definition: L1GtTriggerMenuXmlParser.h:99
L1GtTriggerMenuXmlParser::gtNumberTechTriggers
const unsigned int gtNumberTechTriggers() const
get / set the number of technical triggers
Definition: L1GtTriggerMenuXmlParser.h:83
L1GtTriggerMenuXmlParser::~L1GtTriggerMenuXmlParser
~L1GtTriggerMenuXmlParser() override
destructor
Definition: L1GtTriggerMenuXmlParser.cc:54
L1GtTriggerMenuXmlParser::m_scaleDbKey
std::string m_scaleDbKey
menu associated scale key
Definition: L1GtTriggerMenuXmlParser.h:442
L1GtTriggerMenuXmlParser::m_algorithmAliasMap
AlgorithmMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
Definition: L1GtTriggerMenuXmlParser.h:465
L1GtTriggerMenuXmlParser::vecExternalTemplate
const std::vector< std::vector< L1GtExternalTemplate > > & vecExternalTemplate() const
Definition: L1GtTriggerMenuXmlParser.h:166
L1GtTriggerMenuXmlParser::setVecMuonTemplate
void setVecMuonTemplate(const std::vector< std::vector< L1GtMuonTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:105
L1GtTriggerMenuXmlParser::gtAlgorithmImplementation
const std::string & gtAlgorithmImplementation() const
Definition: L1GtTriggerMenuXmlParser.h:244
L1GtTriggerMenuXmlParser::gtTechnicalTriggerMap
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
Definition: L1GtTriggerMenuXmlParser.h:208
JetPartonCorrections_cff.tagName
tagName
Definition: JetPartonCorrections_cff.py:12
L1GtTriggerMenuXmlParser::parseBptx
bool parseBptx(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a Bptx condition
Definition: L1GtTriggerMenuXmlParser.cc:2352
L1GtTriggerMenuXmlParser::gtTriggerMenuInterfaceAuthor
const std::string & gtTriggerMenuInterfaceAuthor() const
Definition: L1GtTriggerMenuXmlParser.h:222
L1GtTriggerMenuXmlParser::parseCalo
bool parseCalo(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0, const bool corrFlag=false)
parse a calorimeter condition
Definition: L1GtTriggerMenuXmlParser.cc:1513
L1GtTriggerMenuXmlParser::setVecBptxTemplate
void setVecBptxTemplate(const std::vector< std::vector< L1GtBptxTemplate > > &)
Definition: L1GtTriggerMenuXmlParser.cc:138
L1GtTriggerMenuXmlParser::gtConditionMap
const std::vector< ConditionMap > & gtConditionMap() const
get / set / build the condition maps
Definition: L1GtTriggerMenuXmlParser.h:94
L1GtTriggerMenuXmlParser::m_numberTechTriggers
unsigned int m_numberTechTriggers
number of technical triggers
Definition: L1GtTriggerMenuXmlParser.h:413
L1GtTriggerMenuXmlParser::parseCorrelation
bool parseCorrelation(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a correlation condition
Definition: L1GtTriggerMenuXmlParser.cc:2472