ATLAS Offline Software
Loading...
Searching...
No Matches
HLTFrame.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TrigConf_HLTFrame
6#define TrigConf_HLTFrame
7
8#include <fstream>
9#include <map>
10#include <string>
11#include <iosfwd>
12#include <vector>
13
15
19
20namespace TrigConf {
21
22 class HLTFrame;
23 class HLTChain;
24 class HLTPrescaleSet;
25 class DiffStruct;
26
27 std::ostream & operator<<(std::ostream &, const HLTFrame &);
28
33 class HLTFrame : public TrigConfData {
34 public:
36 HLTFrame();
37
39 virtual ~HLTFrame() override = default;
40
42 void clear();
43
47 HLTPrescaleSet* thePrescaleSet(unsigned int lbn=0) { return m_hltPrescaleSets.thePrescaleSet(lbn); }
48
49 const HLTChainList& getHLTChainList() const { return m_HLTChainList; }
52 const HLTPrescaleSet* getPrescaleSet(unsigned int lbn) const { return m_hltPrescaleSets.prescaleSet(lbn); }
53 bool mergedHLT() const { return m_setMergedHLT; }
54 const std::string& configSource() const { return m_ConfigSrc; }
55
56
58 void setMergedHLT(bool merged=true) { m_setMergedHLT = merged; }
59 void setConfigSource(const std::string& src) { m_ConfigSrc = src; }
60
61
63 void print(const std::string& indent="", unsigned int detail=1) const override;
64
65 void writeXML(const std::string& filename) const;
66 void writeXML(std::ofstream & xmlfile) const;
67
68 bool equals(const HLTFrame* other, const std::string& filename) const;
69 DiffStruct* compareTo(const HLTFrame* o) const;
70
71 private:
72
76 bool m_setMergedHLT {false};
77 std::string m_ConfigSrc {""};
78
80 std::map<std::string, unsigned int> m_str2idMap;
81
82 friend std::ostream & operator<<(std::ostream &, const TrigConf::HLTFrame &);
83 };
84
85}
86
87#endif
list of all HLT chains in a trigger menu
HLT chain configuration information.
The HLT trigger menu,.
Definition HLTFrame.h:33
DiffStruct * compareTo(const HLTFrame *o) const
Definition HLTFrame.cxx:61
HLTFrame()
default constructor
Definition HLTFrame.cxx:26
HLTPrescaleSetCollection m_hltPrescaleSets
the hlt prescale set (owned)
Definition HLTFrame.h:75
HLTSequenceList m_HLTSequenceList
list of HLT trigger sequences (owned)
Definition HLTFrame.h:74
const HLTSequenceList & getHLTSequenceList() const
const accessor to the list of HLT sequences
Definition HLTFrame.h:50
void writeXML(const std::string &filename) const
Definition HLTFrame.cxx:100
const std::string & configSource() const
Definition HLTFrame.h:54
std::map< std::string, unsigned int > m_str2idMap
TE labels <-> id conversion map.
Definition HLTFrame.h:80
HLTSequenceList & theHLTSequenceList()
accessor to the list of HLT sequences
Definition HLTFrame.h:45
HLTPrescaleSetCollection & thePrescaleSetCollection()
Definition HLTFrame.h:46
const HLTPrescaleSetCollection & getPrescaleSetCollection() const
Definition HLTFrame.h:51
const HLTPrescaleSet * getPrescaleSet(unsigned int lbn) const
Definition HLTFrame.h:52
HLTPrescaleSet * thePrescaleSet(unsigned int lbn=0)
Definition HLTFrame.h:47
void print(const std::string &indent="", unsigned int detail=1) const override
print method
Definition HLTFrame.cxx:86
bool mergedHLT() const
Definition HLTFrame.h:53
HLTChainList & theHLTChainList()
accessor to the list of HLT chains
Definition HLTFrame.h:44
void setMergedHLT(bool merged=true)
pass the HLT merged status
Definition HLTFrame.h:58
void clear()
clear chains, sequences and prescales
Definition HLTFrame.cxx:32
virtual ~HLTFrame() override=default
destructor
bool equals(const HLTFrame *other, const std::string &filename) const
Definition HLTFrame.cxx:43
HLTChainList m_HLTChainList
list of HLT trigger chains (owned)
Definition HLTFrame.h:73
const HLTChainList & getHLTChainList() const
const accessor to the list of HLT chains
Definition HLTFrame.h:49
std::string m_ConfigSrc
Definition HLTFrame.h:77
void setConfigSource(const std::string &src)
Definition HLTFrame.h:59
friend std::ostream & operator<<(std::ostream &, const TrigConf::HLTFrame &)
HLT chain configuration information.
HLT chain configuration information.
list of HLT sequences
std::ostream & indent(std::ostream &o, int lvl, int size) const
TrigConfData(const std::string &name="")
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)