 |
ATLAS Offline Software
|
Go to the documentation of this file.
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;
def retrieve(aClass, aKey=None)
virtual void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
virtual StatusCode initialize() override
Athena algorithm's initalize hook.
TriggerSelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode execute() override
Athena algorithm's execute hook.
#define ATH_MSG_VERBOSE(x)
virtual StatusCode finalize() override
Athena algorithm's finalize hook.
StringProperty m_varPrefix
Prefix used for the decoration variables.
std::vector< std::string > m_varNameList
The list of all variables names.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Helper class to provide type-safe access to aux data.
::StatusCode StatusCode
StatusCode definition for legacy code.
StringArrayProperty m_triggerList
The list of triggers to cut on.
StringProperty m_evtInfoName
Name of the xAOD::EventInfo object that we want to decorate.
BooleanProperty m_decoEvtInfo
Decide if we also want to decorate the xAOD::EventInfo object with the pass/fail information.
virtual ~TriggerSelectionAlg()
Destructor:
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
The ToolHandle for the TrigDecisionTool.
Class describing the basic event information.
BooleanProperty m_storePrescaleInfo
Decide if we also want to decorate the xAOD::EventInfo object with the (full-chain) prescale informat...