ATLAS Offline Software
Loading...
Searching...
No Matches
Run2toRun3ConvertersHLT.h File Reference
Include dependency graph for Run2toRun3ConvertersHLT.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void convertRun2HLTMenuToRun3 (const TrigConf::HLTFrame *frame, const std::string &filename)
void convertRun2HLTPrescalesToRun3 (const TrigConf::HLTFrame *frame, const std::string &filename)

Function Documentation

◆ convertRun2HLTMenuToRun3()

void convertRun2HLTMenuToRun3 ( const TrigConf::HLTFrame * frame,
const std::string & filename )

Definition at line 165 of file Run2toRun3ConvertersHLT.cxx.

165 {
167 convertHLTMenu(frame, menu);
168
170 writer.writeJsonFile(filename, menu);
171
172}
bool convertHLTMenu(const TrigConf::HLTFrame *frame, TrigConf::HLTMenu &menu)
HLT menu configuration.
Definition HLTMenu.h:21
Loader of trigger configurations from Json files.
make the sidebar many part of the config
Definition hcg.cxx:552
writer
show summary of content
Definition example.py:36

◆ convertRun2HLTPrescalesToRun3()

void convertRun2HLTPrescalesToRun3 ( const TrigConf::HLTFrame * frame,
const std::string & filename )

Definition at line 174 of file Run2toRun3ConvertersHLT.cxx.

174 {
175 using ptree = boost::property_tree::ptree;
176 ptree top;
177 top.put("filetype", "hltprescale");
178 top.put("name", frame->name());
179 ptree pChains;
180 for ( auto cptr : frame->getHLTChainList() ) {
181 ptree pChain;
182 pChain.put("name", cptr->chain_name());
183 pChain.put("counter", cptr->chain_counter());
184 pChain.put("hash", cptr->chain_hash_id());
185 pChain.put("prescale", cptr->prescale());
186 pChain.put("enabled", (cptr->prescale()>0 ? true: false));
187
188 pChains.push_back(std::make_pair(cptr->chain_name(), pChain));
189 }
190 top.add_child("prescales", pChains);
191 TrigConf::HLTPrescalesSet psk(std::move(top));
192
194 convertHLTMenu(frame, menu);
195
197 writer.writeJsonFile(filename, menu, psk);
198}
boost::property_tree::ptree ptree
@ top
const HLTChainList & getHLTChainList() const
const accessor to the list of HLT chains
Definition HLTFrame.h:49
HLT menu configuration.
const std::string & name() const