|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   30   return StatusCode::SUCCESS;
 
   39   ATH_CHECK(previousDecisionsHandle.isValid());
 
   41   if (previousDecisionsHandle->size() > 1)
 
   43     ATH_MSG_ERROR(
"Found " << previousDecisionsHandle->size() << 
" previous decisions. SPCountHypoAlg is a full-scan HypoAlg and expects exactly one previous decision.");
 
   44     return StatusCode::FAILURE;
 
   47   ATH_MSG_DEBUG(
"Running with " << previousDecisionsHandle->size() << 
" implicit ReadHandles for previous decisions");
 
   49   const auto viewSP = (previousDecisionsHandle->at(0))->objectLink<ViewContainer>(
viewString());
 
   53   ATH_MSG_DEBUG(
"spacepoint handle size: " << spacepointsHandle->size() << 
"...");
 
   59   d->setObjectLink(
featureString(), ViewHelper::makeLink<xAOD::TrigCompositeContainer>(*viewSP, spacepointsHandle, 0));
 
   72   return StatusCode::SUCCESS;
 
  
const std::string & featureString()
xAOD::TrigCompositeContainer DecisionContainer
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.
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
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...
auto makeHandle(const SG::View *view, const KEY &key, const EventContext &ctx)
Create a view handle from a handle key.
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...
virtual StatusCode initialize() override
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_spacePointsKey
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.
ToolHandleArray< SPCountHypoTool > m_hypoTools
virtual StatusCode execute(const EventContext &context) const override
xAOD::TrigCompositeAuxContainer DecisionAuxContainer
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
const std::string & viewString()
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
std::set< DecisionID > DecisionIDContainer
LinkInfo< T > findLink(const Decision *start, const std::string &linkName, const bool suppressMultipleLinksWarning=false)
Perform a recursive search for ElementLinks of type T and name 'linkName', starting from Decision obj...
const std::string & hypoAlgNodeName()
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.