ATLAS Offline Software
ElectronCnvTool.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id$
8 #ifndef XAODEGAMMACNV_ELECTRONCNVTOOL_H
9 #define XAODEGAMMACNV_ELECTRONCNVTOOL_H
10 
11 // System include(s):
12 #include <string>
13 
14 // Gaudi/Athena include(s):
16 #include "GaudiKernel/ToolHandle.h"
17 
18 // EDM include(s):
19 #include "egammaEvent/egamma.h"
21 
23 
24 namespace xAODMaker {
25 
34  class ElectronCnvTool : public AthAlgTool,
35  public virtual IElectronCnvTool {
36 
37  public:
39  ElectronCnvTool( const std::string& type, const std::string& name,
40  const IInterface* parent );
41 
43  virtual StatusCode convert( const egammaContainer* aod,
44  xAOD::ElectronContainer* xaod ) const override;
45 
47  virtual StatusCode convert( const egammaContainer* aod,
49  xAOD::ElectronContainer* xaodFrwd) const override;
50  private:
51 
53  void setParameters(const egamma&, xAOD::Electron& ) const;
55 
57  void setIsolations(const egamma& aodmuon, xAOD::Electron& xaodmuon) const;
58  void checkAndSetIsolation(egammaParameters::ParamDef aodParameter,xAOD::Iso::IsolationType xaodParameter, const egamma&, xAOD::Electron& ) const;
59 
61  void setTrackMatch(const egamma& aodmuon, xAOD::Electron& xaodmuon) const;
63 
65  void setLinks(const egamma&, xAOD::Electron& ) const;
67 
69  void setDerivedParameters(xAOD::Electron& ) const;
70 
73  std::string m_inDetTrackParticles ;
74  std::string m_caloClusters;
75  std::string m_caloClustersSofte;
76  std::string m_caloClustersFrwd;
77  std::string m_caloClustersOther;
78 
79  }; // class ElectronCnvTool
80 
81 
82 } // namespace xAODMaker
83 
84 #endif // XAODEGAMMACNV_ELECTRONCNVTOOL_H
xAODMaker::ElectronCnvTool::setDerivedParameters
void setDerivedParameters(xAOD::Electron &) const
Fills in some extra derived shower shape variables.
Definition: ElectronCnvTool.cxx:309
xAOD::EgammaParameters::ShowerShapeType
ShowerShapeType
Definition: EgammaEnums.h:27
xAODMaker::ElectronCnvTool::m_caloClusters
std::string m_caloClusters
Location/Key for xAOD::CaloClusters for electrons and photons
Definition: ElectronCnvTool.h:74
xAODMaker::ElectronCnvTool::m_caloClustersSofte
std::string m_caloClustersSofte
Location/Key for xAOD::CaloClusters for softe electrons.
Definition: ElectronCnvTool.h:75
xAODMaker::ElectronCnvTool::m_caloClustersOther
std::string m_caloClustersOther
Location/Key for xAOD::CaloClusters for other (trigger?) electrons.
Definition: ElectronCnvTool.h:77
egammaParameters::ParamDef
ParamDef
Definition: egammaParamDefs.h:99
xAODMaker::ElectronCnvTool
Implementation for the tool creating ElectronContainer from an AOD.
Definition: ElectronCnvTool.h:35
egamma.h
xAODMaker::ElectronCnvTool::m_caloClustersFrwd
std::string m_caloClustersFrwd
Location/Key for xAOD::CaloClusters for forward electrons.
Definition: ElectronCnvTool.h:76
xAODMaker::ElectronCnvTool::ElectronCnvTool
ElectronCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
Definition: ElectronCnvTool.cxx:24
xAODMaker
Definition: StoreGateSvc.h:72
xAODMaker::ElectronCnvTool::getNewLink
ElementLink< xAOD::TrackParticleContainer > getNewLink(const ElementLink< Rec::TrackParticleContainer > &oldLink, const std::string &name) const
Definition: ElectronCnvTool.cxx:298
xAODMaker::ElectronCnvTool::m_inDetTrackParticlesGSF
std::string m_inDetTrackParticlesGSF
Other Keys.
Definition: ElectronCnvTool.h:72
egamma
Definition: egamma.h:58
xAODMaker::ElectronCnvTool::checkAndSetIsolation
void checkAndSetIsolation(egammaParameters::ParamDef aodParameter, xAOD::Iso::IsolationType xaodParameter, const egamma &, xAOD::Electron &) const
Definition: ElectronCnvTool.cxx:209
xAODMaker::ElectronCnvTool::setLinks
void setLinks(const egamma &, xAOD::Electron &) const
Set the element links between the various particles.
Definition: ElectronCnvTool.cxx:242
xAODMaker::ElectronCnvTool::checkAndSetTrackMatch
void checkAndSetTrackMatch(egammaParameters::ParamDef aodParameter, xAOD::EgammaParameters::TrackCaloMatchType xaodParameter, const egamma &, xAOD::Electron &) const
Definition: ElectronCnvTool.cxx:232
xAOD::EgammaParameters::TrackCaloMatchType
TrackCaloMatchType
Definition: EgammaEnums.h:173
xAODMaker::ElectronCnvTool::convert
virtual StatusCode convert(const egammaContainer *aod, xAOD::ElectronContainer *xaod) const override
Function that fills an existing xAOD::ElectronContainer (xaod or xaodForward can be NULL)
Definition: ElectronCnvTool.cxx:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::Iso::IsolationType
IsolationType
Overall enumeration for isolation types in xAOD files.
Definition: IsolationType.h:26
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
egammaContainer
Definition: egammaContainer.h:41
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
egammaParamDefs.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
xAODMaker::ElectronCnvTool::checkAndSetParameter
void checkAndSetParameter(egammaParameters::ParamDef aodParameter, xAOD::EgammaParameters::ShowerShapeType xaodParameter, const egamma &, xAOD::Electron &) const
Definition: ElectronCnvTool.cxx:190
xAOD::Electron_v1
Definition: Electron_v1.h:34
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAODMaker::ElectronCnvTool::setIsolations
void setIsolations(const egamma &aodmuon, xAOD::Electron &xaodmuon) const
Fills in the isolation variables.
Definition: ElectronCnvTool.cxx:198
xAODMaker::IElectronCnvTool
Interface for the tool creating ElectronContainer from an AOD.
Definition: IElectronCnvTool.h:37
IElectronCnvTool.h
AthAlgTool
Definition: AthAlgTool.h:26
xAODMaker::ElectronCnvTool::setTrackMatch
void setTrackMatch(const egamma &aodmuon, xAOD::Electron &xaodmuon) const
Fills in the track match variables
Definition: ElectronCnvTool.cxx:218
xAODMaker::ElectronCnvTool::m_inDetTrackParticles
std::string m_inDetTrackParticles
Location/Key for xAOD::TrackParticles from ID.
Definition: ElectronCnvTool.h:73
xAODMaker::ElectronCnvTool::setParameters
void setParameters(const egamma &, xAOD::Electron &) const
Fills in the shower shape variables.
Definition: ElectronCnvTool.cxx:148