|
ATLAS Offline Software
|
#include <TriggerSelectionAlg.h>
|
| TriggerSelectionAlg (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor with parameters: More...
|
|
virtual | ~TriggerSelectionAlg () |
| Destructor: More...
|
|
virtual StatusCode | initialize () |
| Athena algorithm's initalize hook. More...
|
|
virtual StatusCode | execute () |
| Athena algorithm's execute hook. More...
|
|
virtual StatusCode | finalize () |
| Athena algorithm's finalize hook. More...
|
|
virtual StatusCode | sysInitialize () override |
| Initialization method invoked by the framework. More...
|
|
virtual void | setFilterPassed (bool state) const |
| Set the filter passed flag to the specified state. More...
|
|
void | setFilterDescription (const std::string &descr) |
| helper method to ease the setting of this filter's description in derived classes Note that this method should be called in the c-tor of derived classes More...
|
|
ServiceHandle< ICutFlowSvc > & | cutFlowSvc () |
| return a handle to an ICutFlowSvc instance More...
|
|
CutIdentifier | cutID () |
| return the CutIdentifier corresponding to the top-level cut of this filter algorithm More...
|
|
const SG::ReadHandleKey< xAOD::EventInfo > & | eventInfoKey () const |
| EventInfo key for use in derived classes. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
Definition at line 24 of file TriggerSelectionAlg.h.
◆ ICutFlowSvc_t
◆ StoreGateSvc_t
◆ TriggerSelectionAlg()
TriggerSelectionAlg::TriggerSelectionAlg |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters:
Definition at line 13 of file TriggerSelectionAlg.cxx.
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" );
◆ ~TriggerSelectionAlg()
TriggerSelectionAlg::~TriggerSelectionAlg |
( |
| ) |
|
|
virtual |
◆ cutFlowSvc()
◆ cutID()
return the CutIdentifier
corresponding to the top-level cut of this filter algorithm
Definition at line 116 of file AthFilterAlgorithm.h.
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ doNotResetSelfDescription()
void AthFilterAlgorithm::doNotResetSelfDescription |
( |
Gaudi::Details::PropertyBase & |
| ) |
|
|
inlineprivateinherited |
◆ eventInfoKey()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
StatusCode TriggerSelectionAlg::execute |
( |
| ) |
|
|
virtual |
Athena algorithm's execute hook.
Definition at line 72 of file TriggerSelectionAlg.cxx.
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;
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ finalize()
StatusCode TriggerSelectionAlg::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode TriggerSelectionAlg::initialize |
( |
| ) |
|
|
virtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ setFilterDescription()
void AthFilterAlgorithm::setFilterDescription |
( |
const std::string & |
descr | ) |
|
|
inherited |
helper method to ease the setting of this filter's description in derived classes Note that this method should be called in the c-tor of derived classes
helper function to ease the setting of this filter's description in derived classes
Definition at line 118 of file AthFilterAlgorithm.cxx.
127 ATH_MSG_INFO(
"problem setting filter description with cutflow-svc");
◆ setFilterPassed()
void AthFilterAlgorithm::setFilterPassed |
( |
bool |
state | ) |
const |
|
virtualinherited |
Set the filter passed flag to the specified state.
Definition at line 99 of file AthFilterAlgorithm.cxx.
101 AthAlgorithm::setFilterPassed(state);
104 const EventContext& ctx = Gaudi::Hive::currentContext();
◆ sysInitialize()
StatusCode AthFilterAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
Initialization method invoked by the framework.
This method is responsible for any bookkeeping of initialization required by the framework itself. It will in turn invoke the initialize() method of the derived algorithm, and of any sub-algorithms which it creates.
Reimplemented from AthAlgorithm.
Definition at line 65 of file AthFilterAlgorithm.cxx.
70 if ( Gaudi::StateMachine::INITIALIZED <= FSMState() )
return StatusCode::SUCCESS;
73 bindPropertiesTo( serviceLocator()->getOptsSvc() );
77 if ( !isEnabled( ) )
return StatusCode::SUCCESS;
85 ATH_MSG_INFO(
"problem registering myself with cutflow-svc");
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_cutFlowSvc
handle to the service holding tables of cut-flows for filtering algs.
Definition at line 86 of file AthFilterAlgorithm.h.
◆ m_cutID
◆ m_decoEvtInfo
BooleanProperty TriggerSelectionAlg::m_decoEvtInfo |
|
private |
◆ m_detStore
◆ m_eventInfoKey
◆ m_evtInfoName
StringProperty TriggerSelectionAlg::m_evtInfoName |
|
private |
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_filterDescr
std::string AthFilterAlgorithm::m_filterDescr |
|
privateinherited |
◆ m_resetSelfDescription
bool AthFilterAlgorithm::m_resetSelfDescription |
|
privateinherited |
◆ m_storePrescaleInfo
BooleanProperty TriggerSelectionAlg::m_storePrescaleInfo |
|
private |
◆ m_trigDecisionTool
◆ m_triggerList
StringArrayProperty TriggerSelectionAlg::m_triggerList |
|
private |
◆ m_varHandleArraysDeclared
◆ m_varNameList
std::vector<std::string> TriggerSelectionAlg::m_varNameList |
|
private |
◆ m_varPrefix
StringProperty TriggerSelectionAlg::m_varPrefix |
|
private |
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
virtual void setFilterPassed(bool state) const
Set the filter passed flag to the specified state.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
CutIdentifier cutID()
return the CutIdentifier corresponding to the top-level cut of this filter algorithm
#define ATH_MSG_VERBOSE(x)
@ IS_SIMULATION
true: simulation, false: data
std::string m_filterDescr
filter description: describes what this filter does.
StringProperty m_varPrefix
Prefix used for the decoration variables.
virtual void setOwner(IDataHandleHolder *o)=0
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.
ICutFlowSvc_t m_cutFlowSvc
handle to the service holding tables of cut-flows for filtering algs.
virtual StatusCode sysInitialize() override
Override sysInitialize.
Helper class to provide type-safe access to aux data.
AthFilterAlgorithm()
Default constructor:
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.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool m_resetSelfDescription
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
The ToolHandle for the TrigDecisionTool.
Class describing the basic event information.
CutIdentifier m_cutID
The CutIdentifier for this filter algorithm.
DataObjIDColl m_extendedExtraObjects
ServiceHandle< ICutFlowSvc > & cutFlowSvc()
return a handle to an ICutFlowSvc instance
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
BooleanProperty m_storePrescaleInfo
Decide if we also want to decorate the xAOD::EventInfo object with the (full-chain) prescale informat...