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 <boost/cstdint.hpp>
24 
25 #include <xercesc/sax/HandlerBase.hpp>
26 #include <xercesc/dom/DOM.hpp>
27 #include <xercesc/parsers/XercesDOMParser.hpp>
28 
29 // user include files
30 // base class
32 
35 
46 
47 // forward declarations
48 class L1GtCondition;
49 class L1GtAlgorithm;
50 
51 // class declaration
53 {
54 
55 public:
56 
60 
62  virtual ~L1GtTriggerMenuXmlParser();
63 
64 public:
65 
67  inline const unsigned int gtNumberConditionChips() const {
69  }
70 
71  void setGtNumberConditionChips(const unsigned int&);
72 
74  inline const unsigned int gtPinsOnConditionChip() const {
75  return m_pinsOnConditionChip;
76  }
77 
78  void setGtPinsOnConditionChip(const unsigned int&);
79 
82  inline std::vector<int> gtOrderConditionChip() const {
83  return m_orderConditionChip;
84  }
85 
86  void setGtOrderConditionChip(const std::vector<int>&);
87 
89  inline const unsigned int gtNumberPhysTriggers() const {
90  return m_numberPhysTriggers;
91  }
92 
93  void setGtNumberPhysTriggers(const unsigned int&);
94 
96  inline const unsigned int gtNumberTechTriggers() const {
97  return m_numberTechTriggers;
98  }
99 
100  void setGtNumberTechTriggers(const unsigned int&);
101 
103  inline const unsigned int gtNumberL1JetCounts() const {
104  return m_numberL1JetCounts;
105  }
106 
107  void setGtNumberL1JetCounts(const unsigned int&);
108 
109 public:
110 
112  inline const std::vector<ConditionMap>& gtConditionMap() const {
113  return m_conditionMap;
114  }
115 
116  void setGtConditionMap(const std::vector<ConditionMap>&);
117 
119  inline const std::string& gtTriggerMenuInterface() const {
120  return m_triggerMenuInterface;
121  }
122 
124 
125  //
126  inline const std::string& gtTriggerMenuName() const {
127  return m_triggerMenuName;
128  }
129 
130  void setGtTriggerMenuName(const std::string&);
131 
132  //
133  inline const std::string& gtTriggerMenuImplementation() const {
135  }
136 
138 
140  inline const std::string& gtScaleDbKey() const {
141  return m_scaleDbKey;
142  }
143 
144  void setGtScaleDbKey(const std::string&);
145 
147  inline const std::vector<std::vector<L1GtMuonTemplate> >& vecMuonTemplate() const {
148  return m_vecMuonTemplate;
149  }
150  void setVecMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
151 
152  //
153  inline const std::vector<std::vector<L1GtCaloTemplate> >& vecCaloTemplate() const {
154  return m_vecCaloTemplate;
155  }
156 
157  void setVecCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
158 
159  //
160  inline const std::vector<std::vector<L1GtEnergySumTemplate> >& vecEnergySumTemplate() const {
161 
162  return m_vecEnergySumTemplate;
163  }
164 
166  const std::vector<std::vector<L1GtEnergySumTemplate> >&);
167 
168  //
169  inline const std::vector<std::vector<L1GtJetCountsTemplate> >& vecJetCountsTemplate() const {
170 
171  return m_vecJetCountsTemplate;
172  }
173 
175  const std::vector<std::vector<L1GtJetCountsTemplate> >&);
176 
177  //
178  inline const std::vector<std::vector<L1GtCastorTemplate> >& vecCastorTemplate() const {
179 
180  return m_vecCastorTemplate;
181  }
182 
184  const std::vector<std::vector<L1GtCastorTemplate> >&);
185 
186  //
187  inline const std::vector<std::vector<L1GtHfBitCountsTemplate> >&
189 
191  }
192 
194  const std::vector<std::vector<L1GtHfBitCountsTemplate> >&);
195 
196  //
197  inline const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >&
199 
201  }
202 
204  const std::vector<std::vector<L1GtHfRingEtSumsTemplate> >&);
205 
206  //
207  inline const std::vector<std::vector<L1GtBptxTemplate> >&
208  vecBptxTemplate() const {
209 
210  return m_vecBptxTemplate;
211  }
212 
213  void setVecBptxTemplate(
214  const std::vector<std::vector<L1GtBptxTemplate> >&);
215 
216  //
217  inline const std::vector<std::vector<L1GtExternalTemplate> >&
219 
220  return m_vecExternalTemplate;
221  }
222 
224  const std::vector<std::vector<L1GtExternalTemplate> >&);
225 
226  //
227  inline const std::vector<std::vector<L1GtCorrelationTemplate> >& vecCorrelationTemplate() const {
228 
230  }
231 
233  const std::vector<std::vector<L1GtCorrelationTemplate> >&);
234 
235  // get / set the vectors containing the conditions for correlation templates
236  //
237  inline const std::vector<std::vector<L1GtMuonTemplate> >& corMuonTemplate() const {
238  return m_corMuonTemplate;
239  }
240 
241  void setCorMuonTemplate(const std::vector<std::vector<L1GtMuonTemplate> >&);
242 
243  //
244  inline const std::vector<std::vector<L1GtCaloTemplate> >& corCaloTemplate() const {
245  return m_corCaloTemplate;
246  }
247 
248  void setCorCaloTemplate(const std::vector<std::vector<L1GtCaloTemplate> >&);
249 
250  //
251  inline const std::vector<std::vector<L1GtEnergySumTemplate> >& corEnergySumTemplate() const {
252 
253  return m_corEnergySumTemplate;
254  }
255 
257  const std::vector<std::vector<L1GtEnergySumTemplate> >&);
258 
260  inline const AlgorithmMap& gtAlgorithmMap() const {
261  return m_algorithmMap;
262  }
263 
264  void setGtAlgorithmMap(const AlgorithmMap&);
265 
267  inline const AlgorithmMap& gtAlgorithmAliasMap() const {
268  return m_algorithmAliasMap;
269  }
270 
272 
274  inline const AlgorithmMap& gtTechnicalTriggerMap() const {
275  return m_technicalTriggerMap;
276  }
277 
279 
280 public:
281 
283  void parseXmlFile(const std::string& defXmlFile,
284  const std::string& vmeXmlFile);
285 
286 public:
287 
289  inline const std::string& gtTriggerMenuInterfaceDate() const {
291  }
292 
294 
297  }
298 
300 
303  }
304 
306 
307  //
308 
309  inline const std::string& gtTriggerMenuDate() const {
310  return m_triggerMenuDate;
311  }
312 
313  void setGtTriggerMenuDate(const std::string&);
314 
315  inline const std::string& gtTriggerMenuAuthor() const {
316  return m_triggerMenuAuthor;
317  }
318 
319  void setGtTriggerMenuAuthor(const std::string&);
320 
321  inline const std::string& gtTriggerMenuDescription() const {
323  }
324 
326 
327 
328  inline const std::string& gtAlgorithmImplementation() const {
330  }
331 
333 
334 
335 private:
336 
337  // XML methods
338 
340  XERCES_CPP_NAMESPACE::XercesDOMParser* initXML(const std::string& xmlFile);
341 
343  XERCES_CPP_NAMESPACE::DOMNode* findXMLChild(
344  XERCES_CPP_NAMESPACE::DOMNode* startChild,
345  const std::string& tagName, bool beginOnly = false,
346  std::string* rest = 0);
347 
349  std::string getXMLAttribute(const XERCES_CPP_NAMESPACE::DOMNode* node,
350  const std::string& name);
351 
353  std::string getXMLTextValue(XERCES_CPP_NAMESPACE::DOMNode* node);
354 
356  bool hexString2UInt128(const std::string& hexString, boost::uint64_t& dstL,
357  boost::uint64_t& dstH);
358 
360  bool getXMLHexTextValue128(XERCES_CPP_NAMESPACE::DOMNode* node,
361  boost::uint64_t& dstL, boost::uint64_t& dstH);
362 
364  bool getXMLHexTextValue(XERCES_CPP_NAMESPACE::DOMNode* node,
365  boost::uint64_t& dst);
366 
368  bool countConditionChildMaxBits(XERCES_CPP_NAMESPACE::DOMNode* node,
369  const std::string& childName, unsigned int& dst);
370 
372  bool getConditionChildValues(XERCES_CPP_NAMESPACE::DOMNode* node,
373  const std::string& childName, unsigned int num,
374  std::vector<boost::uint64_t>& dst);
375 
377  void cleanupXML(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
378 
379 
380 private:
381 
382  // methods for the VME file
383 
385  bool parseVmeXML(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
386 
387 private:
388 
389  // methods for conditions and algorithms
390 
393  void clearMaps();
394 
397  bool insertConditionIntoMap(L1GtCondition& cond, const int chipNr);
398 
400  bool insertAlgorithmIntoMap(const L1GtAlgorithm& alg);
401 
403  bool insertTechTriggerIntoMap(const L1GtAlgorithm& alg);
404 
408 
410  int getNumFromType(const std::string& type);
411 
413  int getBitFromNode(XERCES_CPP_NAMESPACE::DOMNode* node);
414 
416  int getGEqFlag(XERCES_CPP_NAMESPACE::DOMNode* node,
417  const std::string& nodeName);
418 
420  bool getMuonMipIsoBits(XERCES_CPP_NAMESPACE::DOMNode* node,
421  unsigned int num, std::vector<bool>& mipDst,
422  std::vector<bool>& isoEnDst, std::vector<bool>& isoReqDst);
423 
425  bool parseMuon(XERCES_CPP_NAMESPACE::DOMNode* node,
426  const std::string& name, unsigned int chipNr = 0,
427  const bool corrFlag = false);
428 
430  bool parseCalo(XERCES_CPP_NAMESPACE::DOMNode* node,
431  const std::string& name, unsigned int chipNr = 0,
432  const bool corrFlag = false);
433 
435  bool parseEnergySum(XERCES_CPP_NAMESPACE::DOMNode* node,
436  const std::string& name, unsigned int chipNr = 0,
437  const bool corrFlag = false);
438 
440  bool parseJetCounts(XERCES_CPP_NAMESPACE::DOMNode* node,
441  const std::string& name, unsigned int chipNr = 0);
442 
444  bool parseCastor(XERCES_CPP_NAMESPACE::DOMNode* node,
445  const std::string& name, unsigned int chipNr = 0);
446 
448  bool parseHfBitCounts(XERCES_CPP_NAMESPACE::DOMNode* node,
449  const std::string& name, unsigned int chipNr = 0);
450 
452  bool parseHfRingEtSums(XERCES_CPP_NAMESPACE::DOMNode* node,
453  const std::string& name, unsigned int chipNr = 0);
454 
456  bool parseBptx(XERCES_CPP_NAMESPACE::DOMNode* node,
457  const std::string& name, unsigned int chipNr = 0);
458 
460  bool parseExternal(XERCES_CPP_NAMESPACE::DOMNode* node,
461  const std::string& name, unsigned int chipNr = 0);
462 
464  bool parseCorrelation(XERCES_CPP_NAMESPACE::DOMNode* node,
465  const std::string& name, unsigned int chipNr = 0);
466 
468  bool parseId(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
469 
471  bool workCondition(XERCES_CPP_NAMESPACE::DOMNode* node,
472  const std::string& name, unsigned int chipNr);
473 
475  bool parseConditions(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
476 
478  bool workAlgorithm(XERCES_CPP_NAMESPACE::DOMNode* node,
479  const std::string& name, unsigned int chipNr);
480 
482  bool parseAlgorithms(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
483 
485  bool workTechTrigger(XERCES_CPP_NAMESPACE::DOMNode* node,
486  const std::string& name);
487 
489  bool parseTechTriggers(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
490 
492  bool workXML(XERCES_CPP_NAMESPACE::XercesDOMParser* parser);
493 
494 private:
495 
497  XERCES_CPP_NAMESPACE::ErrorHandler* m_xmlErrHandler;
498 
500 
503 
505  unsigned int m_pinsOnConditionChip;
506 
509  std::vector<int> m_orderConditionChip;
510 
512  unsigned int m_numberPhysTriggers;
513 
515  unsigned int m_numberTechTriggers;
516 
518  unsigned int m_numberL1JetCounts;
519 
520 private:
521 
523 
527 
531 
533 
534 
535 private:
536 
538  std::vector<ConditionMap> m_conditionMap;
539 
540 private:
541 
546 
549 
552  std::vector<std::vector<L1GtMuonTemplate> > m_vecMuonTemplate;
553  std::vector<std::vector<L1GtCaloTemplate> > m_vecCaloTemplate;
554  std::vector<std::vector<L1GtEnergySumTemplate> > m_vecEnergySumTemplate;
555  std::vector<std::vector<L1GtJetCountsTemplate> > m_vecJetCountsTemplate;
556  std::vector<std::vector<L1GtCastorTemplate> > m_vecCastorTemplate;
557  std::vector<std::vector<L1GtHfBitCountsTemplate> > m_vecHfBitCountsTemplate;
558  std::vector<std::vector<L1GtHfRingEtSumsTemplate> > m_vecHfRingEtSumsTemplate;
559  std::vector<std::vector<L1GtBptxTemplate> > m_vecBptxTemplate;
560  std::vector<std::vector<L1GtExternalTemplate> > m_vecExternalTemplate;
561 
562  std::vector<std::vector<L1GtCorrelationTemplate> > m_vecCorrelationTemplate;
563  std::vector<std::vector<L1GtMuonTemplate> > m_corMuonTemplate;
564  std::vector<std::vector<L1GtCaloTemplate> > m_corCaloTemplate;
565  std::vector<std::vector<L1GtEnergySumTemplate> > m_corEnergySumTemplate;
566 
569 
572 
575 
576 };
577 
578 #endif /*L1GtConfigProducers_L1GtTriggerMenuXmlParser_h*/
const std::string & gtTriggerMenuInterface() const
get / set the trigger menu names
int getBitFromNode(XERCES_CPP_NAMESPACE::DOMNode *node)
get bit from a bit node
type
Definition: HCALResponse.h:21
void setGtTriggerMenuInterfaceAuthor(const std::string &)
void setGtTechnicalTriggerMap(const AlgorithmMap &)
std::vector< std::vector< L1GtCastorTemplate > > m_vecCastorTemplate
const std::vector< std::vector< L1GtCaloTemplate > > & vecCaloTemplate() const
std::string getXMLTextValue(XERCES_CPP_NAMESPACE::DOMNode *node)
get the text value of a xml node as string
const unsigned int gtPinsOnConditionChip() const
get / set the number of pins on the GTL condition chips
AlgorithmMap m_algorithmAliasMap
map containing the physics algorithms (by alias)
bool getConditionChildValues(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &childName, unsigned int num, std::vector< boost::uint64_t > &dst)
get values from a child of a condition
void setVecCastorTemplate(const std::vector< std::vector< L1GtCastorTemplate > > &)
const std::string & gtScaleDbKey() const
menu associated scale key
void setVecEnergySumTemplate(const std::vector< std::vector< L1GtEnergySumTemplate > > &)
void setGtTriggerMenuDate(const std::string &)
bool workAlgorithm(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr)
parse an algorithm and insert it into algorithm map.
const std::vector< std::vector< L1GtEnergySumTemplate > > & vecEnergySumTemplate() const
std::vector< std::vector< L1GtExternalTemplate > > m_vecExternalTemplate
std::map< std::string, L1GtAlgorithm > AlgorithmMap
map containing the algorithms
void setGtConditionMap(const std::vector< ConditionMap > &)
std::vector< std::vector< L1GtCorrelationTemplate > > m_vecCorrelationTemplate
void setGtPinsOnConditionChip(const unsigned int &)
AlgorithmMap m_technicalTriggerMap
map containing the technical triggers
bool parseTechTriggers(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all algorithms
bool parseId(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all parse all identification attributes (trigger menu names, scale DB key, etc) ...
unsigned int m_numberPhysTriggers
number of physics trigger algorithms
const AlgorithmMap & gtTechnicalTriggerMap() const
get / set the technical trigger map
void setGtAlgorithmMap(const AlgorithmMap &)
const std::vector< std::vector< L1GtEnergySumTemplate > > & corEnergySumTemplate() const
void setGtAlgorithmAliasMap(const AlgorithmMap &)
const std::vector< ConditionMap > & gtConditionMap() const
get / set / build the condition maps
AlgorithmMap m_algorithmMap
map containing the physics algorithms (by name)
void setGtTriggerMenuDescription(const std::string &)
const unsigned int gtNumberConditionChips() const
get / set the number of condition chips in GTL
bool parseExternal(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse an External condition
XERCES_CPP_NAMESPACE::XercesDOMParser * initXML(const std::string &xmlFile)
init xml system
const std::vector< std::vector< L1GtMuonTemplate > > & corMuonTemplate() const
bool parseConditions(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all conditions
void setGtTriggerMenuAuthor(const std::string &)
void setGtNumberPhysTriggers(const unsigned int &)
L1GtConditionType
XERCES_CPP_NAMESPACE::DOMNode * findXMLChild(XERCES_CPP_NAMESPACE::DOMNode *startChild, const std::string &tagName, bool beginOnly=false, std::string *rest=0)
find a named child of a xml node
void setGtScaleDbKey(const std::string &)
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
XERCES_CPP_NAMESPACE::ErrorHandler * m_xmlErrHandler
error handler for xml-parser
const std::vector< std::vector< L1GtMuonTemplate > > & vecMuonTemplate() const
get / set the vectors containing the conditions
std::string m_triggerMenuInterfaceDate
members for XML parser only (do not appear in CondFormats)
const std::string & gtTriggerMenuImplementation() const
const unsigned int gtNumberTechTriggers() const
get / set the number of technical triggers
std::string m_scaleDbKey
menu associated scale key
void setCorCaloTemplate(const std::vector< std::vector< L1GtCaloTemplate > > &)
std::vector< std::vector< L1GtBptxTemplate > > m_vecBptxTemplate
bool parseMuon(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0, const bool corrFlag=false)
parse a muon condition
int getGEqFlag(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &nodeName)
getGEqFlag - get the "greater or equal flag" from a condition
const std::vector< std::vector< L1GtHfBitCountsTemplate > > & vecHfBitCountsTemplate() const
const AlgorithmMap & gtAlgorithmAliasMap() const
get / set the algorithm map (by alias)
bool parseCorrelation(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a correlation condition
void setVecHfRingEtSumsTemplate(const std::vector< std::vector< L1GtHfRingEtSumsTemplate > > &)
const std::vector< std::vector< L1GtHfRingEtSumsTemplate > > & vecHfRingEtSumsTemplate() const
void cleanupXML(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
shutdown the xml utils and deallocate parser and error handler
std::vector< std::vector< L1GtHfBitCountsTemplate > > m_vecHfBitCountsTemplate
bool getXMLHexTextValue(XERCES_CPP_NAMESPACE::DOMNode *node, boost::uint64_t &dst)
get a hexadecimal value of a xml node containing text
void setCorMuonTemplate(const std::vector< std::vector< L1GtMuonTemplate > > &)
bool insertConditionIntoMap(L1GtCondition &cond, const int chipNr)
const unsigned int gtNumberPhysTriggers() const
get / set the number of physics trigger algorithms
std::vector< std::vector< L1GtMuonTemplate > > m_corMuonTemplate
void setVecCaloTemplate(const std::vector< std::vector< L1GtCaloTemplate > > &)
unsigned int m_numberTechTriggers
number of technical triggers
std::string getXMLAttribute(const XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name)
get a named attribute for an xml node as string
void setVecBptxTemplate(const std::vector< std::vector< L1GtBptxTemplate > > &)
std::string m_triggerMenuInterface
menu names
const std::vector< std::vector< L1GtCastorTemplate > > & vecCastorTemplate() const
const std::vector< std::vector< L1GtJetCountsTemplate > > & vecJetCountsTemplate() const
bool parseHfBitCounts(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a HfBitCounts condition
bool parseHfRingEtSums(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a HfRingEtSums condition
void setVecMuonTemplate(const std::vector< std::vector< L1GtMuonTemplate > > &)
const std::vector< std::vector< L1GtBptxTemplate > > & vecBptxTemplate() const
std::vector< std::vector< L1GtEnergySumTemplate > > m_corEnergySumTemplate
const AlgorithmMap & gtAlgorithmMap() const
get / set the algorithm map (by name)
bool parseVmeXML(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse the vme xml file
void setGtTriggerMenuInterfaceDescription(const std::string &)
bool parseJetCounts(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a "jet counts" condition
const std::string & gtAlgorithmImplementation() const
bool parseEnergySum(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0, const bool corrFlag=false)
parse an "energy sum" condition
void parseXmlFile(const std::string &defXmlFile, const std::string &vmeXmlFile)
parse def.xml and vme.xml files
void setGtTriggerMenuName(const std::string &)
unsigned int m_numberConditionChips
hardware limits
std::vector< std::vector< L1GtJetCountsTemplate > > m_vecJetCountsTemplate
const std::string & gtTriggerMenuInterfaceAuthor() const
bool workCondition(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr)
choose the parser for a particular condition
void setGtTriggerMenuInterfaceDate(const std::string &)
const std::string & gtTriggerMenuAuthor() const
bool workXML(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
do all the steps for filling a trigger menu
const std::string & gtTriggerMenuDescription() const
unsigned int m_pinsOnConditionChip
number of pins on the GTL condition chips
bool parseCastor(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a CASTOR condition
bool insertTechTriggerIntoMap(const L1GtAlgorithm &alg)
insert a technical trigger into technical trigger map
virtual ~L1GtTriggerMenuXmlParser()
destructor
const std::string & gtTriggerMenuInterfaceDate() const
get / set the XML parser creation date, author, description for menu interface, menu ...
void setGtNumberConditionChips(const unsigned int &)
const std::vector< std::vector< L1GtCorrelationTemplate > > & vecCorrelationTemplate() const
std::vector< std::vector< L1GtCaloTemplate > > m_vecCaloTemplate
const std::string & gtTriggerMenuName() const
bool parseAlgorithms(XERCES_CPP_NAMESPACE::XercesDOMParser *parser)
parse all algorithms
void setGtTriggerMenuInterface(const std::string &)
unsigned long long uint64_t
Definition: Time.h:15
void setVecCorrelationTemplate(const std::vector< std::vector< L1GtCorrelationTemplate > > &)
int getNumFromType(const std::string &type)
get number of particles from condition type
void setVecHfBitCountsTemplate(const std::vector< std::vector< L1GtHfBitCountsTemplate > > &)
std::vector< std::vector< L1GtCaloTemplate > > m_corCaloTemplate
bool parseBptx(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0)
parse a Bptx condition
std::vector< std::vector< L1GtEnergySumTemplate > > m_vecEnergySumTemplate
Definition: plugin.cc:24
void setGtNumberTechTriggers(const unsigned int &)
void setGtOrderConditionChip(const std::vector< int > &)
bool parseCalo(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name, unsigned int chipNr=0, const bool corrFlag=false)
parse a calorimeter condition
std::vector< ConditionMap > m_conditionMap
map containing the conditions (per condition chip) - transient
void setCorEnergySumTemplate(const std::vector< std::vector< L1GtEnergySumTemplate > > &)
const std::string & gtTriggerMenuInterfaceDescription() const
bool hexString2UInt128(const std::string &hexString, boost::uint64_t &dstL, boost::uint64_t &dstH)
convert a hexadecimal string with up to 128 to 2 boost::uint64_t
void setVecJetCountsTemplate(const std::vector< std::vector< L1GtJetCountsTemplate > > &)
bool insertAlgorithmIntoMap(const L1GtAlgorithm &alg)
insert an algorithm into algorithm map
std::vector< std::vector< L1GtHfRingEtSumsTemplate > > m_vecHfRingEtSumsTemplate
void setGtAlgorithmImplementation(const std::string &)
bool getXMLHexTextValue128(XERCES_CPP_NAMESPACE::DOMNode *node, boost::uint64_t &dstL, boost::uint64_t &dstH)
get a hexadecimal value of a xml node containing text with up to 128 bit
std::vector< int > gtOrderConditionChip() const
const unsigned int gtNumberL1JetCounts() const
get / set the number of L1 jet counts received by GT
const std::vector< std::vector< L1GtCaloTemplate > > & corCaloTemplate() const
const std::string & gtTriggerMenuDate() const
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
void setGtTriggerMenuImplementation(const std::string &)
L1GtConditionType getTypeFromType(const std::string &type)
const std::vector< std::vector< L1GtExternalTemplate > > & vecExternalTemplate() const
bool workTechTrigger(XERCES_CPP_NAMESPACE::DOMNode *node, const std::string &name)
parse an algorithm and insert it into algorithm map.
void setVecExternalTemplate(const std::vector< std::vector< L1GtExternalTemplate > > &)
std::vector< int > m_orderConditionChip
std::vector< std::vector< L1GtMuonTemplate > > m_vecMuonTemplate
void setGtNumberL1JetCounts(const unsigned int &)
unsigned int m_numberL1JetCounts
jet counts