Ignore:
Timestamp:
Apr 6, 2009, 12:21:12 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

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

    r819 r961  
    2525//
    2626//
    27 // $Id: G4Cerenkov.hh,v 1.9 2007/09/30 22:17:04 gum Exp $
    28 // GEANT4 tag $Name: $
     27// $Id: G4Cerenkov.hh,v 1.10 2008/10/22 01:17:36 gum Exp $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
     
    6060#include "G4ParticleMomentum.hh"
    6161#include "G4Step.hh"
    62 #include "G4VDiscreteProcess.hh"
     62#include "G4VProcess.hh"
    6363#include "G4OpticalPhoton.hh"
    6464#include "G4DynamicParticle.hh"
     
    7777/////////////////////
    7878
    79 class G4Cerenkov : public G4VDiscreteProcess 
     79class G4Cerenkov : public G4VProcess
    8080{
    8181
     
    116116        // condition for the DoIt to be invoked at every step.
    117117
     118        G4double PostStepGetPhysicalInteractionLength(const G4Track& aTrack,
     119                                                      G4double ,
     120                                                      G4ForceCondition* );
     121        // Returns the discrete step limit and sets the 'StronglyForced'
     122        // condition for the DoIt to be invoked at every step.
     123
    118124        G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
    119125                                        const G4Step&  aStep);
    120126        // This is the method implementing the Cerenkov process.
     127
     128        //  no operation in  AtRestDoIt and  AlongStepDoIt
     129        virtual G4double AlongStepGetPhysicalInteractionLength(
     130                               const G4Track&,
     131                               G4double  ,
     132                               G4double  ,
     133                               G4double& ,
     134                               G4GPILSelection*
     135                              ) { return -1.0; };
     136
     137        virtual G4double AtRestGetPhysicalInteractionLength(
     138                               const G4Track& ,
     139                               G4ForceCondition*
     140                              ) { return -1.0; };
     141
     142        //  no operation in  AtRestDoIt and  AlongStepDoIt
     143        virtual G4VParticleChange* AtRestDoIt(
     144                               const G4Track& ,
     145                               const G4Step&
     146                              ) {return 0;};
     147
     148        virtual G4VParticleChange* AlongStepDoIt(
     149                               const G4Track& ,
     150                               const G4Step&
     151                              ) {return 0;};
    121152
    122153        void SetTrackSecondariesFirst(const G4bool state);
     
    125156        // been tracked, the tracking of the primary resumes.
    126157       
     158        void SetMaxBetaChangePerStep(const G4double d);
     159        // Set the maximum allowed change in beta = v/c in % (perCent)
     160        // per step.
     161
    127162        void SetMaxNumPhotonsPerStep(const G4int NumPhotons);
    128163        // Set the maximum number of Cerenkov photons allowed to be
     
    166201
    167202        G4bool fTrackSecondariesFirst;
    168         G4int  fMaxPhotons;
     203        G4double fMaxBetaChange;
     204        G4int  fMaxPhotons;
    169205};
    170206
     
    190226
    191227inline
     228void G4Cerenkov::SetMaxBetaChangePerStep(const G4double value)
     229{
     230        fMaxBetaChange = value*perCent;
     231}
     232
     233inline
    192234void G4Cerenkov::SetMaxNumPhotonsPerStep(const G4int NumPhotons)
    193235{
     
    208250}
    209251
    210 inline G4PhysicsTable* G4Cerenkov::GetPhysicsTable() const
     252inline
     253G4PhysicsTable* G4Cerenkov::GetPhysicsTable() const
    211254{
    212255  return thePhysicsTable;
Note: See TracChangeset for help on using the changeset viewer.