18 const float eta = cluster->
eta();
19 const float phi = cluster->
phi();
20 const float E = cluster->
e();
23 E > el_mass ? sqrt(E * E - el_mass * el_mass) / cosh(
eta) : 0;
38 const float E = cluster->
e();
39 const float eta = goodTrack ? trackParticle->
eta() : cluster->
eta();
40 const float phi = goodTrack ? trackParticle->
phi() : cluster->
phi();
43 E > el_mass ? sqrt(E * E - el_mass * el_mass) / cosh(
eta) : 0;
51 float E = cluster->
e();
52 float eta = cluster->
eta();
53 float phi = cluster->
phi();
69 if (electron.trackParticle()) {
70 return setFromTrkCluster(electron);
72 setFromCluster(electron);
80 setFromTrkCluster(photon);
82 setFromCluster(photon);
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
A number of constexpr particle constants to avoid hardcoding them directly in various places.
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual double e() const
The total energy of the particle.
virtual double phi() const
The azimuthal angle ( ) of the particle.
void setPtEtaPhi(float pt, float eta, float phi)
set the 4-vec
const xAOD::CaloCluster * caloCluster(size_t index=0) const
Pointer to the xAOD::CaloCluster/s that define the electron candidate.
virtual double phi() const override final
The azimuthal angle ( ) of the particle (has range to .)
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
Eigen::Matrix< double, 3, 1 > Vector3D
void calculate(xAOD::Electron &electron)
constexpr double electronMassInMeV
the mass of the electron (in MeV)
@ Electron
The object is an electron.
Amg::Vector3D momentumAtVertex(const xAOD::Photon *, bool debug=false)
return the momentum at the vertex (which can be 0)
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
std::size_t numberOfSiHits(const xAOD::TrackParticle *tp)
return the number of Si hits in the track particle
@ doubleSi
two tracks, both with Si hits
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Egamma_v1 Egamma
Definition of the current "egamma version".
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".