 |
ATLAS Offline Software
|
Go to the documentation of this file.
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;
80 for (
const Decision* previousDecision: *previousDecisionsHandle) {
82 auto roiELInfo = findLink<TrigRoiDescriptorCollection>(previousDecision,
roiString());
83 auto roiEL = roiELInfo.link;
94 toolInputs.emplace_back(newd, eventContext, roiEL, previousDecision,
tt);
101 newd->setDetail<int32_t>(
"noCombo", 1);
103 ATH_MSG_DEBUG(
"RoI eta/phi = " << (*roiEL)->eta() <<
"/" << (*roiEL)->phi());
124 return StatusCode::SUCCESS;
const std::string & featureString()
xAOD::TrigCompositeContainer DecisionContainer
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
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 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.
const std::string & roiString()
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 finalize() override
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
PEBInfoWriterAlg(const std::string &name, ISvcLocator *svcLoc)
Standard constructor.
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.
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?
ElementLink implementation for ROOT usage.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Hypothesis algorithms take the output of reco algorithms and the decision from the preceeding InputMa...
xAOD::TrigComposite Decision
virtual ~PEBInfoWriterAlg()
Standard destructor.
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
virtual StatusCode execute(const EventContext &eventContext) const override
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.
uint16_t level1TriggerType() const
The Level-1 trigger type.
ToolHandleArray< PEBInfoWriterToolBase > m_hypoTools
size_type size() const noexcept
Returns the number of elements in the collection.