41 return StatusCode::SUCCESS;
48 return StatusCode::SUCCESS;
61 if (not previousDecisionsHandle.
isValid()) {
63 return StatusCode::SUCCESS;
65 ATH_MSG_DEBUG(
"Running with " << previousDecisionsHandle->size() <<
" implicit previous decisions");
74 std::vector<PEBInfoWriterToolBase::Input> toolInputs;
77 const uint8_t tt = (uint8_t) eventInfo->level1TriggerType();
80 for (
const Decision* previousDecision: *previousDecisionsHandle) {
83 auto roiEL = roiELInfo.link;
94 toolInputs.emplace_back(newd, eventContext, roiEL, previousDecision, tt);
103 ATH_MSG_DEBUG(
"RoI eta/phi = " << (*roiEL)->eta() <<
"/" << (*roiEL)->phi());
104 ATH_MSG_DEBUG(
"Added RoI, previous decision and dummy feature to new decision " << counter);
114 ATH_CHECK(tool->decide(eventContext, toolInputs));
121 ATH_MSG_DEBUG(
"Exit with " << outputHandle->size() <<
" decisions");
124 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
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.
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
const std::string & hypoAlgNodeName()
const std::string & featureString()
const std::string & roiString()
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...
ElementLink implementation for ROOT usage.
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...
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...
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...
HypoBase(const std::string &name, ISvcLocator *pSvcLocator)
constructor, to be called by sub-class constructors
virtual ~PEBInfoWriterAlg()
Standard destructor.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
ToolHandleArray< PEBInfoWriterToolBase > m_hypoTools
virtual StatusCode execute(const EventContext &eventContext) const override
virtual StatusCode finalize() override
PEBInfoWriterAlg(const std::string &name, ISvcLocator *svcLoc)
Standard constructor.
virtual StatusCode initialize() override
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual bool isValid() override final
Can the handle be successfully dereferenced?
pointer_type ptr()
Dereference the pointer.
bool setObjectLink(const std::string &name, const ElementLink< CONTAINER > &link)
Set the link to an object.
bool setDetail(const std::string &name, const TYPE &value)
Set an TYPE detail on the object.
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
xAOD::TrigComposite Decision
const std::string & roiString()
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 & featureString()
std::set< DecisionID > DecisionIDContainer
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
const std::string & hypoAlgNodeName()
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
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...
xAOD::TrigCompositeContainer DecisionContainer
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...