5 #include "CLHEP/Random/RandFlat.h"
6 #include "CLHEP/Random/RandGaussZiggurat.h"
38 const double center_r = hit.
center_r();
39 const double center_z = hit.
center_z();
41 const float dist000 = TMath::Sqrt(center_r * center_r + center_z * center_z);
42 const float eta_jakobi = TMath::Abs(2.0 * TMath::Exp(-center_eta) /
43 (1.0 + TMath::Exp(-2 * center_eta)));
45 const float delta_eta = hit.
eta() - center_eta;
47 const float delta_eta_mm = delta_eta * eta_jakobi * dist000;
48 const float delta_phi_mm =
delta_phi * center_r;
49 const float delta_r_mm =
50 TMath::Sqrt(delta_eta_mm * delta_eta_mm + delta_phi_mm * delta_phi_mm);
62 float logweight = CLHEP::RandGaussZiggurat::shoot(simulstate.
randomEngine(),
64 weight *= TMath::Exp(logweight);
76 void TFCSHistoLateralShapeGausLogWeight::LoadHist() {
89 for (
int ibin = 0; ibin < fh1d.
nbins; ++ibin) {
96 m_LdFH->set_hf1d(&fh1d);