#include <HICaloUtil.h>
|
static double | EcalEta (const reco::Candidate &p) |
|
static double | EcalEta (double EtaParticle, double Zvertex, double plane_Radius) |
|
static double | EcalPhi (const reco::Candidate &p) |
|
static double | EcalPhi (double PtParticle, double EtaParticle, double PhiParticle, int ChargeParticle, double Rstart) |
|
Definition at line 15 of file HICaloUtil.h.
HICaloUtil::HICaloUtil |
( |
| ) |
|
|
inline |
double HICaloUtil::EcalEta |
( |
double |
EtaParticle, |
|
|
double |
Zvertex, |
|
|
double |
plane_Radius |
|
) |
| |
|
static |
Definition at line 35 of file HICaloUtil.cc.
References ETA, create_public_lumi_plots::log, PI, and funct::tan().
39 if(EtaParticle != 0.) {
41 double ZEcal = (
kER_ECAL-plane_Radius)*sinh(EtaParticle)+Zvertex;
43 if(ZEcal != 0.0) Theta = atan(
kER_ECAL/ZEcal);
44 if(Theta<0.0) Theta = Theta+
PI ;
51 if(EtaParticle<0.0 ) Zend = -Zend ;
52 double Zlen = Zend - Zvertex ;
53 double RR = Zlen/sinh(EtaParticle);
54 Theta = atan((RR+plane_Radius)/Zend);
55 if(Theta<0.0) Theta = Theta+
PI ;
56 ETA = -
log(
tan(0.5*Theta));
static const double kER_ECAL
Tan< T >::type tan(const T &t)
static const double kEEtaBarrelEndcap
static const double kEZ_Endcap
double HICaloUtil::EcalPhi |
( |
double |
PtParticle, |
|
|
double |
EtaParticle, |
|
|
double |
PhiParticle, |
|
|
int |
ChargeParticle, |
|
|
double |
Rstart |
|
) |
| |
|
static |
Definition at line 80 of file HICaloUtil.cc.
References PHI, and PI.
85 double Rbend =
kERBARM-(Rstart/100.);
86 double Bend = 0.3 * 4. * Rbend/ 2.0 ;
91 if (fabs(Bend/PtParticle)<=1.) {
92 PHI = PhiParticle - asin(Bend/PtParticle)*ChargeParticle;
99 Rhit =
kEZENDM / sinh(fabs(EtaParticle));
100 if (fabs(((Rhit-(Rstart/100.))/Rbend)*Bend/PtParticle)<=1.) {
101 PHI = PhiParticle - asin(((Rhit-(Rstart/100.))/Rbend)*Bend/PtParticle)*ChargeParticle;
static const double kEEtaBarrelEndcap
static const double kERBARM
static const double kEZENDM
const double HICaloUtil::kEEtaBarrelEndcap = 1.479 |
|
static |
const double HICaloUtil::kER_ECAL = 136.5 |
|
static |
const double HICaloUtil::kERBARM = 1.357 |
|
static |
const double HICaloUtil::kEZ_Endcap = 328.0 |
|
static |
const double HICaloUtil::kEZENDM = 3.186 |
|
static |