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"
26 #include "xAODJet/Jet.h"
27 
28 namespace DerivationFramework {
29 
31  : public AthAlgTool
32  , public IAugmentationTool
33 {
34 public:
35  MaxCellDecorator(const std::string& t,
36  const std::string& n,
37  const IInterface* p);
41  virtual StatusCode addBranches() const;
42 
43  struct calculation
44  {
45  float maxEcell_time = -9999.9;
46  float maxEcell_energy = -9999.9;
47  int maxEcell_gain = -1;
49  float maxEcell_x = -9999.9;
50  float maxEcell_y = -9999.9;
51  float maxEcell_z = -9999.9;
52  };
53 
54 private:
56  this,
57  "CablingKey",
58  "LArOnOffIdMap",
59  "SG Key of LArOnOffIdMapping object"
60  };
61 
63  m_SGKey_photons{ this, "SGKey_photons", "", "SG key of photon container" };
64 
66  this,
67  "SGKey_electrons",
68  "",
69  "SG key of electron container"
70  };
71 
76  this,
77  "SGKey_egammaClusters",
78  "",
79  "SG key of cluster container associated to standard egammas"
80  };
81 
83  m_SGKey_taus{ this, "SGKey_taus", "", "SG key of tau container" };
84 
86  m_SGKey_jets{ this, "SGKey_jets", "", "SG key of jet container" };
87 
89  Gaudi::Property<double> m_dRLRTegClusegClusMax{
90  this,
91  "dRLRTegClusegClusMax",
92  0.05,
93  "Maximum delta R to match LRT egammaCluster to std egammaCluster"
94  };
95 
98  this,
99  "SGKey_photons_decorations_noConf",
100  {},
101  "SG keys for photon decorations not really configurable"
102  };
103 
106  this,
107  "SGKey_electrons_decorations_noConf",
108  {},
109  "SG keys for electrons decorations not really configurable"
110  };
111 
114  this,
115  "SGKey_taus_decorations_noConf",
116  {},
117  "SG keys for tau decorations not really configurable"
118  };
119 
122  this,
123  "SGKey_jets_decorations_noConf",
124  {},
125  "SG keys for jet decorations not really configurable"
126  };
127 
128  calculation decorateObject(const xAOD::CaloCluster* cluster,
129  const EventContext& ctx) const;
130 };
131 }
132 
133 #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:55
DerivationFramework::MaxCellDecorator::initialize
StatusCode initialize()
Definition: MaxCellDecorator.cxx:31
Jet.h
DerivationFramework::MaxCellDecorator::m_SGKey_electrons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_electrons_decorations
Definition: MaxCellDecorator.h:105
DerivationFramework::MaxCellDecorator::calculation::maxEcell_z
float maxEcell_z
Definition: MaxCellDecorator.h:51
IAugmentationTool.h
DerivationFramework::MaxCellDecorator::calculation::maxEcell_gain
int maxEcell_gain
Definition: MaxCellDecorator.h:47
DerivationFramework::MaxCellDecorator::calculation::maxEcell_energy
float maxEcell_energy
Definition: MaxCellDecorator.h:46
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:75
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
DerivationFramework::MaxCellDecorator::m_SGKey_electrons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_electrons
Definition: MaxCellDecorator.h:65
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:89
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:49
DerivationFramework::MaxCellDecorator::calculation
Definition: MaxCellDecorator.h:44
DerivationFramework::MaxCellDecorator::m_SGKey_taus
SG::ReadHandleKey< xAOD::TauJetContainer > m_SGKey_taus
Definition: MaxCellDecorator.h:83
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArOnOffIdMapping.h
DerivationFramework::MaxCellDecorator::m_SGKey_jets
SG::ReadHandleKey< xAOD::JetContainer > m_SGKey_jets
Definition: MaxCellDecorator.h:86
CaloCluster.h
DerivationFramework::MaxCellDecorator::m_SGKey_taus_decorations
SG::WriteDecorHandleKeyArray< xAOD::TauJetContainer > m_SGKey_taus_decorations
Definition: MaxCellDecorator.h:113
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:112
AthAlgTool.h
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
DerivationFramework::MaxCellDecorator::calculation::maxEcell_onlId
uint64_t maxEcell_onlId
Definition: MaxCellDecorator.h:48
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
TauJetContainer.h
DerivationFramework::MaxCellDecorator::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: MaxCellDecorator.cxx:119
DerivationFramework::MaxCellDecorator::m_SGKey_photons
SG::ReadHandleKey< xAOD::EgammaContainer > m_SGKey_photons
Definition: MaxCellDecorator.h:63
ReadCondHandleKey.h
DerivationFramework::MaxCellDecorator::m_SGKey_jets_decorations
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_SGKey_jets_decorations
Definition: MaxCellDecorator.h:121
DerivationFramework::MaxCellDecorator
Definition: MaxCellDecorator.h:33
DerivationFramework::MaxCellDecorator::calculation::maxEcell_y
float maxEcell_y
Definition: MaxCellDecorator.h:50
SG::ReadCondHandleKey< LArOnOffIdMapping >
DerivationFramework::MaxCellDecorator::m_SGKey_photons_decorations
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > m_SGKey_photons_decorations
Definition: MaxCellDecorator.h:97
DerivationFramework::MaxCellDecorator::calculation::maxEcell_time
float maxEcell_time
Definition: MaxCellDecorator.h:45
WriteDecorHandleKeyArray.h
CaloClusterContainer.h
DerivationFramework::MaxCellDecorator::decorateObject
calculation decorateObject(const xAOD::CaloCluster *cluster, const EventContext &ctx) const
Definition: MaxCellDecorator.cxx:342
AthAlgTool
Definition: AthAlgTool.h:26