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_, cmsBatch::log, meanalpha0_, meanalpha1_, meant0_, meant1_, radiationLength_, sigmalnalpha0_, sigmalnalpha1_, sigmalnt0_, sigmalnt1_, and mathSSE::sqrt().
Referenced by hgcal::EGammaPCAHelper::clusterDepthCompatibility(), and ~ShowerDepth().
12 if ( meanalpha < 1. ) meanalpha = 1.1;
17 float invbeta = meantmax/(meanalpha-1.);
18 float predictedDepth = meanalpha*invbeta;
21 float predictedSigma = sigmalnalpha*sigmalnalpha/((meanalpha-1.)*(meanalpha-1.));
22 predictedSigma += sigmalntmax*sigmalntmax;
23 predictedSigma -= 2*sigmalnalpha*sigmalntmax*corrlnalphalntmax/(meanalpha-1.);
24 if ( predictedSigma < 0. ) predictedSigma = 1.e10;
25 predictedSigma = predictedDepth*
std::sqrt(predictedSigma);
27 expectedDepth = predictedDepth;
28 expectedSigma = predictedSigma;
29 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_