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 > 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 (const std::string &targetName) const
std::pair< bool, float > getStreamPrescale (const std::string &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 26 of file HLTPrescale.h.

Member Typedef Documentation

◆ PrescaleMap_t

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

Definition at line 42 of file HLTPrescale.h.

◆ value_type

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

Definition at line 43 of file HLTPrescale.h.

Constructor & Destructor Documentation

◆ HLTPrescale() [1/3]

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

Definition at line 16 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 62 of file HLTPrescale.cxx.

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

◆ disabled()

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

Definition at line 59 of file HLTPrescale.h.

59{ return m_prescale<0; }

◆ getRerunPrescale()

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

Definition at line 35 of file HLTPrescale.cxx.

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

◆ getRerunPrescales()

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

Definition at line 56 of file HLTPrescale.h.

56{ return m_rerun_prescale; }

◆ getStreamPrescale()

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

Definition at line 43 of file HLTPrescale.cxx.

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

◆ getStreamPrescales()

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

Definition at line 57 of file HLTPrescale.h.

57{ 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 53 of file HLTPrescale.h.

53{ return m_pass_through; }

◆ prescale()

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

Definition at line 52 of file HLTPrescale.h.

52{ return m_prescale; }

◆ setPassThrough()

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

Definition at line 47 of file HLTPrescale.h.

47{ m_pass_through = pass_through; return *this; }

◆ setPrescale()

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

Definition at line 46 of file HLTPrescale.h.

46{ m_prescale = prescale; return *this; }

◆ setRerunPrescale()

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

Definition at line 29 of file HLTPrescale.cxx.

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

◆ setStreamPrescale()

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

Definition at line 23 of file HLTPrescale.cxx.

23 {
25 return *this;
26}

Member Data Documentation

◆ m_pass_through

float TrigConf::HLTPrescale::m_pass_through
private

Definition at line 66 of file HLTPrescale.h.

◆ m_prescale

float TrigConf::HLTPrescale::m_prescale
private

Definition at line 65 of file HLTPrescale.h.

◆ m_rerun_prescale

PrescaleMap_t TrigConf::HLTPrescale::m_rerun_prescale
private

Definition at line 67 of file HLTPrescale.h.

◆ m_stream_prescale

PrescaleMap_t TrigConf::HLTPrescale::m_stream_prescale
private

Definition at line 68 of file HLTPrescale.h.


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