|
ATLAS Offline Software
|
Go to the documentation of this file.
19 ISvcLocator* pSvcLocator ) :
20 ::HypoBase(
name, pSvcLocator ) {
29 return StatusCode::SUCCESS;
41 std::make_unique<xAOD::JetAuxContainer>()));
46 ATH_CHECK(previousDecisionHandle.isValid());
47 ATH_MSG_DEBUG(
"Running with " << previousDecisionHandle->size() <<
" previous decisions");
56 for (
const auto previousDecision : *previousDecisionHandle)
61 ATH_MSG_DEBUG(
"This decision has " << prevJets.size() <<
" jets");
64 for (
const auto&
jet : prevJets)
66 auto prevJetLink =
jet.link;
68 jetPrev = *prevJetLink;
77 bool duplicate_found(
false);
78 for (
unsigned idx_tla_jet = 0; idx_tla_jet!=h_TLAJets->size(); idx_tla_jet++){
79 const xAOD::Jet* tla_jet = h_TLAJets->at(idx_tla_jet);
81 ATH_MSG_DEBUG(
"Jet already found! Adding to decision but not to TLA jet container...");
83 duplicate_found =
true;
86 if (duplicate_found)
continue;
89 h_TLAJets->push_back(copiedJet);
90 *copiedJet = *jetPrev;
93 ATH_MSG_DEBUG(
"Copied jet with pT: " << copiedJet->
pt() <<
" and eta "<<copiedJet->
eta()<<
" from decision " << nDecision);
103 ATH_MSG_DEBUG(
"Saved "<<nSavedJets<<
" TLA jets from "<<nDecision<<
" input decisions.");
106 ATH_MSG_DEBUG(
"Attaching any available b-tag information to TLA jets.");
124 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 T * get(size_type n) const
Access an element, as an rvalue.
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.
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".
Gaudi::Property< bool > m_attach_btag
virtual double pt() const
The transverse momentum ( ) of the particle.
Jet_v1 Jet
Definition of the current "jet version".
ToolHandle< TrigBtagTLATool > m_btag_record_tool