42 return StatusCode::SUCCESS;
53 return StatusCode::SUCCESS;
68 std::vector<bool> trigResultsVec(
m_triggerList.value().size(),
false );
69 std::vector<float> trigPrescalesVec(
m_triggerList.value().size(), 0. );
72 bool eventPasses =
false;
76 trigResultsVec[i] =
true;
93 const size_t decoSize = trigResultsVec.size();
95 ATH_MSG_FATAL(
"Different number of trigger results and variable names");
96 return StatusCode::FAILURE;
99 for( std::size_t i=0; i<decoSize; ++i ) {
101 decoPassTrig(*evtInfo) =
static_cast<char>(trigResultsVec[i]);
105 decoPrescaleTrig(*evtInfo) =
static_cast<float>(trigPrescalesVec[i]);
112 ATH_MSG_DEBUG(
"Event passes trigger selection: " << eventPasses );
114 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
ServiceHandle< StoreGateSvc > & evtStore()
virtual void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
AthFilterAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::Decorator< T, ALLOC > Decorator
StringArrayProperty m_triggerList
The list of triggers to cut on.
BooleanProperty m_decoEvtInfo
Decide if we also want to decorate the xAOD::EventInfo object with the pass/fail information.
StringProperty m_evtInfoName
Name of the xAOD::EventInfo object that we want to decorate.
virtual ~TriggerSelectionAlg()
Destructor:
virtual StatusCode finalize() override
Athena algorithm's finalize hook.
StringProperty m_varPrefix
Prefix used for the decoration variables.
virtual StatusCode execute() override
Athena algorithm's execute hook.
TriggerSelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< std::string > m_varNameList
The list of all variables names.
BooleanProperty m_storePrescaleInfo
Decide if we also want to decorate the xAOD::EventInfo object with the (full-chain) prescale informat...
virtual StatusCode initialize() override
Athena algorithm's initalize hook.
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
The ToolHandle for the TrigDecisionTool.
EventInfo_v1 EventInfo
Definition of the latest event info version.