|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCONFDATA_L1TOPOALGORITHM_H
6 #define TRIGCONFDATA_L1TOPOALGORITHM_H
54 virtual std::string
className()
const override;
58 const std::string &
category()
const;
61 const std::string &
klass()
const;
66 const std::vector<std::string> &
inputs()
const;
71 const std::vector<std::string> &
outputs()
const;
81 return getAttribute<T>(
"fixedParameters.generics." +
parName +
".value");
85 const std::vector<VariableParameter> &
parameters()
const;
88 void print(std::ostream &
os = std::cout)
const override;
130 if(flavInt==
int(
FLAV::jXE))
return "jXE";
132 if(flavInt==
int(
FLAV::jTE))
return "jTE";
140 if(flavInt==
int(
FLAV::gTE))
return "gTE";
143 throw std::runtime_error(
"Flavour " +
std::to_string(flavInt) +
" for EnergyThreshold algorithm not recongnised!");
161 throw std::runtime_error(
"Flavour " + flavStr +
" for EnergyThreshold algorithm not recongnised!");
const ptree & data() const
Access to the underlying data, if needed.
std::vector< std::string > fullOutputs() const
L1TopoAlgorithm(L1TopoAlgorithm &&)=default
L1Topo algorithm configuration.
std::optional< unsigned int > selection_optional() const
T genericParameter(const std::string &parName) const
std::vector< VariableParameter > m_parameters
DataStructure generics() const
Accessors to generic parameters.
const std::string & klass() const
Accessor to algorithm class type.
L1TopoAlgorithm()=default
Constructor.
L1TopoAlgorithm(const L1TopoAlgorithm &)=delete
Forward iterator to traverse the main components of the trigger configuration.
FLAV
DO NOT CHANGE! Need to match with firmware values.
VariableParameter(const std::string &name, int value, std::optional< unsigned int > selection=std::nullopt)
void print(std::ostream &os=std::cout) const override
print main info
std::string genericParameter(const std::string &parName) const
AlgorithmType type() const
std::optional< unsigned int > m_selection
const std::string & name() const
const std::vector< VariableParameter > & parameters() const
Accessor to register parameters which can change for each algorithm instance.
const std::vector< std::string > & outputs() const
Accessor to output collections Sorting and Multiplicity algorithms have only one output.
std::vector< std::string > m_inputs
const std::string & category() const
unsigned int selection() const
static std::string flavourIntToStr(const unsigned int flavInt)
std::string to_string(const DetectorType &type)
void load()
Update the internal data after modification of the data object.
virtual std::string className() const override
A string that is the name of the class.
virtual void update() override
Update the internal data after modification of the data object.
Base class for Trigger configuration data and wrapper around underlying representation.
static unsigned int flavourStrToInt(const std::string &flavStr)
virtual ~L1TopoAlgorithm() override=default
Destructor.
boost::property_tree::ptree ptree
std::vector< std::string > m_outputs
const std::vector< std::string > & inputs() const
Accessor to input collections Sorting and Multiplicity algorithms have only one input.
L1TopoAlgorithm & operator=(const L1TopoAlgorithm &)=delete