 |
ATLAS Offline Software
|
Go to the documentation of this file.
18 :: HypoBase (
name, pSvcLocator) {}
27 return StatusCode::SUCCESS;
41 ATH_CHECK(h_TLAPhotons.
record(std::make_unique<xAOD::PhotonContainer>(),
42 std::make_unique<xAOD::PhotonAuxContainer>()));
47 ATH_CHECK(previousDecisionHandle.isValid());
60 for (
const auto previousDecision : *previousDecisionHandle)
66 ATH_MSG_DEBUG(
"This decision has " << prevPhotons.size() <<
" photons");
69 if (prevPhotons.size() != 1) {
70 ATH_MSG_ERROR(
"Did not locate exactly one photon for this Decision Object, found " << prevPhotons.size());
71 return StatusCode::FAILURE;
75 auto prevPhotonLink = prevPhotons.at(0).link;
77 photonPrev = *prevPhotonLink;
81 *copiedPhoton = *photonPrev;
90 ATH_MSG_DEBUG(
"Copied photon with pT: " << copiedPhoton->
pt() <<
" from decision " << nDecision);
103 return StatusCode::SUCCESS;
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.
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())
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.
ElementLink implementation for ROOT usage.
const std::string & featureString()
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Photon_v1 Photon
Definition of the current "egamma version".
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
ToolHandleArray< TrigEgammaTLAPhotonHypoTool > m_hypoTools
virtual StatusCode execute(const EventContext &context) const override
virtual double pt() const override final
The transverse momentum ( ) of the particle.
SG::WriteHandleKey< xAOD::PhotonContainer > m_TLAPhotonsKey
size_type size() const noexcept
Returns the number of elements in the collection.
TrigEgammaTLAPhotonHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)