19 const std::string&
name, ISvcLocator* svcLoc)
23 m_caloCellEnergyByLayer(
"CaloCellEnergyByLayer"),
24 m_caloCellETByLayer(
"CaloCellETByLayer"),
25 m_caloCellsQuality(
"CaloCellQuality"),
26 m_caloCellEnergyByLayerByReceiver(
""),
27 m_caloCellETByLayerByReceiver(
""),
32 "Decoration name - leave empty to disable");
34 "Decoration name - leave empty to disable");
36 "Decoration name - leave empty to disable");
38 "Decoration name - leave empty to disable");
40 "Decoration name - leave empty to disable");
42 "DecorName_caloCellEnergyByLayerByReceiver",
44 "Decoration name - leave empty to disable");
47 "Decoration name - leave empty to disable");
54 "TrigT1CaloCalibTools/L1CaloTriggerTowerDecoratorAlg::initialize()");
60 if (!baseName.empty()) {
61 const std::string
prefix = baseName +
".";
93 return StatusCode::SUCCESS;
103 const EventContext& ctx = Gaudi::Hive::currentContext();
117 std::optional<SG::WriteDecorHandle<xAOD::TriggerTowerContainer, float>>
118 caloCellEnergyDecorator;
119 std::optional<SG::WriteDecorHandle<xAOD::TriggerTowerContainer, float>>
121 std::optional<SG::WriteDecorHandle<xAOD::TriggerTowerContainer, float>>
122 caloCellsQualityDecorator;
125 caloCellEnergyByLayerDecorator;
128 caloCellETByLayerDecorator;
131 caloCellEnergyByLayerByReceiverDecorator;
134 caloCellETByLayerByReceiverDecorator;
142 if (doCellsQuality) {
145 if (doCellEnergyByLayer) {
148 if (doCellETByLayer) {
151 if (doCellEnergyByLayerByReceiver) {
154 if (doCellETByLayerByReceiver) {
158 for (
const auto*
x : *tts) {
160 caloCellEnergyDecorator.value()(*x) =
m_ttTools->caloCellsEnergy(*
x);
163 caloCellETDecorator.value()(*x) =
m_ttTools->caloCellsET(*
x);
165 if (doCellEnergyByLayer) {
166 caloCellEnergyByLayerDecorator.value()(*x) =
m_ttTools->caloCellsEnergyByLayer(*
x);
168 if (doCellETByLayer) {
169 caloCellETByLayerDecorator.value()(*x) =
m_ttTools->caloCellsETByLayer(*
x);
171 if (doCellsQuality) {
172 caloCellsQualityDecorator.value()(*x) =
m_ttTools->caloCellsQuality(*
x);
174 if (doCellEnergyByLayerByReceiver) {
175 caloCellEnergyByLayerByReceiverDecorator.value()(*x) =
m_ttTools->caloCellsEnergyByLayerByReceiver(*
x);
177 if (doCellETByLayerByReceiver) {
178 caloCellETByLayerByReceiverDecorator.value()(*x) =
m_ttTools->caloCellsETByLayerByReceiver(*
x);
184 return StatusCode::SUCCESS;