19 #include "CaloGeoHelpers/CaloSampling.h"
40 const EventContext& context)
const {
46 float etaL1=rtrigEmCluster.
eta();
47 float phiL1=rtrigEmCluster.
phi();
49 double totalEnergy = 0;
50 double totalEnergyEM = 0;
58 for(
int sampling=0;sampling<4;sampling++) {
65 double energyCell = larcell->energy();
66 totalEnergy += energyCell;
67 if(
dd==
TTEM) totalEnergyEM += energyCell;
69 samp = larcell->caloDDE()->getSampling();
70 rtrigEmCluster.
setEnergy(samp,rtrigEmCluster.
energy(samp) + energyCell);
80 std::vector<const TileCell*> seltile;
84 for(
const TileCell* tilecell : seltile) {
86 double energyCell = tilecell->energy();
87 totalEnergy += energyCell;
88 samp = tilecell->caloDDE()->getSampling();
89 rtrigEmCluster.
setEnergy(samp,rtrigEmCluster.
energy(samp) + energyCell);
102 rtrigEmCluster.
setEta(etaL1);
103 rtrigEmCluster.
setPhi(phiL1);
109 return StatusCode::SUCCESS;