ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
egamma
egammaMVACalib
egammaMVACalib
egammaMVASvc.h
Go to the documentation of this file.
1
// Dear Emacs, this is -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef EGAMMAMVACALIB_EGAMMAMVASVC_H
8
#define EGAMMAMVACALIB_EGAMMAMVASVC_H
9
10
#include "
xAODEgamma/EgammaEnums.h
"
11
#include "
EgammaAnalysisInterfaces/IegammaMVASvc.h
"
12
#include "
EgammaAnalysisInterfaces/IegammaMVACalibTool.h
"
13
// Framework includes
14
#include "
AsgServices/AsgService.h
"
15
#include "
AsgTools/PropertyWrapper.h
"
16
17
#include "
xAODEgamma/PhotonFwd.h
"
18
19
20
#include <string>
21
22
23
class
egammaMVASvc
:
public
extends<asg::AsgService, IegammaMVASvc>
24
{
25
public
:
26
using
extends::extends;
// base class constructor
27
28
virtual
~egammaMVASvc
()
override
{};
29
virtual
StatusCode
initialize
()
override
;
30
31
33
StatusCode
getEnergy
(
const
xAOD::CaloCluster
& cluster,
34
const
xAOD::Egamma
& eg,
35
double
& mvaE,
36
const
egammaMVACalib::GlobalEventInfo
& gei =
egammaMVACalib::GlobalEventInfo
())
const
override final;
37
39
StatusCode
getEnergy
(
const
xAOD
::
CaloCluster
& cluster,
40
const
xAOD
::EgammaParameters::EgammaType egType,
41
double
& mvaE,
42
const
egammaMVACalib
::GlobalEventInfo& gei =
egammaMVACalib
::GlobalEventInfo())
const
override final;
43
49
StatusCode
execute
(
xAOD
::
CaloCluster
& cluster,
50
const
xAOD
::
Egamma
& eg,
51
const
egammaMVACalib
::GlobalEventInfo& gei =
egammaMVACalib
::GlobalEventInfo())
const
override final;
52
57
StatusCode
execute
(
xAOD
::
CaloCluster
& cluster,
58
const
xAOD
::EgammaParameters::EgammaType egType,
59
const
egammaMVACalib
::GlobalEventInfo& gei =
egammaMVACalib
::GlobalEventInfo())
const
override final;
60
61
62
private
:
63
65
ToolHandle<
IegammaMVACalibTool
>
m_mvaElectron
{
this
,
66
"ElectronTool"
,
""
,
"Tool to handle MVA trees for electrons"
};
67
69
ToolHandle<IegammaMVACalibTool>
m_mvaFwdElectron
{
this
,
70
"FwdElectronTool"
,
""
,
"Tool to handle MVA trees for forward electrons"
};
71
73
ToolHandle<IegammaMVACalibTool>
m_mvaUnconvertedPhoton
{
this
,
74
"UnconvertedPhotonTool"
,
""
,
"Tool to handle MVA trees for unconverted photons"
};
75
77
ToolHandle<IegammaMVACalibTool>
m_mvaConvertedPhoton
{
this
,
78
"ConvertedPhotonTool"
,
""
,
"Tool to handle MVA trees for converted photons"
};
79
80
Gaudi::Property<float>
m_maxConvR
{
this
,
81
"MaxConvRadius"
, 800.0,
82
"The maximum conversion radius for a photon to be considered converted"
};
83
84
Gaudi::Property<int>
m_removeTRTConvBarrel
{
this
,
85
"RemoveTRTConvBarrel"
, -1,
86
"Remove TRT converted photons in the barrel: no=0, yes=1, automatic=-1"
};
87
88
Gaudi::Property<std::string>
m_folder
{
this
,
89
"folder"
,
""
,
"folder for weight files"
};
90
91
95
bool
isConvCalib
(
const
xAOD::Photon
& ph)
const
;
96
97
StatusCode
resolve_flags
();
98
99
100
};
101
102
#endif
AsgService.h
EgammaEnums.h
IegammaMVACalibTool.h
IegammaMVASvc.h
PhotonFwd.h
PropertyWrapper.h
CaloCluster
Principal data class for CaloCell clusters.
Definition
Calorimeter/CaloEvent/CaloEvent/CaloCluster.h:79
IegammaMVACalibTool
A tool used by the egammaMVASvc to help manage the MVAs.
Definition
IegammaMVACalibTool.h:19
egammaMVASvc
Definition
egammaMVASvc.h:24
egammaMVASvc::m_mvaElectron
ToolHandle< IegammaMVACalibTool > m_mvaElectron
MVA tool for electron.
Definition
egammaMVASvc.h:65
egammaMVASvc::~egammaMVASvc
virtual ~egammaMVASvc() override
Definition
egammaMVASvc.h:28
egammaMVASvc::initialize
virtual StatusCode initialize() override
Definition
egammaMVASvc.cxx:18
egammaMVASvc::execute
StatusCode execute(xAOD::CaloCluster &cluster, const xAOD::Egamma &eg, const egammaMVACalib::GlobalEventInfo &gei=egammaMVACalib::GlobalEventInfo()) const override final
Main execute.
Definition
egammaMVASvc.cxx:202
egammaMVASvc::m_mvaUnconvertedPhoton
ToolHandle< IegammaMVACalibTool > m_mvaUnconvertedPhoton
MVA tool for unconverted photon.
Definition
egammaMVASvc.h:73
egammaMVASvc::m_maxConvR
Gaudi::Property< float > m_maxConvR
Definition
egammaMVASvc.h:80
egammaMVASvc::resolve_flags
StatusCode resolve_flags()
Definition
egammaMVASvc.cxx:62
egammaMVASvc::m_removeTRTConvBarrel
Gaudi::Property< int > m_removeTRTConvBarrel
Definition
egammaMVASvc.h:84
egammaMVASvc::getEnergy
StatusCode getEnergy(const xAOD::CaloCluster &cluster, const xAOD::Egamma &eg, double &mvaE, const egammaMVACalib::GlobalEventInfo &gei=egammaMVACalib::GlobalEventInfo()) const override final
Compute the calibrated energy.
Definition
egammaMVASvc.cxx:105
egammaMVASvc::m_mvaConvertedPhoton
ToolHandle< IegammaMVACalibTool > m_mvaConvertedPhoton
MVA tool for converted photon.
Definition
egammaMVASvc.h:77
egammaMVASvc::m_mvaFwdElectron
ToolHandle< IegammaMVACalibTool > m_mvaFwdElectron
MVA tool for forward electron.
Definition
egammaMVASvc.h:69
egammaMVASvc::m_folder
Gaudi::Property< std::string > m_folder
Definition
egammaMVASvc.h:88
egammaMVASvc::isConvCalib
bool isConvCalib(const xAOD::Photon &ph) const
Decide if the photon is converted or not.
Definition
egammaMVASvc.cxx:94
const
Egamma
Definition
ClusMomentumPlots.cxx:11
egammaMVACalib
Definition
GlobalEventInfo.h:8
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::CaloCluster
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloCluster.h:19
xAOD::Egamma
Egamma_v1 Egamma
Definition of the current "egamma version".
Definition
Egamma.h:17
xAOD::Photon
Photon_v1 Photon
Definition of the current "egamma version".
Definition
Event/xAOD/xAODEgamma/xAODEgamma/Photon.h:17
egammaMVACalib::GlobalEventInfo
A structure holding some global event information.
Definition
GlobalEventInfo.h:10
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0