Message: count the number of optic photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question count the number of optic photons  

Forum: Processes Involving Optical Photons
Date: 08 Mar, 2011
From: Le Ba Manh Hung <Le Ba Manh Hung>

Hi all, I'm a newcomer of Geant4, I would like to count the number of optic photons in an scintillation and I found this:

        ScintillationYield = YieldFactor * ScintillationYield;
        MeanNumberOfPhotons = ScintillationYield * TotalEnergyDeposit;

        if (MeanNumberOfPhotons > 10.) {
          G4double sigma = ResolutionScale * sqrt(MeanNumberOfPhotons);
          NumPhotons = G4int(G4RandGauss::shoot(MeanNumberOfPhotons,sigma)+0.5);        }
        else {
          NumPhotons = G4int(G4Poisson(MeanNumberOfPhotons));
        }

But when I compile the code, this error happen:

       src/SteppingVerbose.cc:288: error: ‘G4Poisson’ was not declared in this scope

Please tell me what wrong? How can I fix it? Thanks for your help!

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Disagree: Re: count the number of optic photons   (Gumplinger Peter - 08 Mar, 2011)
(_ Question: Re: count the number of optic photons   (Le Ba Manh Hung - 15 Mar, 2011)
(_ Feedback: Re: count the number of optic photons   (Gumplinger Peter - 15 Mar, 2011)
(_ Question: Re: count the number of optic photons   (Le Ba Manh Hung - 21 Mar, 2011)
(_ Feedback: Re: count the number of optic photons   (Gumplinger Peter - 21 Mar, 2011)
(_ Ok: Re: count the number of optical photons   (Le Ba Manh Hung - 21 Mar, 2011)
 Add Message Add Message
to: "count the number of optic photons "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews