8#include "CaloGeoHelpers/CaloSampling.h"
13 const double size = 0.12;
14 const std::vector<CaloCell_ID::SUBCALO> theVecCalo = {
19 const std::string& name,
20 const IInterface* parent)
23 declareInterface<IegammaIso>(
this);
28 return StatusCode::SUCCESS;
31 return StatusCode::SUCCESS;
38 const double eta = cluster.
eta();
39 const double phi = cluster.
phi();
50 ehad +=HADCellList.
energy();
51 info.nBadT0 += HADCellList.
nBadT(0);
52 info.nBadT12 += HADCellList.
nBadT(1);
55 egap +=HADCellList.
energy();
58 info.ehad1 +=HADCellList.
energy();
61 info.ehad1 +=HADCellList.
energy();
65 info.ehad1 +=HADCellList.
energy();
67 info.ehad1 +=HADCellList.
energy();
70 info.ehad1 +=HADCellList.
energy();
72 const double eta2 = cluster.
etaBE(2);
77 const double cheta2 = cosh(eta2);
78 info.ethad1 = cheta2!=0. ? info.ehad1/cheta2 : 0.;
80 info.ethad = cheta2!=0. ? (ehad-egap)/cheta2 : 0.;
82 return StatusCode::SUCCESS;
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Definition of CaloDetDescrManager.
size_t size() const
Number of registered mappings.
Container class for CaloCell.
unsigned short nBadT(int i) const
void select(double eta, double phi, double deta, double dphi)
This class provides the client interface for accessing the detector description information common to...
StatusCode initialize() override
initialize method
StatusCode finalize() override
finalize method
virtual StatusCode execute(const xAOD::CaloCluster &cluster, const CaloDetDescrManager &cmgr, const CaloCellContainer &cellcoll, Info &info) const override final
Method to just calculate hadronic leakage.
egammaIso(const std::string &type, const std::string &name, const IInterface *parent)
Default constructor.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.