Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
#include <L1ThresholdBase.h>
Inherits TrigConf::L1Threshold.
Inherited by TrigConf::L1Threshold_cTAU, TrigConf::L1Threshold_eEM, TrigConf::L1Threshold_EM, TrigConf::L1Threshold_eTAU, TrigConf::L1Threshold_gJ, TrigConf::L1Threshold_gLJ, TrigConf::L1Threshold_gTE, TrigConf::L1Threshold_gXE, TrigConf::L1Threshold_jEM, TrigConf::L1Threshold_JET, TrigConf::L1Threshold_jJ, TrigConf::L1Threshold_jLJ, TrigConf::L1Threshold_jTAU, TrigConf::L1Threshold_jTE, TrigConf::L1Threshold_jXE, TrigConf::L1Threshold_TAU, TrigConf::L1Threshold_TE, TrigConf::L1Threshold_XE, and TrigConf::L1Threshold_XS.
|
using | ptree = boost::property_tree::ptree |
|
|
| L1Threshold_Calo ()=delete |
| Constructor. More...
|
|
| L1Threshold_Calo (const std::string &name, const std::string &type, std::weak_ptr< L1ThrExtraInfoBase > extraInfo, const ptree &data) |
| Constructor initialized with configuration data. More...
|
|
virtual | ~L1Threshold_Calo () override=default |
| Destructor. 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...
|
|
virtual std::string | className () const override |
| A string that is the name of the class. 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 |
|
|
virtual void | update () override |
| Update the internal data after modification of the data object. More...
|
|
Definition at line 188 of file L1ThresholdBase.h.
◆ ptree
◆ L1Threshold_Calo() [1/2]
TrigConf::L1Threshold_Calo::L1Threshold_Calo |
( |
| ) |
|
|
delete |
◆ L1Threshold_Calo() [2/2]
Constructor initialized with configuration data.
L1Threshold_Calo base class.
- Parameters
-
name | threshold name |
type | threshold type name |
extraInfo | The information that is specific for this threshold type |
data | The data containing the L1 threshold |
Definition at line 213 of file L1ThresholdBase.cxx.
◆ ~L1Threshold_Calo()
virtual TrigConf::L1Threshold_Calo::~L1Threshold_Calo |
( |
| ) |
|
|
overridevirtualdefault |
◆ className()
virtual std::string TrigConf::L1Threshold::className |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
A string that is the name of the class.
Reimplemented from TrigConf::DataStructure.
Reimplemented in TrigConf::L1Threshold_MU, TrigConf::L1Threshold_gTE, TrigConf::L1Threshold_gXE, TrigConf::L1Threshold_jTE, TrigConf::L1Threshold_jXE, TrigConf::L1Threshold_gLJ, TrigConf::L1Threshold_gJ, TrigConf::L1Threshold_jLJ, TrigConf::L1Threshold_jJ, TrigConf::L1Threshold_cTAU, TrigConf::L1Threshold_jTAU, TrigConf::L1Threshold_eTAU, TrigConf::L1Threshold_jEM, TrigConf::L1Threshold_eEM, TrigConf::L1Threshold_internal, TrigConf::L1Threshold_NIM, TrigConf::L1Threshold_ZBTopo, TrigConf::L1Threshold_ZB, TrigConf::L1Threshold_TE, TrigConf::L1Threshold_XS, TrigConf::L1Threshold_XE, TrigConf::L1Threshold_JET, TrigConf::L1Threshold_TAU, and TrigConf::L1Threshold_EM.
Definition at line 153 of file L1ThresholdBase.h.
154 {
return "L1Threshold"; }
◆ clear()
void TrigConf::DataStructure::clear |
( |
| ) |
|
|
virtualinherited |
◆ createThreshold()
static method to create type-specific L1Thresholds
- Parameters
-
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) |
- Returns
- shared ptr of the created threshold (returns ownership)
Definition at line 28 of file L1ThresholdBase.cxx.
32 return std::make_shared<L1Threshold_EM>(
name,
type, extraInfo,
data );
35 return std::make_shared<L1Threshold_TAU>(
name,
type, extraInfo,
data );
38 return std::make_shared<L1Threshold_XE>(
name,
type, extraInfo,
data );
41 return std::make_shared<L1Threshold_JET>(
name,
type, extraInfo,
data );
44 return std::make_shared<L1Threshold_XS>(
name,
type, extraInfo,
data );
47 return std::make_shared<L1Threshold_TE>(
name,
type, extraInfo,
data );
50 return std::make_shared<L1Threshold_eEM>(
name,
type, extraInfo,
data );
53 return std::make_shared<L1Threshold_jEM>(
name,
type, extraInfo,
data );
56 return std::make_shared<L1Threshold_eTAU>(
name,
type, extraInfo,
data );
59 return std::make_shared<L1Threshold_jTAU>(
name,
type, extraInfo,
data );
62 return std::make_shared<L1Threshold_cTAU>(
name,
type, extraInfo,
data );
65 return std::make_shared<L1Threshold_jJ>(
name,
type, extraInfo,
data );
68 return std::make_shared<L1Threshold_jLJ>(
name,
type, extraInfo,
data );
71 return std::make_shared<L1Threshold_gJ>(
name,
type, extraInfo,
data );
74 return std::make_shared<L1Threshold_gLJ>(
name,
type, extraInfo,
data );
77 return std::make_shared<L1Threshold_jXE>(
name,
type, extraInfo,
data );
80 return std::make_shared<L1Threshold_jTE>(
name,
type, extraInfo,
data );
83 return std::make_shared<L1Threshold_gXE>(
name,
type, extraInfo,
data );
86 return std::make_shared<L1Threshold_gTE>(
name,
type, extraInfo,
data );
89 return std::make_shared<L1Threshold_MU>(
name,
type, extraInfo,
data );
92 return std::make_shared<L1Threshold_ZB>(
name,
type, extraInfo,
data );
94 if(
type ==
"ZBTopo" )
95 return std::make_shared<L1Threshold_ZBTopo>(
name,
type, extraInfo,
data );
97 static const std::string NIMtypes[] = {
"BCM",
"BCMCMB",
"LUCID",
"ZDC",
"BPTX",
"CALREQ",
"MBTS",
"MBTSSI",
"NIM" };
101 return std::make_shared<L1Threshold_NIM>(
name,
type, extraInfo,
data );
103 if(
type ==
"internal" )
104 return std::make_shared<L1Threshold_internal>(
name,
type, extraInfo,
data );
106 static const std::string noSpecialImp[] = {
"JET",
"XS",
"TOPO",
"MULTTOPO",
"MUTOPO",
"R2TOPO",
"ALFA",
"NSWMon",
"LArSat"};
110 return std::make_shared<L1Threshold>(
name,
type, extraInfo,
data );
112 throw std::runtime_error(
"Threshold " +
name +
" is not of a valid L1 threshold type: " +
type);
◆ data()
const ptree& TrigConf::DataStructure::data |
( |
| ) |
const |
|
inlineinherited |
Access to the underlying data, if needed.
Definition at line 83 of file DataStructure.h.
85 throw std::runtime_error(
"Trying to access data of uninitialized object of type " +
className());
◆ empty()
bool TrigConf::DataStructure::empty |
( |
| ) |
const |
|
inlineinherited |
◆ getAttribute() [1/2]
const std::string & TrigConf::DataStructure::getAttribute |
( |
const std::string & |
key, |
|
|
bool |
ignoreIfMissing = false , |
|
|
const std::string & |
def = "" |
|
) |
| const |
|
inherited |
Definition at line 136 of file DataStructure.cxx.
138 const auto &
obj =
data().get_child_optional(
key);
140 if( ignoreIfMissing ) {
143 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" +
key +
"' does not exist" );
147 if ( !
obj.get().empty() ) {
148 if (
obj.get().front().first.empty() ) {
149 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" +
key +
"' is not a simple attribute but a list [], it needs to be accessed via getList(\"" +
key +
"\") -> vector<DataStructure>");
151 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" +
key +
"' is not a simple attribute but an object {}, it needs to be accessed via getObject(\"" +
key +
"\") -> DataStructure");
154 return obj.get().data();
◆ getAttribute() [2/2]
template<class T >
T TrigConf::DataStructure::getAttribute |
( |
const std::string & |
key, |
|
|
bool |
ignoreIfMissing = false , |
|
|
const T & |
def = T() |
|
) |
| const |
|
inlineinherited |
Access to simple attribute.
- Parameters
-
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.
153 const auto &
obj =
data().get_child_optional(
key);
155 if( ignoreIfMissing ) {
158 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" +
key +
"' does not exist" );
161 return obj.get().get_value<
T>();
◆ getAttribute_optional()
template<class T >
std::optional<T> TrigConf::DataStructure::getAttribute_optional |
( |
const std::string & |
key | ) |
const |
|
inlineinherited |
Definition at line 165 of file DataStructure.h.
166 const auto &
obj =
data().get_child_optional(
key);
170 auto v =
obj.get().get_value_optional<
T>();
171 return v ? std::optional(std::move(*
v)) : std::nullopt;
◆ getKeys()
std::vector< std::string > TrigConf::DataStructure::getKeys |
( |
| ) |
const |
|
inherited |
◆ getList()
std::vector< TrigConf::DataStructure > TrigConf::DataStructure::getList |
( |
const std::string & |
pathToChild, |
|
|
bool |
ignoreIfMissing = false |
|
) |
| const |
|
inherited |
Access to array structure.
- Parameters
-
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.
160 std::vector<TrigConf::DataStructure> childList;
161 const auto &
list =
data().get_child_optional(pathToChild);
163 if ( ignoreIfMissing ) {
166 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' does not exist.");
176 if (
list.get().empty() ) {
177 if (
list.get().get_value<std::string>() !=
"" ) {
179 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' is not a list [] but a simple attribute, it needs to be accessed via [\"" + pathToChild +
"\"] -> string");
183 }
else if ( !
list.get().front().first.empty() ) {
184 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' is not a list [] but an object {}, it needs to be accessed via getObject(\"" + pathToChild +
"\") -> DataStructure");
187 childList.reserve(
list.get().size());
189 for(
auto & childData :
list.get() )
190 childList.emplace_back( childData.second );
◆ getList_optional()
Definition at line 197 of file DataStructure.cxx.
202 return std::optional<std::vector<TrigConf::DataStructure> >(
getList(pathToChild));
◆ getObject()
Access to configuration object.
- Parameters
-
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.
*bool ignoreIfMissing = true;
*
if(
const DataStructure & child =
ds.getObject(
"path.to.child", ignoreIfMissing) ) {
cout << child["key"] << endl;
}
Definition at line 207 of file DataStructure.cxx.
209 const auto &
obj =
data().get_child_optional(pathToChild);
211 if ( ignoreIfMissing ) {
214 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' does not exist.");
218 if(
obj.get().get_value<std::string>() !=
"" ) {
219 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' is not an object {} but a simple attribute, it needs to be accessed via [\"" + pathToChild +
"\"] -> string");
222 if (
obj.get().front().first.empty() ) {
223 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' is not an object {} but a list [], it needs to be accessed via getList(\"" + pathToChild +
"\") -> vector<DataStructure>");
225 return {
obj.get() };
◆ getObject_optional()
Definition at line 230 of file DataStructure.cxx.
233 if(
const auto &
obj =
data().get_child_optional(pathToChild)) {
235 if(
obj.get().get_value<std::string>() !=
"" ) {
236 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' is not an object {} but a simple attribute, it needs to be accessed via [\"" + pathToChild +
"\"] -> string");
239 if (
obj.get().front().first.empty() ) {
240 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" + pathToChild +
"' is not an object {} but a list [], it needs to be accessed via getList(\"" + pathToChild +
"\") -> vector<DataStructure>");
242 return std::optional<TrigConf::DataStructure>(
obj.get());
◆ getValue() [1/2]
std::string TrigConf::DataStructure::getValue |
( |
| ) |
const |
|
inherited |
Access to simple content.
- Returns
- string that is the content of the structure
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.
81 const std::string
value =
data().get_value<std::string>();
◆ getValue() [2/2]
template<class T >
T TrigConf::DataStructure::getValue |
( |
| ) |
const |
|
inlineinherited |
◆ getValue_optional()
template<class T >
std::optional<T> TrigConf::DataStructure::getValue_optional |
( |
| ) |
const |
|
inlineinherited |
access to content of the note Will return false if the value could not be converted into T
Definition at line 116 of file DataStructure.h.
117 auto v =
data().get_value_optional<
T>();
118 return v ? std::optional<T>(std::move(*
v)) : std::nullopt;
◆ hasAttribute()
bool TrigConf::DataStructure::hasAttribute |
( |
const std::string & |
key | ) |
const |
|
inherited |
Check for attribute.
- Parameters
-
key | The path to the attribute name, relative to the current one in form "path.to.child" |
- Returns
- true if path
key
exists and is an attribute
Definition at line 86 of file DataStructure.cxx.
87 const auto & child =
data().get_child_optional(
key );
90 return child.get().empty();
◆ hasChild()
bool TrigConf::DataStructure::hasChild |
( |
const std::string & |
path | ) |
const |
|
inherited |
Check if child exists.
- Parameters
-
path | The path to the child, relative to the current one in form "path.to.child" |
- Returns
- true if path exists
Definition at line 114 of file DataStructure.cxx.
115 const auto & child =
data().get_child_optional(
path );
◆ isInitialized()
bool TrigConf::DataStructure::isInitialized |
( |
| ) |
const |
|
inlineinherited |
◆ isNull()
bool TrigConf::DataStructure::isNull |
( |
const std::string & |
key | ) |
const |
|
inherited |
Check if an attribute is null.
- Parameters
-
key | The path to the attribute name, relative to the current one in form "path.to.child" |
- Returns
- true if path
key
exists and is null
If 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.
95 auto child =
data().get_child_optional(
key );
99 return child->get_value<std::string>() ==
"null";
◆ isValid()
bool TrigConf::DataStructure::isValid |
( |
| ) |
const |
|
inlineinherited |
◆ isValue()
bool TrigConf::DataStructure::isValue |
( |
| ) |
const |
|
inherited |
Check for attribute.
- Returns
- true if the structure is just a value
Definition at line 74 of file DataStructure.cxx.
75 return data().empty();
◆ load()
void TrigConf::L1Threshold_Calo::load |
( |
| ) |
|
|
private |
Definition at line 241 of file L1ThresholdBase.cxx.
243 if(
type() ==
"internal" ) {
246 m_thrValue = gev2MeVThrVal( getAttribute<double>(
"value",
true, 0) );
248 if(
const auto & thrVs =
data().get_child_optional(
"thrValues") ) {
249 for(
auto &
x : thrVs.get() ) {
250 auto value = gev2MeVThrVal(
x.second.get_child(
"value").get_value<
float>() );
251 auto etamin =
x.second.get_child(
"etamin").get_value<
unsigned int>();
252 auto etamax =
x.second.get_child(
"etamax").get_value<
unsigned int>();
253 auto priority =
x.second.get_child(
"priority").get_value<
unsigned int>();
257 if(
const auto &
ranges =
data().get_child_optional(
"ranges") ) {
259 for(
auto &
x :
ranges.get() ) {
260 auto etamin =
x.second.get_child(
"etamin").get_value<
unsigned int>();
261 auto etamax =
x.second.get_child(
"etamax").get_value<
unsigned int>();
◆ mapping()
unsigned int TrigConf::L1Threshold::mapping |
( |
| ) |
const |
|
inlineinherited |
Accessor to the mapping number The mapping is unique within a type.
Definition at line 163 of file L1ThresholdBase.h.
◆ name()
const std::string & TrigConf::DataStructure::name |
( |
| ) |
const |
|
finalvirtualinherited |
◆ operator bool()
TrigConf::DataStructure::operator bool |
( |
| ) |
const |
|
inlineexplicitinherited |
◆ operator[]()
std::string TrigConf::DataStructure::operator[] |
( |
const std::string & |
key | ) |
const |
|
inherited |
Access to simple attribute.
- Parameters
-
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.
125 if ( !
obj.empty() ) {
126 if (
obj.front().first.empty() ) {
127 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" +
key +
"' is not a simple attribute but a list [], it needs to be accessed via getList(\"" +
key +
"\") -> vector<DataStructure>");
129 throw std::runtime_error(
className() +
"#" +
name() +
": structure '" +
key +
"' is not a simple attribute but an object {}, it needs to be accessed via getObject(\"" +
key +
"\") -> DataStructure");
◆ ownsData()
bool TrigConf::DataStructure::ownsData |
( |
| ) |
const |
|
inlineinherited |
◆ print()
void TrigConf::DataStructure::print |
( |
std::ostream & |
os = std::cout | ) |
const |
|
virtualinherited |
◆ printElement()
void TrigConf::DataStructure::printElement |
( |
const std::string & |
key, |
|
|
const ptree & |
data, |
|
|
uint |
level = 0 , |
|
|
std::ostream & |
os = std::cout |
|
) |
| |
|
staticinherited |
Static function to print a ptree
object.
- Parameters
-
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.
281 constexpr
char del =
'"';
283 const std::string
value =
data.get_value<std::string>();
287 os << del <<
key << del <<
": " << del <<
value << del;
292 bool isArray (
data.begin()->first.empty() );
295 os << del <<
key << del <<
": ";
296 os << (isArray ?
"[" :
"{") << std::endl;
298 size_t childCounter =
data.size();
299 for(
const boost::property_tree::ptree::value_type &
x :
data ) {
301 if( --childCounter )
os <<
",";
305 os << (isArray ?
"]" :
"}");
◆ printRaw()
void TrigConf::DataStructure::printRaw |
( |
std::ostream & |
os = std::cout | ) |
const |
|
inherited |
◆ setData() [1/2]
void TrigConf::DataStructure::setData |
( |
const ptree & |
data | ) |
|
|
inherited |
◆ setData() [2/2]
void TrigConf::DataStructure::setData |
( |
ptree && |
data | ) |
|
|
inherited |
◆ setName()
void TrigConf::DataStructure::setName |
( |
const std::string & |
n | ) |
|
|
inherited |
◆ thrValue()
float TrigConf::L1Threshold_Calo::thrValue |
( |
int |
eta = 0 | ) |
const |
|
overridevirtual |
Accessor to the threshold value for eta-dependent threholds.
- Parameters
-
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.
◆ thrValue100MeV()
unsigned int TrigConf::L1Threshold_Calo::thrValue100MeV |
( |
int |
eta = 0 | ) |
const |
|
virtual |
◆ thrValueCounts()
unsigned int TrigConf::L1Threshold_Calo::thrValueCounts |
( |
int |
eta = 0 | ) |
const |
|
virtual |
◆ thrValueMeV()
unsigned int TrigConf::L1Threshold_Calo::thrValueMeV |
( |
int |
eta = 0 | ) |
const |
|
virtual |
◆ thrValues()
access to the list of ThresholdValues in GeV
Definition at line 294 of file L1ThresholdBase.cxx.
297 thresholdValuesGeV.addRangeValue(
r.value() / 1000.0f,
r.etaMin(),
r.etaMax(),
r.priority(),
r.symmetric());
299 return thresholdValuesGeV;
◆ thrValues100MeV()
◆ thrValuesCounts()
◆ thrValuesMeV()
◆ type()
const std::string& TrigConf::L1Threshold::type |
( |
| ) |
const |
|
inlineinherited |
◆ update()
void TrigConf::L1Threshold_Calo::update |
( |
| ) |
|
|
overrideprotectedvirtual |
Update the internal data after modification of the data object.
Reimplemented from TrigConf::L1Threshold.
Reimplemented in TrigConf::L1Threshold_gTE, TrigConf::L1Threshold_gXE, TrigConf::L1Threshold_jTE, TrigConf::L1Threshold_jXE, TrigConf::L1Threshold_gLJ, TrigConf::L1Threshold_gJ, TrigConf::L1Threshold_jLJ, TrigConf::L1Threshold_jJ, TrigConf::L1Threshold_cTAU, TrigConf::L1Threshold_jTAU, TrigConf::L1Threshold_eTAU, TrigConf::L1Threshold_jEM, TrigConf::L1Threshold_eEM, TrigConf::L1Threshold_JET, TrigConf::L1Threshold_TAU, and TrigConf::L1Threshold_EM.
Definition at line 222 of file L1ThresholdBase.cxx.
◆ m_dataPtr
const ptree* TrigConf::DataStructure::m_dataPtr { nullptr } |
|
protectedinherited |
◆ m_dataSPtr
std::shared_ptr<ptree> TrigConf::DataStructure::m_dataSPtr { nullptr } |
|
protectedinherited |
◆ m_etaDepThrValue
◆ m_extraInfo
◆ m_initialized
bool TrigConf::DataStructure::m_initialized { false } |
|
protectedinherited |
if initialized, the underlying ptree is has been assigned to (can be empty)
Definition at line 254 of file DataStructure.h.
◆ m_input
std::string TrigConf::L1Threshold_Calo::m_input {""} |
|
protected |
◆ m_mapping
unsigned int TrigConf::L1Threshold::m_mapping {0} |
|
privateinherited |
unique identifier amongst thresholds of the same type
Definition at line 184 of file L1ThresholdBase.h.
◆ m_name
std::string TrigConf::DataStructure::m_name {""} |
|
protectedinherited |
◆ m_thrValue
unsigned int TrigConf::L1Threshold_Calo::m_thrValue {0} |
|
protected |
◆ m_type
std::string TrigConf::L1Threshold::m_type {""} |
|
privateinherited |
The documentation for this class was generated from the following files:
const ptree & data() const
Access to the underlying data, if needed.
virtual ValueWithEtaDependence< unsigned int > thrValuesCounts() const
access to the list of ThresholdValues in energy units
void setOutsideRangeValue(const T &value)
bool isInitialized() const
path
python interpreter configuration --------------------------------------—
std::string find(const std::string &s)
return a remapped string
bool empty() const
Check if children exist.
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.
T getAttribute(const std::string &key, bool ignoreIfMissing=false, const T &def=T()) const
Access to simple attribute.
const std::string & type() const
Accessor to the threshold type.
std::shared_ptr< ptree > m_dataSPtr
virtual const std::string & name() const final
unsigned int m_mapping
unique identifier amongst thresholds of the same type
const T & at(int eta) const
virtual void update() override
Update the internal data after modification of the data object.
unsigned int m_thrValue
threshold value in MeV
ValueWithEtaDependence< unsigned int > m_etaDepThrValue
eta-dependent threshold value in MeV
virtual std::string className() const
A string that is the name of the class.
std::weak_ptr< L1ThrExtraInfoBase > m_extraInfo
unsigned int energyInCounts(unsigned int energyMeV, unsigned int energyResolutionMeV)
helper funtion to translate energies into counts
std::vector< DataStructure > getList(const std::string &pathToChild, bool ignoreIfMissing=false) const
Access to array structure.
bool m_initialized
if initialized, the underlying ptree is has been assigned to (can be empty)
std::string m_type
threshold type
void addRangeValue(const T &value, int etaMin, int etaMax, unsigned int priority, bool symmetric=true)
virtual void clear()
Clearing the configuration data.
virtual unsigned int thrValueMeV(int eta=0) const
virtual ValueWithEtaDependence< unsigned int > thrValues100MeV() const
access to the list of ThresholdValues in 100 MeV (for L1Topo multiplicity)
DataStructure()
Default constructor, leading to an uninitialized configuration object.
setBGCode setTAP setLVL2ErrorBits bool
L1Threshold()=default
Constructor.
virtual void update()
Update the internal data after modification of the data object.
const std::string & name() const