|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef TRIGGER_ANALYSIS_ALGORITHMS__TRIG_PRESCALES_ALG_H
9 #define TRIGGER_ANALYSIS_ALGORITHMS__TRIG_PRESCALES_ALG_H
38 ToolHandle<IPileupReweightingTool>
m_pileupReweightingTool {
this,
"pileupReweightingTool",
"PileupReweightingTool",
"the pileup reweighting tool to be used"};
42 Gaudi::Property<std::vector<std::string>>
m_trigList {
this,
"triggers", {},
"trigger list"};
46 Gaudi::Property<std::vector<std::string>>
m_trigListAll {
this,
"triggersAll", {},
"all trigger list"};
50 Gaudi::Property<std::string>
m_trigFormula {
this,
"triggersFormula",
"",
"produce prescale based on formula instead of per trigger, e.g. (trigA||trigB)"};
58 Gaudi::Property<std::string>
m_prescaleDecoration {
this,
"prescaleDecoration",
"",
"decoration to store prescales"};
62 Gaudi::Property<bool>
m_prescaleMC {
this,
"prescaleMC",
false,
"whether to do prescaling of MC instead of unprescaling of data"};
constexpr float invalidTriggerPrescale()
the decoration value to use if there is no valid trigger prescale information
Gaudi::Property< std::string > m_prescaleDecoration
the decoration for trigger prescales
std::vector< SG::AuxElement::Decorator< float > > m_prescaleAccessors
the accessors for m_prescaleDecoration and m_trigList combination
Gaudi::Property< std::vector< std::string > > m_trigListAll
list of all triggers or trigger chains
Gaudi::Property< bool > m_prescaleMC
whether to prescale MC instead of unprescale dat
Select isolated Photons, Electrons and Muons.
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
the (new) base class for EventLoop algorithms
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< IPileupReweightingTool > m_pileupReweightingTool
the pile-up reweighting tool
std::vector< std::function< float(const xAOD::EventInfo *, const std::string &)> > m_prescaleFunctions
list of helper functions to compute the prescales
StatusCode initialize() override
Class describing the basic event information.
Gaudi::Property< std::vector< std::string > > m_trigList
list of prescaled triggers or trigger chains
StatusCode execute() override
an algorithm for retrieving trigger prescales
Gaudi::Property< std::string > m_trigFormula
list of all triggers or trigger chains