|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   29       ANA_MSG_ERROR (
"The prescale decoration should not be empty");
 
   30       return StatusCode::FAILURE;
 
   35       ANA_MSG_ERROR (
"Either a list of triggers or trigger formula need to be provided");
 
   36       return StatusCode::FAILURE;
 
   41       ANA_MSG_ERROR (
"Provide either only a list of triggers or only a trigger formula");
 
   42       return StatusCode::FAILURE;
 
   64       std::vector<std::string> formulaVector = {
m_trigFormula.value()};
 
   66       return StatusCode::SUCCESS;
 
   86             if (!it->second(*evtInfo))
 
   88               return invalidTriggerPrescale();
 
  106     return StatusCode::SUCCESS;
 
  117     for (
size_t i = 0; 
i < m_trigListAll.size(); 
i++)
 
  119       (m_prescaleAccessors[
i]) (*evtInfo) = (m_prescaleFunctions[
i]) (evtInfo, m_trigListAll[
i]);
 
  122     return StatusCode::SUCCESS;
 
  
def retrieve(aClass, aKey=None)
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::string find(const std::string &s)
return a remapped string
Gaudi::Property< std::vector< std::string > > m_trigListAll
list of all triggers or trigger chains
std::unordered_map< std::string, SG::ConstAccessor< bool > > m_selectionAccessors
the accessors for m_selectionDecoration and m_trigList combination
Gaudi::Property< bool > m_prescaleMC
whether to prescale MC instead of unprescale dat
Select isolated Photons, Electrons and Muons.
Gaudi::Property< std::string > m_selectionDecoration
the decoration for trigger selection
std::vector< SG::Decorator< float > > m_prescaleAccessors
the accessors for m_prescaleDecoration and m_trigList combination
::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
std::string substitute(const std::string &str, const std::string &pattern, const std::string &with)
effects: substitute all occurences of "pattern" with "with" in the string "str" returns: the substitu...
Gaudi::Property< std::string > m_trigFormula
list of all triggers or trigger chains