 |
ATLAS Offline Software
|
Go to the documentation of this file.
19 ISvcLocator* pSvcLocator ) :
20 ::HypoBase(
name, pSvcLocator ) {
28 return StatusCode::SUCCESS;
40 std::make_unique<xAOD::JetAuxContainer>()));
45 ATH_CHECK(previousDecisionHandle.isValid());
46 ATH_MSG_DEBUG(
"Running with " << previousDecisionHandle->size() <<
" previous decisions");
55 for (
const auto previousDecision : *previousDecisionHandle)
60 ATH_MSG_DEBUG(
"This decision has " << prevJets.size() <<
" jets");
63 for (
const auto&
jet : prevJets)
65 auto prevJetLink =
jet.link;
67 jetPrev = *prevJetLink;
76 bool duplicate_found(
false);
77 for (
unsigned idx_tla_jet = 0; idx_tla_jet!=h_TLAJets->size(); idx_tla_jet++){
78 const xAOD::Jet* tla_jet = h_TLAJets->at(idx_tla_jet);
80 ATH_MSG_DEBUG(
"Jet already found! Adding to decision but not to TLA jet container...");
82 duplicate_found =
true;
85 if (duplicate_found)
continue;
88 h_TLAJets->push_back(copiedJet);
89 *copiedJet = *jetPrev;
92 ATH_MSG_DEBUG(
"Copied jet with pT: " << copiedJet->
pt() <<
" and eta "<<copiedJet->
eta()<<
" from decision " << nDecision);
102 ATH_MSG_DEBUG(
"Saved "<<nSavedJets<<
" TLA jets from "<<nDecision<<
" input decisions.");
114 return StatusCode::SUCCESS;
virtual StatusCode execute(const EventContext &context) const override
SG::WriteHandleKey< xAOD::JetContainer > m_TLAjetsKey
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()
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())
virtual StatusCode initialize() override
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.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
const ElementLink< IParticleContainer > & getOriginalObjectLink(const IParticle ©)
This function should be used instead of xAOD::getOriginalObject when we want to use the "original obj...
virtual double eta() const
The pseudorapidity ( ) of the particle.
ElementLink implementation for ROOT usage.
const std::string & featureString()
TrigJetTLAHypoAlg(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandleArray< TrigJetTLAHypoTool > m_hypoTools
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.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
virtual double pt() const
The transverse momentum ( ) of the particle.
Jet_v1 Jet
Definition of the current "jet version".