 |
ATLAS Offline Software
|
Go to the documentation of this file.
14 return StatusCode::SUCCESS;
21 ATH_CHECK( previousDecisionsHandle.isValid() );
22 ATH_MSG_DEBUG(
"Running with "<< previousDecisionsHandle->size() <<
" previous decisions");
28 std::vector<TrigGenericHypoTool::HypoToolInfo> hypoToolInput;
34 if(trigComposite->
size()==0)
continue;
35 if(trigComposite->
size() > 1){
36 ATH_MSG_ERROR(
"Expect at most 1 TrigComposite, but received: "<<trigComposite->
size());
37 return StatusCode::FAILURE;
43 hypoToolInput.emplace_back(newd, tc, previousDecision );
53 return StatusCode::SUCCESS;
const std::string & featureString()
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.
virtual StatusCode execute(const EventContext &context) const 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...
TrigGenericHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
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())
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_trigCompKey
StatusCode hypoBaseOutputProcessing(SG::WriteHandle< TrigCompositeUtils::DecisionContainer > &outputHandle, MSG::Level lvl=MSG::DEBUG) const
Base class function to be called once slice specific code has finished. Handles debug printing and va...
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
Class used to describe composite objects in the HLT.
ElementLink implementation for ROOT usage.
virtual StatusCode initialize() override
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
std::set< DecisionID > DecisionIDContainer
const std::string & hypoAlgNodeName()
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
const T * at(size_type n) const
Access an element, as an rvalue.
ToolHandleArray< TrigGenericHypoTool > m_hypoTools
size_type size() const noexcept
Returns the number of elements in the collection.
ElementLink< DecisionContainer > decisionToElementLink(const Decision *d, const EventContext &ctx)
Takes a raw pointer to a Decision and returns an ElementLink to the Decision.