#include <GainDecorator.h>
|
SG::ReadHandleKey< xAOD::EgammaContainer > | m_SGKey_photons { this, "SGKey_photons", "", "SG key of photon container" } |
|
SG::ReadHandleKey< xAOD::EgammaContainer > | m_SGKey_electrons |
|
std::string | m_decorationPattern |
|
std::map< int, std::string > | m_gainNames |
|
std::vector< unsigned int > | m_layers |
|
std::map< std::pair< int, int >, std::string > | m_names_E |
|
std::map< std::pair< int, int >, std::string > | m_names_rnoW |
|
std::map< std::pair< int, int >, std::string > | m_names_nCells |
|
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > | m_SGKey_photons_decorations |
|
SG::WriteDecorHandleKeyArray< xAOD::EgammaContainer > | m_SGKey_electrons_decorations |
|
Definition at line 27 of file GainDecorator.h.
◆ GainDecorator()
DerivationFramework::GainDecorator::GainDecorator |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
Definition at line 22 of file GainDecorator.cxx.
27 declareProperty(
"decoration_pattern",
29 declareProperty(
"gain_names",
33 declareProperty(
"layers",
m_layers = { 0, 1, 2, 3 });
40 std::string(
"{layer}").size(),
43 name.find(
"{gain}"), std::string(
"{gain}").size(), kv.second);
44 std::string name_E(
name), name_rnoW(
name), name_nCells(
name);
45 name_E.replace(name_E.find(
"{info}"), std::string(
"{info}").size(),
"E");
46 name_rnoW.replace(name_rnoW.find(
"{info}"), std::string(
"{info}").size(),
"rnoW");
48 name_nCells.find(
"{info}"), std::string(
"{info}").size(),
"nCells");
50 std::pair<int, int>
key(kv.first,
layer);
57 ATH_MSG_DEBUG(
"Decorating (layer, gain): " << kv.first <<
" " << kv.second);
60 ATH_MSG_DEBUG(
"Decorating (layer, gain): " << kv.first <<
" " << kv.second);
◆ ~GainDecorator()
DerivationFramework::GainDecorator::~GainDecorator |
( |
| ) |
|
|
default |
◆ addBranches()
StatusCode DerivationFramework::GainDecorator::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 129 of file GainDecorator.cxx.
131 const EventContext& ctx = Gaudi::Hive::currentContext();
142 std::vector<SG::WriteDecorHandle<xAOD::EgammaContainer, float>>
144 std::vector<SG::WriteDecorHandle<xAOD::EgammaContainer, float>>
146 std::vector<SG::WriteDecorHandle<xAOD::EgammaContainer, char>>
151 std::pair<int, int>
key(kv.first,
layer);
152 decorations_E.emplace_back(
155 decorations_rnoW.emplace_back(
158 decorations_nCells.emplace_back(
166 for (
const auto*
photon : *importedPhotons) {
172 std::pair<int, int>
key(kv.first,
layer);
173 decorations_E[
i](*photon) =
res.E[
key];
174 decorations_rnoW[
i](*photon) =
176 decorations_nCells[
i](*photon) =
res.nCells[
key];
193 std::vector<SG::WriteDecorHandle<xAOD::EgammaContainer, float>>
195 std::vector<SG::WriteDecorHandle<xAOD::EgammaContainer, float>>
197 std::vector<SG::WriteDecorHandle<xAOD::EgammaContainer, char>>
202 std::pair<int, int>
key(kv.first,
layer);
203 decorations_E.emplace_back(
206 decorations_rnoW.emplace_back(
209 decorations_nCells.emplace_back(
217 for (
const auto*
electron : *importedElectrons) {
223 std::pair<int, int>
key(kv.first,
layer);
224 decorations_E[
i](*electron) =
res.E[
key];
225 decorations_rnoW[
i](*electron) =
227 decorations_nCells[
i](*electron) =
res.nCells[
key];
234 return StatusCode::SUCCESS;
◆ decorateObject()
◆ finalize()
StatusCode DerivationFramework::GainDecorator::finalize |
( |
| ) |
|
◆ getLayer()
int DerivationFramework::GainDecorator::getLayer |
( |
const CaloCell * |
cell | ) |
|
|
static |
◆ initialize()
StatusCode DerivationFramework::GainDecorator::initialize |
( |
| ) |
|
Definition at line 69 of file GainDecorator.cxx.
74 ATH_MSG_FATAL(
"No e-gamma collection provided for thinning. At least one "
75 "egamma collection (photons/electrons) must be provided!");
76 return StatusCode::FAILURE;
86 std::pair<int, int>
key(kv.first,
layer);
105 std::pair<int, int>
key(kv.first,
layer);
117 return StatusCode::SUCCESS;
◆ m_decorationPattern
std::string DerivationFramework::GainDecorator::m_decorationPattern |
|
private |
◆ m_gainNames
std::map<int, std::string> DerivationFramework::GainDecorator::m_gainNames |
|
private |
◆ m_layers
std::vector<unsigned int> DerivationFramework::GainDecorator::m_layers |
|
private |
◆ m_names_E
std::map<std::pair<int, int>, std::string> DerivationFramework::GainDecorator::m_names_E |
|
private |
◆ m_names_nCells
std::map<std::pair<int, int>, std::string> DerivationFramework::GainDecorator::m_names_nCells |
|
private |
◆ m_names_rnoW
std::map<std::pair<int, int>, std::string> DerivationFramework::GainDecorator::m_names_rnoW |
|
private |
◆ m_SGKey_electrons
Initial value:{
this,
"SGKey_electrons",
"",
"SG key of electron container"
}
Definition at line 50 of file GainDecorator.h.
◆ m_SGKey_electrons_decorations
Initial value:{
this,
"SGKey_electrons_decorations_noConf",
{},
"SG keys for electrons decorations not really configurable"
}
Definition at line 75 of file GainDecorator.h.
◆ m_SGKey_photons
◆ m_SGKey_photons_decorations
Initial value:{
this,
"SGKey_photons_decorations_noConf",
{},
"SG keys for photon decorations not really configurable"
}
Definition at line 67 of file GainDecorator.h.
The documentation for this class was generated from the following files: