ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConf::HLTPrescale Class Reference

#include <HLTPrescale.h>

Collaboration diagram for TrigConf::HLTPrescale:

Public Types

typedef std::unordered_map< std::string, float, CxxUtils::TransparentStringHash, std::equal_to<> > PrescaleMap_t
typedef PrescaleMap_t::value_type value_type

Public Member Functions

 HLTPrescale (float prescale=1, float pass_through=-1)
 HLTPrescale (const HLTPrescale &o)=default
 HLTPrescale (HLTPrescale &&o) noexcept=default
 ~HLTPrescale ()=default
HLTPrescaleoperator= (const HLTPrescale &)=default
HLTPrescaleoperator= (HLTPrescale &&) noexcept=default
HLTPrescalesetPrescale (float prescale)
HLTPrescalesetPassThrough (float pass_through)
HLTPrescalesetRerunPrescale (const std::string &targetName, float ps)
HLTPrescalesetStreamPrescale (const std::string &streamName, float ps)
float prescale () const
float pass_through () const
std::pair< bool, float > getRerunPrescale (std::string_view targetName) const
std::pair< bool, float > getStreamPrescale (std::string_view streamName) const
const PrescaleMap_tgetRerunPrescales () const
const PrescaleMap_tgetStreamPrescales () const
bool disabled () const
std::string __str__ () const

Private Attributes

float m_prescale
float m_pass_through
PrescaleMap_t m_rerun_prescale
PrescaleMap_t m_stream_prescale

Detailed Description

Definition at line 30 of file HLTPrescale.h.

Member Typedef Documentation

◆ PrescaleMap_t

typedef std::unordered_map<std::string, float, CxxUtils::TransparentStringHash, std::equal_to<> > TrigConf::HLTPrescale::PrescaleMap_t

Definition at line 46 of file HLTPrescale.h.

◆ value_type

typedef PrescaleMap_t::value_type TrigConf::HLTPrescale::value_type

Definition at line 47 of file HLTPrescale.h.

Constructor & Destructor Documentation

◆ HLTPrescale() [1/3]

TrigConf::HLTPrescale::HLTPrescale ( float prescale = 1,
float pass_through = -1 )

Definition at line 17 of file HLTPrescale.cxx.

◆ HLTPrescale() [2/3]

TrigConf::HLTPrescale::HLTPrescale ( const HLTPrescale & o)
default

◆ HLTPrescale() [3/3]

TrigConf::HLTPrescale::HLTPrescale ( HLTPrescale && o)
defaultnoexcept

◆ ~HLTPrescale()

TrigConf::HLTPrescale::~HLTPrescale ( )
default

Member Function Documentation

◆ __str__()

string HLTPrescale::__str__ ( ) const

Definition at line 63 of file HLTPrescale.cxx.

63 {
64 stringstream s;
65 s << *this;
66 return s.str();
67}

◆ disabled()

bool TrigConf::HLTPrescale::disabled ( ) const
inline

Definition at line 63 of file HLTPrescale.h.

63{ return m_prescale<0; }

◆ getRerunPrescale()

std::pair< bool, float > TrigConf::HLTPrescale::getRerunPrescale ( std::string_view targetName) const

Definition at line 36 of file HLTPrescale.cxx.

36 {
37 PrescaleMap_t::const_iterator i = m_rerun_prescale.find(targetName);
38 bool found = (i!=m_rerun_prescale.end());
39 float ps = found ? i->second : 0;
40 return std::make_pair(found,ps);
41}
PrescaleMap_t m_rerun_prescale
Definition HLTPrescale.h:71

◆ getRerunPrescales()

const PrescaleMap_t & TrigConf::HLTPrescale::getRerunPrescales ( ) const
inline

Definition at line 60 of file HLTPrescale.h.

60{ return m_rerun_prescale; }

◆ getStreamPrescale()

std::pair< bool, float > TrigConf::HLTPrescale::getStreamPrescale ( std::string_view streamName) const

Definition at line 44 of file HLTPrescale.cxx.

44 {
45 PrescaleMap_t::const_iterator i = m_stream_prescale.find(streamName);
46 bool found = i!=m_stream_prescale.end();
47 float ps = found ? i->second : 0;
48 return std::make_pair(found,ps);
49}
PrescaleMap_t m_stream_prescale
Definition HLTPrescale.h:72

◆ getStreamPrescales()

const PrescaleMap_t & TrigConf::HLTPrescale::getStreamPrescales ( ) const
inline

Definition at line 61 of file HLTPrescale.h.

61{ return m_stream_prescale; }

◆ operator=() [1/2]

HLTPrescale & TrigConf::HLTPrescale::operator= ( const HLTPrescale & )
default

◆ operator=() [2/2]

HLTPrescale & TrigConf::HLTPrescale::operator= ( HLTPrescale && )
defaultnoexcept

◆ pass_through()

float TrigConf::HLTPrescale::pass_through ( ) const
inline

Definition at line 57 of file HLTPrescale.h.

57{ return m_pass_through; }

◆ prescale()

float TrigConf::HLTPrescale::prescale ( ) const
inline

Definition at line 56 of file HLTPrescale.h.

56{ return m_prescale; }

◆ setPassThrough()

HLTPrescale & TrigConf::HLTPrescale::setPassThrough ( float pass_through)
inline

Definition at line 51 of file HLTPrescale.h.

51{ m_pass_through = pass_through; return *this; }

◆ setPrescale()

HLTPrescale & TrigConf::HLTPrescale::setPrescale ( float prescale)
inline

Definition at line 50 of file HLTPrescale.h.

50{ m_prescale = prescale; return *this; }

◆ setRerunPrescale()

TrigConf::HLTPrescale & TrigConf::HLTPrescale::setRerunPrescale ( const std::string & targetName,
float ps )

Definition at line 30 of file HLTPrescale.cxx.

30 {
31 m_rerun_prescale[targetName] = ps;
32 return *this;
33}

◆ setStreamPrescale()

TrigConf::HLTPrescale & TrigConf::HLTPrescale::setStreamPrescale ( const std::string & streamName,
float ps )

Definition at line 24 of file HLTPrescale.cxx.

24 {
26 return *this;
27}

Member Data Documentation

◆ m_pass_through

float TrigConf::HLTPrescale::m_pass_through
private

Definition at line 70 of file HLTPrescale.h.

◆ m_prescale

float TrigConf::HLTPrescale::m_prescale
private

Definition at line 69 of file HLTPrescale.h.

◆ m_rerun_prescale

PrescaleMap_t TrigConf::HLTPrescale::m_rerun_prescale
private

Definition at line 71 of file HLTPrescale.h.

◆ m_stream_prescale

PrescaleMap_t TrigConf::HLTPrescale::m_stream_prescale
private

Definition at line 72 of file HLTPrescale.h.


The documentation for this class was generated from the following files: