Definition at line 27 of file ShowerDepth.h.
float ShowerDepth::getClusterDepthCompatibility |
( |
float |
measuredDepth, |
|
|
float |
emEnergy, |
|
|
float & |
expectedDepth, |
|
|
float & |
expectedSigma |
|
) |
| const |
Definition at line 6 of file ShowerDepth.cc.
References corrlnalphalnt0_, corrlnalphalnt1_, criticalEnergy_, dqm-mbProfile::log, meanalpha0_, meanalpha1_, meant0_, meant1_, radiationLength_, sigmalnalpha0_, sigmalnalpha1_, sigmalnt0_, sigmalnt1_, and mathSSE::sqrt().
Referenced by hgcal::EGammaPCAHelper::clusterDepthCompatibility(), and ~ShowerDepth().
21 float invbeta = meantmax / (meanalpha - 1.);
22 float predictedDepth = meanalpha * invbeta;
25 float predictedSigma = sigmalnalpha * sigmalnalpha / ((meanalpha - 1.) * (meanalpha - 1.));
26 predictedSigma += sigmalntmax * sigmalntmax;
27 predictedSigma -= 2 * sigmalnalpha * sigmalntmax * corrlnalphalntmax / (meanalpha - 1.);
28 if (predictedSigma < 0.)
29 predictedSigma = 1.e10;
30 predictedSigma = predictedDepth *
std::sqrt(predictedSigma);
32 expectedDepth = predictedDepth;
33 expectedSigma = predictedSigma;
34 return (measuredDepth - predictedDepth) / predictedSigma;
static constexpr float meant0_
static constexpr float corrlnalphalnt0_
static constexpr float sigmalnalpha1_
static constexpr float meanalpha0_
static constexpr float meanalpha1_
static constexpr float radiationLength_
static constexpr float meant1_
static constexpr float sigmalnalpha0_
static constexpr float sigmalnt1_
static constexpr float corrlnalphalnt1_
static constexpr float criticalEnergy_
static constexpr float sigmalnt0_