ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkEGamma
DerivationFrameworkEGamma
EGElectronLikelihoodToolWrapper.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Author: Giovanni Marchiori (giovanni.marchiori@cern.ch)
6
// Note: while EGSelectionToolWrapper permits to only store the boolean
7
// accept and the isEM-like mask (works for both isEM and likelihood selectors),
8
// this tool (EGElectronLikelihoodToolWrapper) allows also to store
9
// the double TResult output (i.e. the value of the likelihood or the ECIDS BDT)
10
// if StoreTResult is set to true. Otherwise one can simply use the other tool.
11
12
#ifndef DERIVATIONFRAMEWORK_EGELECTRONLIKELIHOODTOOLWRAPPER_H
13
#define DERIVATIONFRAMEWORK_EGELECTRONLIKELIHOODTOOLWRAPPER_H
14
#include "
DerivationFrameworkInterfaces/IAugmentationTool.h
"
15
//
16
#include "
StoreGate/ReadHandle.h
"
17
#include "
StoreGate/ReadHandleKey.h
"
18
#include "
StoreGate/WriteDecorHandle.h
"
19
#include "
StoreGate/WriteHandleKey.h
"
20
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
21
//
22
#include "
AsgTools/IAsgTool.h
"
23
#include "
AthenaBaseComps/AthAlgTool.h
"
24
#include "
EgammaAnalysisInterfaces/IAsgElectronLikelihoodTool.h
"
25
#include "GaudiKernel/ToolHandle.h"
26
#include "
xAODEgamma/EgammaContainer.h
"
27
//
28
#include <string>
29
30
namespace
DerivationFramework
{
31
32
class
EGElectronLikelihoodToolWrapper
:
public
extends<AthAlgTool, IAugmentationTool>
33
{
34
public
:
35
36
using
base_class::base_class;
37
38
virtual
StatusCode
initialize
()
override
final
;
39
virtual
StatusCode
addBranches
(
const
EventContext& ctx)
const
override
final
;
40
41
private
:
42
ToolHandle<IAsgElectronLikelihoodTool>
m_tool
{
43
this
,
44
"EGammaElectronLikelihoodTool"
,
45
""
,
46
"Electron Likelihood Selector"
47
};
48
49
SG::ReadHandleKey<xAOD::EgammaContainer>
m_ContainerName
{
this
,
50
"ContainerName"
,
51
""
,
52
"Input to decorate"
};
53
SG::ReadHandleKey<xAOD::EgammaContainer>
m_fudgedContainerName
{
this
,
54
"FudgedContainerName"
,
""
,
"Input with fudge factors applied"
};
55
56
57
// Write decoration handle keys
58
SG::WriteDecorHandleKey<xAOD::EgammaContainer>
59
m_decoratorPass
{
this
,
"decoratorPass"
,
m_ContainerName
,
""
,
""
};
60
SG::WriteDecorHandleKey<xAOD::EgammaContainer>
61
m_decoratorIsEM
{
this
,
"decoratorIsEM"
,
m_ContainerName
,
""
,
""
};
62
SG::WriteDecorHandleKey<xAOD::EgammaContainer>
63
m_decoratorResult
{
this
,
"decoratorResult"
,
m_ContainerName
,
""
,
""
};
64
SG::WriteDecorHandleKeyArray<xAOD::EgammaContainer, float>
65
m_decoratorMultipleOutputs
{
this
,
"decoratorMultipleOutputs"
,
m_ContainerName
, {},
""
};
66
Gaudi::Property<std::string>
m_cut
{
this
,
"CutType"
,
""
};
67
Gaudi::Property<bool>
m_storeTResult
{
this
,
"StoreTResult"
,
false
};
68
Gaudi::Property<bool>
m_storeMultipleOutputs
{
this
,
"StoreMultipleOutputs"
,
false
};
69
};
70
}
71
72
#endif
// DERIVATIONFRAMEWORK_EGELECTRONLIKELIHOODTOOLWRAPPER_H
AthAlgTool.h
EgammaContainer.h
IAsgElectronLikelihoodTool.h
IAsgTool.h
IAugmentationTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadHandle.h
Handle class for reading from StoreGate.
WriteDecorHandleKeyArray.h
WriteDecorHandle.h
Handle class for adding a decoration to an object.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::EGElectronLikelihoodToolWrapper
Definition
EGElectronLikelihoodToolWrapper.h:33
DerivationFramework::EGElectronLikelihoodToolWrapper::m_ContainerName
SG::ReadHandleKey< xAOD::EgammaContainer > m_ContainerName
Definition
EGElectronLikelihoodToolWrapper.h:49
DerivationFramework::EGElectronLikelihoodToolWrapper::m_fudgedContainerName
SG::ReadHandleKey< xAOD::EgammaContainer > m_fudgedContainerName
Definition
EGElectronLikelihoodToolWrapper.h:53
DerivationFramework::EGElectronLikelihoodToolWrapper::m_tool
ToolHandle< IAsgElectronLikelihoodTool > m_tool
Definition
EGElectronLikelihoodToolWrapper.h:42
DerivationFramework::EGElectronLikelihoodToolWrapper::m_storeTResult
Gaudi::Property< bool > m_storeTResult
Definition
EGElectronLikelihoodToolWrapper.h:67
DerivationFramework::EGElectronLikelihoodToolWrapper::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition
EGElectronLikelihoodToolWrapper.cxx:37
DerivationFramework::EGElectronLikelihoodToolWrapper::m_cut
Gaudi::Property< std::string > m_cut
Definition
EGElectronLikelihoodToolWrapper.h:66
DerivationFramework::EGElectronLikelihoodToolWrapper::m_storeMultipleOutputs
Gaudi::Property< bool > m_storeMultipleOutputs
Definition
EGElectronLikelihoodToolWrapper.h:68
DerivationFramework::EGElectronLikelihoodToolWrapper::m_decoratorPass
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_decoratorPass
Definition
EGElectronLikelihoodToolWrapper.h:59
DerivationFramework::EGElectronLikelihoodToolWrapper::m_decoratorIsEM
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_decoratorIsEM
Definition
EGElectronLikelihoodToolWrapper.h:61
DerivationFramework::EGElectronLikelihoodToolWrapper::m_decoratorMultipleOutputs
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer, float > m_decoratorMultipleOutputs
Definition
EGElectronLikelihoodToolWrapper.h:65
DerivationFramework::EGElectronLikelihoodToolWrapper::initialize
virtual StatusCode initialize() override final
Definition
EGElectronLikelihoodToolWrapper.cxx:21
DerivationFramework::EGElectronLikelihoodToolWrapper::m_decoratorResult
SG::WriteDecorHandleKey< xAOD::EgammaContainer > m_decoratorResult
Definition
EGElectronLikelihoodToolWrapper.h:63
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
SG::WriteDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Definition
StoreGate/StoreGate/WriteDecorHandleKeyArray.h:35
Generated on
for ATLAS Offline Software by
1.17.0