ATLAS Offline Software
MaxCellDecorator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // MaxCellDecorator.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_MAXCELLDECORATOR_H
10 #define DERIVATIONFRAMEWORK_MAXCELLDECORATOR_H
11 
12 #include <string>
13 
16 //
17 #include "GaudiKernel/EventContext.h"
25 
26 namespace DerivationFramework {
27 
29  : public AthAlgTool
30  , public IAugmentationTool
31 {
32 public:
33  MaxCellDecorator(const std::string& t,
34  const std::string& n,
35  const IInterface* p);
39  virtual StatusCode addBranches() const;
40 
41  struct calculation
42  {
43  float maxEcell_time = -9999.9;
44  float maxEcell_energy = -9999.9;
45  int maxEcell_gain = -1;
47  float maxEcell_x = -9999.9;
48  float maxEcell_y = -9999.9;
49  float maxEcell_z = -9999.9;
50  };
51 
52 private:
54  this,
55  "CablingKey",
56  "LArOnOffIdMap",
57  "SG Key of LArOnOffIdMapping object"
58  };
59 
61  m_SGKey_photons{ this, "SGKey_photons", "", "SG key of photon container" };
62 
64  this,
65  "SGKey_electrons",
66  "",
67  "SG key of electron container"
68  };
69 
74  this,
75  "SGKey_egammaClusters",
76  "",
77  "SG key of cluster container associated to standard egammas"
78  };
79 
81  Gaudi::Property<double> m_dRLRTegClusegClusMax{
82  this,
83  "dRLRTegClusegClusMax",
84  0.05,
85  "Maximum delta R to match LRT egammaCluster to std egammaCluster"
86  };
87 
90  this,
91  "SGKey_photons_decorations_noConf",
92  {},
93  "SG keys for photon decorations not really configurable"
94  };
95 
98  this,
99  "SGKey_electrons_decorations_noConf",
100  {},
101  "SG keys for electrons decorations not really configurable"
102  };
103 
104  calculation decorateObject(const xAOD::CaloCluster* cluster,
105  const EventContext& ctx) const;
106 };
107 }
108 
109 #endif // DERIVATIONFRAMEWORK_MAXCELLDECORATOR_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::MaxCellDecorator::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: MaxCellDecorator.h:53
DerivationFramework::MaxCellDecorator::initialize
StatusCode initialize()
Definition: MaxCellDecorator.cxx:31
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
DerivationFramework::MaxCellDecorator::m_SGKey_electrons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
Definition: MaxCellDecorator.h:97
DerivationFramework::MaxCellDecorator::calculation::maxEcell_z
float maxEcell_z
Definition: MaxCellDecorator.h:49
IAugmentationTool.h
DerivationFramework::MaxCellDecorator::calculation::maxEcell_gain
int maxEcell_gain
Definition: MaxCellDecorator.h:45
DerivationFramework::MaxCellDecorator::calculation::maxEcell_energy
float maxEcell_energy
Definition: MaxCellDecorator.h:44
DerivationFramework::MaxCellDecorator::m_SGKey_egammaClusters
SG::ReadHandleKey< xAOD::CaloClusterContainer > m_SGKey_egammaClusters
This should be only for using run 2 reprocessing, which misses the cell link from LRT electron cluste...
Definition: MaxCellDecorator.h:73
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
DerivationFramework::MaxCellDecorator::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition: MaxCellDecorator.h:63
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
DerivationFramework::MaxCellDecorator::m_dRLRTegClusegClusMax
Gaudi::Property< double > m_dRLRTegClusegClusMax
matching cone size
Definition: MaxCellDecorator.h:81
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::MaxCellDecorator::~MaxCellDecorator
~MaxCellDecorator()
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
EgammaContainer.h
DerivationFramework::MaxCellDecorator::MaxCellDecorator
MaxCellDecorator(const std::string &t, const std::string &n, const IInterface *p)
Definition: MaxCellDecorator.cxx:18
DerivationFramework::MaxCellDecorator::calculation::maxEcell_x
float maxEcell_x
Definition: MaxCellDecorator.h:47
DerivationFramework::MaxCellDecorator::calculation
Definition: MaxCellDecorator.h:42
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
LArOnOffIdMapping.h
CaloCluster.h
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::MaxCellDecorator::finalize
StatusCode finalize()
Definition: MaxCellDecorator.cxx:80
AthAlgTool.h
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
DerivationFramework::MaxCellDecorator::calculation::maxEcell_onlId
uint64_t maxEcell_onlId
Definition: MaxCellDecorator.h:46
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::MaxCellDecorator::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: MaxCellDecorator.cxx:87
DerivationFramework::MaxCellDecorator::m_SGKey_photons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
Definition: MaxCellDecorator.h:61
ReadCondHandleKey.h
DerivationFramework::MaxCellDecorator
Definition: MaxCellDecorator.h:31
DerivationFramework::MaxCellDecorator::calculation::maxEcell_y
float maxEcell_y
Definition: MaxCellDecorator.h:48
SG::ReadCondHandleKey< LArOnOffIdMapping >
DerivationFramework::MaxCellDecorator::m_SGKey_photons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_photons_decorations
Definition: MaxCellDecorator.h:89
DerivationFramework::MaxCellDecorator::calculation::maxEcell_time
float maxEcell_time
Definition: MaxCellDecorator.h:43
WriteDecorHandleKeyArray.h
CaloClusterContainer.h
DerivationFramework::MaxCellDecorator::decorateObject
calculation decorateObject(const xAOD::CaloCluster *cluster, const EventContext &ctx) const
Definition: MaxCellDecorator.cxx:188
AthAlgTool
Definition: AthAlgTool.h:26