Definition at line 189 of file EopElecTreeWriter.cc.
References ETA, etaBarrelEndcap, dqm-mbProfile::log, M_PI, R_ECAL, funct::tan(), and Z_Endcap.
Referenced by EopElecTreeWriter::analyze().
190 if (EtaParticle != 0.) {
192 float ZEcal = (
R_ECAL - RhoVertex) * sinh(EtaParticle) + Zvertex;
195 Theta = atan(
R_ECAL / ZEcal);
197 Theta = Theta +
M_PI;
203 if (EtaParticle < 0.0)
205 float Zlen = Zend - Zvertex;
206 float RR = Zlen / sinh(EtaParticle);
207 Theta = atan((RR + RhoVertex) / Zend);
209 Theta = Theta +
M_PI;
214 edm::LogWarning(
"") <<
"[EcalPositionFromTrack::etaTransformation] Warning: Eta equals to zero, not correcting";
static constexpr float R_ECAL
Tan< T >::type tan(const T &t)
static constexpr float etaBarrelEndcap
Log< level::Warning, false > LogWarning
static constexpr float Z_Endcap