 |
ATLAS Offline Software
|
Go to the documentation of this file.
22 return StatusCode::SUCCESS;
27 const EventContext& ctx = Gaudi::Hive::currentContext();
31 if (!ditauJetsReadHandle.
isValid()) {
32 ATH_MSG_ERROR (
"Could not retrieve DiTauJetContainer with key " << ditauJetsReadHandle.
key());
33 return StatusCode::FAILURE;
42 for (
auto ditau : *shallowCopy.first) {
48 scoreDecor(*xDiTau) =
score;
51 delete shallowCopy.first;
52 delete shallowCopy.second;
54 return StatusCode::SUCCESS;
const_pointer_type cptr()
Dereference the pointer.
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_scoreDecorKey
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
SG::ReadHandleKey< xAOD::DiTauJetContainer > m_ditauContainerKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode addBranches() const override
virtual const std::string & key() const override final
Return the StoreGate ID for the referenced object.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, [[maybe_unused]] const EventContext &ctx)
Function making a shallow copy of a constant container.
ToolHandle< DiTauOnnxDiscriminantTool > m_tDiTauOnnxDiscriminantTool
const T * at(size_type n) const
Access an element, as an rvalue.
Handle class for reading from StoreGate.
virtual StatusCode initialize() override