src/photongen.cc
// Caluculate the number of photons generated in a path step
Caluculate the number of photons generated in a path step
Caluculate the number of photons generated in a path step
Int_t nPhotons() {
    Double_t betaSqr = 0.99934;
    Double_t A = 12.;
    Double_t Z = 6.;
    Double_t S = 1030.*PATH_STEP;
    Double_t xi = (0.1536/betaSqr)*(Z/A)*S;
    Double_t gammaE = 0.577;
    Double_t lambda = r->Landau()/xi;
    Double_t deltaE = xi*(lambda + log((5.597e9*betaSqr*xi)/((1-betaSqr)*Z*Z)) + 1 - betaSqr - gammaE);
    return (Int_t) (deltaE*10.);    
}
Int_t nPhotons ( ) { Double_t betaSqr = 0.99934 ; Double_t A = 12. ; Double_t Z = 6. ; Double_t S = 1030. * PATH_STEP ; Double_t xi = ( 0.1536 / betaSqr ) * ( Z / A ) * S ; Double_t gammaE = 0.577 ; Double_t lambda = r -> Landau ( ) / xi ; Double_t deltaE = xi * ( lambda + log ( ( 5.597e9 * betaSqr * xi ) / ( ( 1 - betaSqr ) * Z * Z ) ) + 1 - betaSqr - gammaE ) ; return ( Int_t ) ( deltaE * 10. ) ; }
Caluculate the number of photons generated in a path step
Caluculate the number of photons generated in a path step
// Scintillator properties and constants // Random sample from Landau Distribution // Energy deposited while traversing the path length // Photon number