|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGCONFDATA_L1THRESHOLDBASE_H
6 #define TRIGCONFDATA_L1THRESHOLDBASE_H
23 unsigned int energyInCounts(
unsigned int energyMeV,
unsigned int energyResolutionMeV);
57 const T &
at(
int eta)
const;
91 return "L1ThrExtraInfoBase";
98 std::optional<std::reference_wrapper<const TrigConf::DataStructure>>
136 std::weak_ptr<L1ThrExtraInfoBase> extraInfo,
const ptree &
data );
148 std::weak_ptr<L1ThrExtraInfoBase> extraInfo,
const ptree &
data);
154 {
return "L1Threshold"; }
157 const std::string &
type()
const
170 virtual float thrValue(
int eta = 0)
const;
175 virtual void update()
override;
201 std::weak_ptr<L1ThrExtraInfoBase> extraInfo,
const ptree &
data);
212 virtual float thrValue(
int eta = 0)
const override;
224 virtual unsigned int thrValueMeV(
int eta = 0)
const;
244 virtual void update()
override;
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)
unsigned int mapping() const
Accessor to the mapping number The mapping is unique within a type.
std::vector< RangeValue > m_rangeValues
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)
static WP stringToWP(const std::string &)
const_iterator begin() const noexcept
static std::string wpToString(WP)
const std::string & type() const
Accessor to the threshold type.
class to implement a L1 threshold cut that varies with eta
bool const RAWDATA *ch2 const
unsigned int m_mapping
unique identifier amongst thresholds of the same type
const T & at(int eta) const
virtual ~L1Threshold_Calo() override=default
Destructor.
Forward iterator to traverse the main components of the trigger configuration.
virtual unsigned int thrValue100MeV(int eta=0) const
as above above but in 100 MeV
unsigned int priority() const
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
virtual void update() override
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 float thrValue(int eta=0) const override
Accessor to the threshold value for eta-dependent threholds.
virtual unsigned int thrValueCounts(int eta=0) const
virtual void update() override
Update the internal data after modification of the data object.
unsigned int m_thrValue
threshold value in MeV
std::optional< T > m_outsideRangeValue
ValueWithEtaDependence< unsigned int > m_etaDepThrValue
eta-dependent threshold value in MeV
std::optional< std::reference_wrapper< const T > > outsideRangeValue() const
virtual float thrValue(int eta=0) const
Accessor to the threshold value for eta-dependent threholds.
std::weak_ptr< L1ThrExtraInfoBase > m_extraInfo
std::vector< RangeValue >::const_iterator const_iterator
virtual ValueWithEtaDependence< float > thrValues() const
access to the list of ThresholdValues in GeV
boost::property_tree::ptree ptree
unsigned int energyInCounts(unsigned int energyMeV, unsigned int energyResolutionMeV)
helper funtion to translate energies into counts
virtual ~L1Threshold() override=default
Destructor.
RangeValue(const T &value, int etaMin, int etaMax, unsigned int priority, bool symmetric)
Base class for Trigger configuration data and wrapper around underlying representation.
std::string m_type
threshold type
void addRangeValue(const T &value, int etaMin, int etaMax, unsigned int priority, bool symmetric=true)
ValueWithEtaDependence(const std::string &name)
const_iterator end() const noexcept
L1Threshold_Calo()=delete
Constructor.
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)
IsolationLegacy()=default
boost::property_tree::ptree ptree
L1Threshold()=default
Constructor.
Standard L1 threshold configuration.
virtual const ValueWithEtaDependence< unsigned int > & thrValuesMeV() const
access to the list of ThresholdValues in MeV
const std::string & name() const