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;
#define ATH_CHECK
Evaluate an expression and check for errors.
DETID
An enum to define subdetector names.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
This class groups all DetDescr information related to a CaloCell.
virtual StatusCode execute(xAOD::TrigEMCluster &rtrigEmCluster, const IRoiDescriptor &roi, const CaloDetDescrElement *&, const EventContext &context) const override
execute feature extraction for the EM Calorimeter second layer
EgammaAllFex(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Describes the API of the Region of Ineterest geometry.
Data object for LAr calorimeter readout cell.
void setNCells(int)
set number of cells used from RoI
float rawEnergy() const
get Raw Energy (no calibration)
void setRawEnergy(float)
set Raw Energy (no calibration)
void setPhi(float)
set Phi (calibrated)
void setEta(float)
set Eta (calibrated)
float eta() const
get Eta (calibrated)
void setEnergy(float energy)
set Energy (calibrated)
float phi() const
get Phi (calibrated)
float energy() const
get Energy (calibrated)
TrigEMCluster_v1 TrigEMCluster
Define the latest version of the trigger EM cluster class.