|
ATLAS Offline Software
|
Go to the documentation of this file.
15 m_trigDecisionTool(
"Trig::TrigDecisionTool/TrigDecisionTool"),
18 m_evtInfoName(
"EventInfo"),
20 m_storePrescaleInfo(false),
26 "Decide if we also want to decorate the xAOD::EventInfo object with the pass/fail information" );
30 "Decide if we also want to decorate the xAOD::EventInfo object with the full-chain prescale information" );
57 return StatusCode::SUCCESS;
68 return StatusCode::SUCCESS;
83 std::vector<bool> trigResultsVec(
m_triggerList.value().size(),
false );
84 std::vector<float> trigPrescalesVec(
m_triggerList.value().size(), 0. );
87 bool eventPasses =
false;
91 trigResultsVec[
i] =
true;
108 const size_t decoSize = trigResultsVec.size();
110 ATH_MSG_FATAL(
"Different number of trigger results and variable names");
111 return StatusCode::FAILURE;
114 for( std::size_t
i=0;
i<decoSize; ++
i ) {
116 decoPassTrig(*evtInfo) =
static_cast<char>(trigResultsVec[
i]);
120 decoPrescaleTrig(*evtInfo) =
static_cast<float>(trigPrescalesVec[
i]);
127 ATH_MSG_DEBUG(
"Event passes trigger selection: " << eventPasses );
129 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
virtual void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
TriggerSelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
#define ATH_MSG_VERBOSE(x)
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.
virtual StatusCode finalize()
Athena algorithm's finalize hook.
virtual StatusCode execute()
Athena algorithm's execute hook.
virtual StatusCode initialize()
Athena algorithm's initalize hook.
BooleanProperty m_storePrescaleInfo
Decide if we also want to decorate the xAOD::EventInfo object with the (full-chain) prescale informat...