20 const std::string& name,
21 const IInterface* parent )
25 declareInterface< IPhotonCnvTool >(
this);
31 "Most likely used for trigger objects");
43 return StatusCode::SUCCESS;
47 return StatusCode::SUCCESS;
50 const auto end = aod->
end();
51 for(
auto itr = aod->
begin(); itr != end; ++itr ) {
57 photon->setPtEtaPhi((*itr)->pt(),(*itr)->eta(),(*itr)->phi());
60 photon->setAuthor( (*itr)->author() );
63 photon->setOQ( (*itr)->isgoodoq() );
71 Eigen::Matrix<double,4,4> matrix;
72 for(
int i(0);i<4;++i){
73 for(
int j(0);j<4;++j){
74 matrix(i,j) = (*oldMatrix)(i,j);
78 Eigen::Matrix<double,4,4> covMatrix= jacobian*matrix*jacobian.transpose();
79 photon->setCovMatrix(covMatrix.cast<
float>());
93 return StatusCode::SUCCESS;
140 float parameter =
static_cast<float>(
result);
159 float isolation =
static_cast<float>(
result);
166 std::string clusterContainerName;
183 if (clusterContainerName.empty())
189 std::vector< ElementLink< xAOD::CaloClusterContainer > > linksToClusters;
190 linksToClusters.push_back(newclusterElementLink);
197 std::vector< ElementLink< xAOD::VertexContainer > > linksToVertices;
205 std::string linkname = name;
207 if (linkname.empty())
208 linkname = oldLink.
dataID();
#define ATH_MSG_WARNING(x)
Helpers for checking error return status codes and reporting errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
ElementLink implementation for ROOT usage.
const ID_type & dataID() const
Get the key that we reference, as a string.
void resetWithKeyAndIndex(const ID_type &dataID, index_type elemID, IProxyDict *sg=0)
Set the link to an element given by string key and index.
index_type index() const
Get the index of the element inside of its container.
bool isValid() const
Test to see if the link can be dereferenced.
This is a data object, containing a collection of egamma Objects.
double detailValue(egammaParameters::ParamDef key, const std::string &name="", unsigned int index=0) const
get the float value of key in the container name
unsigned int nConversions() const
unsigned int author() const
Reconstruction Author.
const ElementLink< CaloClusterContainer > & clusterElementLink() const
element link to cluster
ElementLink< VxContainer > conversionElementLink(unsigned int index=0) const
element link to conversion
bool setShowerShapeValue(float value, const EgammaParameters::ShowerShapeType information)
Set method for Shower Shape values.
void setCaloClusterLinks(const CLELVec_t &links)
set Pointer to the xAOD::CaloCluster
bool setIsolationValue(float value, const Iso::IsolationType information)
old set method for Isolation values.
void setVertexLinks(const VxELVec_t &links)
set Pointer to the xAOD::vertex/vertices that match the photon candidate
const unsigned int AuthorRConv
Photon that is duplicated with electron.
const unsigned int AuthorPhoton
Photon reconstructed by standard cluster-based algorithm.
@ ethad1
transverse energy in the first sampling of the hadronic calorimeters behind the cluster calculated fr...
@ ecore
core energy in em calo E(core) = E0(3x3) + E1(15x2) + E2(5x5) + E3(3x5)
@ topoetcone30
Topo cluster ET in a cone with half-opening angle 0.30.
@ ethad
ET leakage into hadronic calorimeter with exclusion of energy in CaloSampling::TileGap3.
@ barys1
barycentre in sampling 1 calculated in 3 strips
@ e2tsts1
energy of the cell corresponding to second energy maximum in the first sampling
@ ptcone20
summed pt of tracks in a cone with half-opening angle 0.2 (no zvx cut photons, 1mm electrons)
@ poscs1
relative position in eta within cell in 1st sampling
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
@ ptcone40
summed pt of tracks in a cone with half-opening angle 0.4
@ e337
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x7
@ f1core
E1(3x1)/E = fraction of the energy reconstructed in the first longitudinal compartment of the electro...
@ weta2
the lateral width is calculated with a window of 3x5 cells using the energy weighted sum over all cel...
@ e1152
uncalibrated energy (sum of cells) in strips in a 15x2 window in cells in eta X phi
@ e235
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x5
@ e033
uncalibrated energy (sum of cells) in presampler in a 3x3 window in cells in eta X phi
@ emaxs1
energy of strip with maximal energy deposit
@ f3core
E3(3x3)/E fraction of the energy reconstructed in the third compartment of the electromagnetic calori...
@ r33over37allcalo
1-ratio of energy in 3x3 over 3x7 cells; E(3x3) = E0(1x1) + E1(3x1) + E2(3x3) + E3(3x3); E(3x7) = E0(...
@ wtots1
shower width is determined in a window detaxdphi = 0,0625 ~0,2, corresponding typically to 20 strips ...
@ f3
fraction of energy reconstructed in 3rd sampling
@ e011
uncorrected energy in presampler in a 1x1 window in cells in eta X phi
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
@ etcone40
ET in a cone with half-opening angle 0.4, with exclusion of a window of size 7x5 in electromagnetic c...
@ e333
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x3
@ e233
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units e...
@ poscs2
relative position in eta within cell in 2nd sampling
@ widths1
same as egammaParameters::weta1 but without corrections on particle impact point inside the cell
@ e377
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
@ topoetcone40
Topo cluster ET in a cone with half-opening angle 0.30.
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in +- n stri...
@ f1
E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belon...
@ emins1
energy reconstructed in the strip with the minimal value between the first and second maximum
@ e335
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x5
@ widths2
same as egammaParameters::weta2 but without corrections on particle impact point inside the cell
@ ptcone30
summed pt of tracks in a cone with half-opening angle 0.3
@ etcone20
ET in a cone with half-opening angle 0.2, with exclusion of a window of size 7x5 in electromagnetic c...
@ e132
uncalibrated energy (sum of cells) in strips in a 3x2 window in cells in eta X phi
@ e255
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 5x5
@ etcone30
ET in a cone with half-opening angle 0.3, with exclusion of a window of size 7x5 in electromagnetic c...
@ weta1
shower width using +/-1 strips around the one with the maximal energy deposit: w3 strips = sqrt{sum(E...
@ ehad1
E leakage into 1st sampling of had calo (CaloSampling::HEC0 + CaloSampling::TileBar0 + CaloSampling::...
@ pos7
Difference between the track and the shower positions: sum_{i=i_m-7}^{i=i_m+7}E_i x (i-i_m) / sum_{i=...
@ e2ts1
2nd max in strips calc by summing 3 strips
@ pos
difference between shower cell and predicted track in +/- 1 cells
@ topoetcone20
Topo cluster ET in a cone with half-opening angle 0.20.
@ asy1
uncorr asymmetry in 3 strips in the 1st sampling
const unsigned int AuthorCaloTopo35
Photon reconstructed by SW CaloTopo35 seeded clusters.
@ e235
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x5
@ e337
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x7
@ wtots1
shower width is determined in a window detaxdphi = 0,0625 ×~0,2, corresponding typically to 20 strips...
@ pos7
Difference between the track and the shower positions: sum_{i=i_m-7}^{i=i_m+7}E_i x (i-i_m) / sum_{i=...
@ f3core
E3(3x3)/E fraction of the energy reconstructed in the third compartment of the electromagnetic calori...
@ 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.
@ e1152
uncalibrated energy (sum of cells) in strips in a 15x2 window in cells in eta X phi
@ f3
fraction of energy reconstructed in 3rd sampling
@ poscs2
relative position in eta within cell in 2nd sampling
@ ecore
core energy in em calo E(core) = E0(3x3) + E1(15x2) + E2(5x5) + E3(3x5)
@ f1
E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belon...
@ pos
difference between shower cell and predicted track in +/- 1 cells
@ widths2
same as egammaParameters::weta2 but without corrections on particle impact point inside the cell
@ e2ts1
2nd max in strips calc by summing 3 strips
@ poscs1
relative position in eta within cell in 1st sampling
@ e335
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x5
@ e377
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
@ e333
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x3
@ emaxs1
energy of strip with maximal energy deposit
@ e255
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 5x5
@ ehad1
E leakage into 1st sampling of had calo (CaloSampling::HEC0 + CaloSampling::TileBar0 + CaloSampling::...
@ barys1
barycentre in sampling 1 calculated in 3 strips
@ e233
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units e...
@ asy1
uncorr asymmetry in 3 strips in the 1st sampling
@ e033
uncalibrated energy (sum of cells) in presampler in a 3x3 window in cells in eta X phi
@ e132
uncalibrated energy (sum of cells) in strips in a 3x2 window in cells in eta X phi
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in ± n strip...
@ r33over37allcalo
1-ratio of energy in 3x3 over 3x7 cells; E(3x3) = E0(1x1) + E1(3x1) + E2(3x3) + E3(3x3); E(3x7) = E0(...
@ weta2
the lateral width is calculated with a window of 3x5 cells using the energy weighted sum over all cel...
@ e011
uncalibrated energy (sum of cells) in presampler in a 1x1 window in cells in eta X phi
@ weta1
shower width using +/-3 strips around the one with the maximal energy deposit: w3 strips = sqrt{sum(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
@ widths1
same as egammaParameters::weta1 but without corrections on particle impact point inside the cell
@ f1core
E1(3x1)/E = fraction of the energy reconstructed in the first longitudinal compartment of the electro...
IsolationType
Overall enumeration for isolation types in xAOD files.
@ topoetcone20
Topo-cluster ET-sum.
@ etcone20
Calorimeter isolation.
@ ptcone20
Track isolation.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
Photon_v1 Photon
Definition of the current "egamma version".