10#include "GaudiKernel/MsgStream.h"
40 for(
size_t i = 0; i < oldObj->
size(); ++i ) {
43 oldInt.setStore( oldObj );
46 for(
size_t i = 0; i < newObj->
size(); ++i ) {
49 newInt.setStore( newObj );
51 for(
size_t i = 0; i < oldInt.
size(); ++i ) {
55 float Reta= ( e277 != 0 ? e237/e277 : 0);
59 float Rphi= ( e237 != 0 ? e233/e237 : 0);
64 float Eratio = fabs(emax+emax2)>0. ? (emax-emax2)/(emax+emax2) : 0.;
68 float DeltaE = emax2-emin;
72 const float eta2 = fabsf(cluster->
etaBE(2));
74 const double energy = cluster->
e();
77 const double cosheta = cosh(eta2);
78 et = (cosheta != 0.) ? energy /cosheta : 0.;
81 float Rhad = fabs(
et) > 0. ? ethad/
et : 0.;
85 float Rhad1 = fabs(
et) > 0. ? ethad1/
et : 0.;
98 MsgStream& log )
const {
101 <<
"Somebody called xAODPhotonAuxContainerCnv_v2::transToPers"
103 throw std::runtime_error(
"Somebody called xAODPhotonAuxContainerCnv_v2::"
value_type push_back(value_type pElem)
Add an element to the end of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual void transToPers(const xAOD::PhotonAuxContainer *, xAOD::PhotonAuxContainer_v2 *, MsgStream &log) const override
Dummy function inherited from the base class.
xAODPhotonAuxContainerCnv_v2()
Default constructor.
virtual void persToTrans(const xAOD::PhotonAuxContainer_v2 *oldObj, xAOD::PhotonAuxContainer *newObj, MsgStream &log) const override
Function converting from the old type to the current one.
virtual bool resize(size_t size) override
Resize the arrays to a given size.
virtual size_t size() const override
Get the size of the container.
virtual double e() const
The total energy of the particle.
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
Auxiliary store for offline photons.
Helper to copy an aux store while applying thinning.
void copyAuxStoreThinned(const SG::IConstAuxStore &orig, SG::IAuxStore ©, const SG::ThinningInfo *info)
Helper to copy an aux store while applying thinning.
@ ethad1
transverse energy in the first sampling of the hadronic calorimeters behind the cluster calculated fr...
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
@ ethad
ET leakage into hadronic calorimeter with exclusion of energy in CaloSampling::TileGap3.
@ Eratio
(emaxs1-e2tsts1)/(emaxs1+e2tsts1)
@ emaxs1
energy of strip with maximal energy deposit
@ e233
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units e...
@ e2tsts1
energy of the cell corresponding to second energy maximum in the first sampling
@ emins1
energy reconstructed in the strip with the minimal value between the first and second maximum
PhotonAuxContainer_v3 PhotonAuxContainer
Definition of the current photon auxiliary container.
DataVector< xAOD::Photon_v1 > PhotonContainer_v1
The container is a simple typedef for now.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
Photon_v1 Photon
Definition of the current "egamma version".
Extra patterns decribing particle interation process.