20 const auto & cuts =
data().get_child(
"cutValues");
21 for(
auto & c : cuts ) {
23 ps.cut = c.second.get_child(
"cut").get_value<int32_t>();
24 ps.enabled = c.second.get_child(
"enabled").get_value<
bool>();
57const std::map<std::string, TrigConf::L1PrescalesSet::L1Prescale>&
75 return static_cast<double>(0xFFFFFF) / ( 0x1000000 - cut );
char data[hepevt_bytes_allocation_ATLAS]
const ptree & data() const
Access to the underlying data, if needed.
DataStructure()
Default constructor, leading to an uninitialized configuration object.
T getAttribute(const std::string &key, bool ignoreIfMissing=false, const T &def=T()) const
Access to simple attribute.
std::map< std::string, L1Prescale > m_prescales
unsigned int m_psk
the prescale key
std::size_t size() const
number of L1 prescales
virtual void clear() override
Clearing the configuration data.
unsigned int psk() const
setter and getter for the L1 prescale key
const L1Prescale & prescale(const std::string &itemName) const
void setPSK(unsigned int psk)
const std::map< std::string, L1Prescale > & prescales() const
L1PrescalesSet()
Constructor.
double getPrescaleFromCut(uint32_t cut) const
prescale = 2*24/(cut+1.)