 |
ATLAS Offline Software
|
Go to the documentation of this file.
17 ATH_MSG_ERROR (
"Size mismatch between m_WPDecorKeys and m_WPCuts! Please check the configuration.");
18 return StatusCode::FAILURE;
26 return StatusCode::SUCCESS;
34 if (!ditauJetsReadHandle.
isValid()) {
35 ATH_MSG_ERROR (
"Could not retrieve DiTauJetContainer with key " << ditauJetsReadHandle.
key());
36 return StatusCode::FAILURE;
42 std::vector<SG::WriteDecorHandle<xAOD::DiTauJetContainer, char> > WPDecors;
45 WPDecors.emplace_back (
k, ctx);
51 for (
auto ditau : *shallowCopy.first) {
57 scoreDecor(*xDiTau) =
score;
62 dec(*xDiTau) = decision;
67 delete shallowCopy.first;
68 delete shallowCopy.second;
70 return StatusCode::SUCCESS;
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
const_pointer_type cptr()
Dereference the pointer.
SG::WriteDecorHandleKey< xAOD::DiTauJetContainer > m_scoreDecorKey
SG::WriteDecorHandleKeyArray< xAOD::DiTauJetContainer > m_WPDecorKeys
::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?
ToolHandle< DiTauWPDecorator > m_tDiTauWPDecoratorTool
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.
Gaudi::Property< std::vector< float > > m_WPCuts
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
virtual StatusCode addBranches(const EventContext &ctx) const override