ATLAS Offline Software
|
#include <L1Threshold.h>
Public Types | |
using | ptree = boost::property_tree::ptree |
Public Member Functions | |
L1Threshold_jJ (const std::string &name, const std::string &type, std::weak_ptr< L1ThrExtraInfoBase > extraInfo, const ptree &data) | |
virtual | ~L1Threshold_jJ () override=default |
virtual std::string | className () const override |
A string that is the name of the class. More... | |
virtual float | thrValue (int eta=0) const override |
Accessor to the threshold value for eta-dependent threholds. More... | |
virtual unsigned int | thrValueCounts (int eta=0) const |
virtual unsigned int | thrValueMeV (int eta=0) const |
virtual unsigned int | thrValue100MeV (int eta=0) const |
as above above but in 100 MeV More... | |
virtual ValueWithEtaDependence< float > | thrValues () const |
access to the list of ThresholdValues in GeV More... | |
virtual const ValueWithEtaDependence< unsigned int > & | thrValuesMeV () const |
access to the list of ThresholdValues in MeV More... | |
virtual ValueWithEtaDependence< unsigned int > | thrValues100MeV () const |
access to the list of ThresholdValues in 100 MeV (for L1Topo multiplicity) More... | |
virtual ValueWithEtaDependence< unsigned int > | thrValuesCounts () const |
access to the list of ThresholdValues in energy units More... | |
const std::string & | type () const |
Accessor to the threshold type. More... | |
unsigned int | mapping () const |
Accessor to the mapping number The mapping is unique within a type. More... | |
void | setData (const ptree &data) |
Setting the configuration data. More... | |
void | setData (ptree &&data) |
void | setName (const std::string &n) |
Setting the configuration element name. More... | |
virtual const std::string & | name () const final |
virtual void | clear () |
Clearing the configuration data. More... | |
const ptree & | data () const |
Access to the underlying data, if needed. More... | |
bool | isValue () const |
Check for attribute. More... | |
std::string | getValue () const |
Access to simple content. More... | |
template<class T > | |
T | getValue () const |
template<class T > | |
std::optional< T > | getValue_optional () const |
access to content of the note Will return false if the value could not be converted into T More... | |
bool | hasAttribute (const std::string &key) const |
Check for attribute. More... | |
bool | isNull (const std::string &key) const |
Check if an attribute is null. More... | |
bool | hasChild (const std::string &path) const |
Check if child exists. More... | |
std::string | operator[] (const std::string &key) const |
Access to simple attribute. More... | |
template<class T > | |
T | getAttribute (const std::string &key, bool ignoreIfMissing=false, const T &def=T()) const |
Access to simple attribute. More... | |
const std::string & | getAttribute (const std::string &key, bool ignoreIfMissing=false, const std::string &def="") const |
template<class T > | |
std::optional< T > | getAttribute_optional (const std::string &key) const |
std::vector< DataStructure > | getList (const std::string &pathToChild, bool ignoreIfMissing=false) const |
Access to array structure. More... | |
std::optional< std::vector< DataStructure > > | getList_optional (const std::string &pathToChild) const |
DataStructure | getObject (const std::string &pathToChild, bool ignoreIfMissing=false) const |
Access to configuration object. More... | |
std::optional< TrigConf::DataStructure > | getObject_optional (const std::string &pathToChild) const |
std::vector< std::string > | getKeys () const |
Access to the keys of an DataStructure which presents a dictionary. More... | |
operator bool () const | |
Access to initialized state. More... | |
bool | isValid () const |
bool | isInitialized () const |
bool | empty () const |
Check if children exist. More... | |
void | printRaw (std::ostream &os=std::cout) const |
virtual void | print (std::ostream &os=std::cout) const |
bool | ownsData () const |
Static Public Member Functions | |
static std::shared_ptr< L1Threshold > | createThreshold (const std::string &name, const std::string &type, std::weak_ptr< L1ThrExtraInfoBase > extraInfo, const ptree &data) |
static method to create type-specific L1Thresholds More... | |
static void | printElement (const std::string &key, const ptree &data, uint level=0, std::ostream &os=std::cout) |
Static function to print a ptree object. More... | |
Protected Member Functions | |
virtual void | update () override |
Update the internal data after modification of the data object. More... | |
Protected Attributes | |
std::string | m_input {""} |
unsigned int | m_thrValue {0} |
threshold value in MeV More... | |
ValueWithEtaDependence< unsigned int > | m_etaDepThrValue {""} |
eta-dependent threshold value in MeV More... | |
std::weak_ptr< L1ThrExtraInfoBase > | m_extraInfo |
bool | m_initialized { false } |
if initialized, the underlying ptree is has been assigned to (can be empty) More... | |
std::shared_ptr< ptree > | m_dataSPtr { nullptr } |
const ptree * | m_dataPtr { nullptr } |
std::string | m_name {""} |
Private Member Functions | |
void | load () |
Private Attributes | |
std::string | m_type {""} |
threshold type More... | |
unsigned int | m_mapping {0} |
unique identifier amongst thresholds of the same type More... | |
Definition at line 275 of file L1Threshold.h.
|
inherited |
Definition at line 40 of file DataStructure.h.
|
inline |
Definition at line 277 of file L1Threshold.h.
|
overridevirtualdefault |
|
inlineoverridevirtual |
A string that is the name of the class.
Reimplemented from TrigConf::L1Threshold.
Definition at line 280 of file L1Threshold.h.
|
virtualinherited |
Clearing the configuration data.
should be overloaded by derived object that have to clear data
leads to an uninitialized object
Reimplemented in TrigConf::L1Menu, TrigConf::L1BunchGroupSet, TrigConf::HLTMenu, TrigConf::HLTMonitoring, TrigConf::HLTPrescalesSet, TrigConf::L1CTP, and TrigConf::L1PrescalesSet.
Definition at line 65 of file DataStructure.cxx.
|
staticinherited |
static method to create type-specific L1Thresholds
name | [in] name of the threshold |
type | [in] type of the threshold (e.g. EM, TAU, JET, XE, TE, eEM, jJ, gXE, ...) |
extraInfo | [in] link to the extra info for the given type |
data | [in] the threshold definition (json wrapped into a ptree) |
Definition at line 28 of file L1ThresholdBase.cxx.
Access to the underlying data, if needed.
Definition at line 83 of file DataStructure.h.
|
inlineinherited |
|
inherited |
Definition at line 136 of file DataStructure.cxx.
|
inlineinherited |
Access to simple attribute.
key | The path to the attribute name, relative to the current one in form "path.to.child" |
ignoreIfMissing | Controls the behavior in case of missing configuration child |
Definition at line 152 of file DataStructure.h.
|
inlineinherited |
|
inherited |
Access to the keys of an DataStructure which presents a dictionary.
In case the DataStructure is a list or a simple attribute, an empty vector is returned
Definition at line 250 of file DataStructure.cxx.
|
inherited |
Access to array structure.
pathToChild | The path to the configuration child, relative to the current one in form "path.to.child" |
ignoreIfMissing | Controls the behavior in case of missing configuration child |
In case the child is missing and ignoreIfMissing
is set to true
, and empty vector will be returned. Otherwise a runtime exception will be thrown.
Definition at line 158 of file DataStructure.cxx.
|
inherited |
|
inherited |
Access to configuration object.
pathToChild | The path to the configuration child, relative to the current one |
ignoreIfMissing | Controls the behavior in case of missing configuration child |
In case the child is missing and ignoreIfMissing
is set to true
, an uninitialized DataStructure
will be returned. Otherwise a runtime exception will be thrown.
Definition at line 207 of file DataStructure.cxx.
|
inherited |
Definition at line 230 of file DataStructure.cxx.
|
inherited |
Access to simple content.
For instance when the json structure contains an array of values (ptree only works with strings) which one retrieved via getList
, then the values in the vector<DataStructure>
can be accessed using getValue
Definition at line 80 of file DataStructure.cxx.
|
inlineinherited |
Definition at line 108 of file DataStructure.h.
|
inlineinherited |
|
inherited |
Check for attribute.
key | The path to the attribute name, relative to the current one in form "path.to.child" |
key
exists and is an attribute Definition at line 86 of file DataStructure.cxx.
|
inherited |
Check if child exists.
path | The path to the child, relative to the current one in form "path.to.child" |
Definition at line 114 of file DataStructure.cxx.
|
inlineinherited |
Definition at line 216 of file DataStructure.h.
|
inherited |
Check if an attribute is null.
key | The path to the attribute name, relative to the current one in form "path.to.child" |
key
exists and is nullIf the attribute doesn't exist, the function returns false. To check if an attribute exists and is null, use it together with hasAttribute
.
Definition at line 94 of file DataStructure.cxx.
|
inlineinherited |
Definition at line 215 of file DataStructure.h.
|
inherited |
Check for attribute.
Definition at line 74 of file DataStructure.cxx.
|
private |
Definition at line 204 of file L1Threshold.cxx.
|
inlineinherited |
Accessor to the mapping number The mapping is unique within a type.
Definition at line 163 of file L1ThresholdBase.h.
|
finalvirtualinherited |
Definition at line 109 of file DataStructure.cxx.
|
inlineexplicitinherited |
|
inherited |
Access to simple attribute.
key | The path to the attribute name, relative to the current one in form "path.to.child" |
Definition at line 121 of file DataStructure.cxx.
|
inlineinherited |
Definition at line 242 of file DataStructure.h.
|
virtualinherited |
Reimplemented in TrigConf::L1TopoAlgorithm, and TrigConf::L1Threshold_EM.
Definition at line 272 of file DataStructure.cxx.
|
staticinherited |
Static function to print a ptree
object.
key | The key of this data as found in the parent structure |
data | The ptree to print |
level | The substruture level used to indent the output |
os | The output stream |
Definition at line 279 of file DataStructure.cxx.
|
inherited |
Definition at line 265 of file DataStructure.cxx.
|
inherited |
Definition at line 50 of file DataStructure.cxx.
|
inherited |
Setting the configuration element name.
Definition at line 59 of file DataStructure.cxx.
|
overridevirtualinherited |
Accessor to the threshold value for eta-dependent threholds.
eta | the eta value should be given for potentially eta-dependent thresholds must be overwritten by L1Threshold_Calo and L1Threnshold_MU |
Reimplemented from TrigConf::L1Threshold.
Definition at line 272 of file L1ThresholdBase.cxx.
|
virtualinherited |
as above above but in 100 MeV
Definition at line 284 of file L1ThresholdBase.cxx.
|
virtualinherited |
Definition at line 278 of file L1ThresholdBase.cxx.
|
virtualinherited |
Definition at line 289 of file L1ThresholdBase.cxx.
|
virtualinherited |
|
virtualinherited |
access to the list of ThresholdValues in 100 MeV (for L1Topo multiplicity)
Definition at line 308 of file L1ThresholdBase.cxx.
|
virtualinherited |
access to the list of ThresholdValues in energy units
Definition at line 317 of file L1ThresholdBase.cxx.
|
virtualinherited |
access to the list of ThresholdValues in MeV
Definition at line 303 of file L1ThresholdBase.cxx.
|
inlineinherited |
|
inlineoverrideprotectedvirtual |
Update the internal data after modification of the data object.
Reimplemented from TrigConf::L1Threshold_Calo.
Definition at line 282 of file L1Threshold.h.
Definition at line 257 of file DataStructure.h.
|
protectedinherited |
Definition at line 256 of file DataStructure.h.
|
protectedinherited |
eta-dependent threshold value in MeV
Definition at line 255 of file L1ThresholdBase.h.
|
protectedinherited |
Definition at line 177 of file L1ThresholdBase.h.
|
protectedinherited |
if initialized, the underlying ptree is has been assigned to (can be empty)
Definition at line 254 of file DataStructure.h.
|
protectedinherited |
Definition at line 246 of file L1ThresholdBase.h.
|
privateinherited |
unique identifier amongst thresholds of the same type
Definition at line 184 of file L1ThresholdBase.h.
|
protectedinherited |
Definition at line 259 of file DataStructure.h.
|
protectedinherited |
threshold value in MeV
Definition at line 253 of file L1ThresholdBase.h.
|
privateinherited |
threshold type
Definition at line 183 of file L1ThresholdBase.h.