Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/xrays/include/G4Scintillation.hh

    r1228 r1315  
    2525//
    2626//
    27 // $Id: G4Scintillation.hh,v 1.16 2009/07/29 23:45:20 gum Exp $
    28 // GEANT4 tag $Name: geant4-09-03 $
     27// $Id: G4Scintillation.hh,v 1.17 2010/05/27 20:48:35 gum Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2929//
    3030//
     
    146146        // have been tracked, the tracking of the primary resumes.
    147147
     148        void SetFiniteRiseTime(const G4bool state);
     149        // If set, the G4Scintillation process expects the user to have
     150        // set the constant material property FAST/SLOWSCINTILLATIONRISETIME.
     151
    148152        G4bool GetTrackSecondariesFirst() const;
    149153        // Returns the boolean flag for tracking secondaries first.
     154
     155        G4bool GetFiniteRiseTime() const;
     156        // Returns the boolean flag for a finite scintillation rise time.
    150157       
    151158        void SetScintillationYieldFactor(const G4double yieldfactor);
     
    198205
    199206        G4bool fTrackSecondariesFirst;
     207        G4bool fFiniteRiseTime;
    200208
    201209        G4double YieldFactor;
     
    204212
    205213private:
     214
     215        G4double single_exp(G4double t, G4double tau2);
     216        G4double bi_exp(G4double t, G4double tau1, G4double tau2);
     217
     218        // emission time distribution when there is a finite rise time
     219        G4double sample_time(G4double tau1, G4double tau2);
    206220
    207221        G4EmSaturation* emSaturation;
     
    229243
    230244inline
     245void G4Scintillation::SetFiniteRiseTime(const G4bool state)
     246{
     247        fFiniteRiseTime = state;
     248}
     249
     250inline
    231251G4bool G4Scintillation::GetTrackSecondariesFirst() const
    232252{
    233253        return fTrackSecondariesFirst;
     254}
     255
     256inline
     257G4bool G4Scintillation::GetFiniteRiseTime() const
     258{
     259        return fFiniteRiseTime;
    234260}
    235261
     
    296322}
    297323
     324inline
     325G4double G4Scintillation::single_exp(G4double t, G4double tau2)
     326{
     327         return exp(-1.0*t/tau2)/tau2;
     328}
     329
     330inline
     331G4double G4Scintillation::bi_exp(G4double t, G4double tau1, G4double tau2)
     332{
     333         return exp(-1.0*t/tau2)*(1-exp(-1.0*t/tau1))/tau2/tau2*(tau1+tau2);
     334}
     335
    298336#endif /* G4Scintillation_h */
Note: See TracChangeset for help on using the changeset viewer.