|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "hltinterface/IInfoRegister.h"
11 #include "hltinterface/ContainerFactory.h"
16 ISvcLocator* pSvcLocator ) :
17 ::HypoBase(
name, pSvcLocator ){}
25 return StatusCode::SUCCESS;
32 ATH_CHECK( previousDecisionsHandle.isValid() );
33 ATH_MSG_DEBUG(
"Running with "<< previousDecisionsHandle->size() <<
" previous decisions");
40 std::vector<ITrigLArNoiseBurstHypoTool::FlagNoiseInfo> toolInput;
42 ATH_CHECK( previousDecisionsHandle->size() == 1 );
43 const auto previousDecision = previousDecisionsHandle->at(0);
45 auto roiELInfo = findLink<TrigRoiDescriptorCollection>( previousDecision,
initialRoIString() );
56 unsigned int flag(*flagHandle);
58 toolInput.emplace_back(
d,
flag, roi, previousDecision );
60 ATH_MSG_DEBUG(
"Found "<<toolInput.size()<<
" inputs to tools");
65 return StatusCode::SUCCESS;
virtual StatusCode execute(const EventContext &context) const override
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
const std::string & hypoAlgNodeName()
virtual StatusCode initialize() override
const SG::ReadHandleKey< TrigCompositeUtils::DecisionContainer > & decisionInput() const
methods for derived classes to access handles of the base class input other read/write handles may be...
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
const SG::WriteHandleKey< TrigCompositeUtils::DecisionContainer > & decisionOutput() const
methods for derived classes to access handles of the base class output other read/write handles may b...
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
const std::string & initialRoIString()
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
TrigLArNoiseBurstAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< bool > m_noiseBurstDetected
ToolHandleArray< ITrigLArNoiseBurstHypoTool > m_hypoTools