Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:26

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // G4VRestDiscreteProcess
0027 //
0028 // Class description:
0029 //
0030 // Abstract class which defines the public behavior of
0031 // rest + discrete physics interactions.
0032 
0033 // Authors:
0034 // - 2 December 1995, G.Cosmo - First implementation, based on object model
0035 // - 8 January 1997, H.Kurashige - New Physics scheme
0036 // --------------------------------------------------------------------
0037 #ifndef G4VRestDiscreteProcess_hh
0038 #define G4VRestDiscreteProcess_hh 1
0039 
0040 #include "globals.hh"
0041 #include "G4ios.hh"
0042 
0043 #include "G4VProcess.hh"
0044 
0045 class G4VRestDiscreteProcess : public G4VProcess 
0046 {
0047   public:     
0048 
0049     G4VRestDiscreteProcess(const G4String& ,
0050                G4ProcessType aType = fNotDefined);
0051     G4VRestDiscreteProcess(G4VRestDiscreteProcess&);
0052 
0053     virtual ~G4VRestDiscreteProcess();
0054 
0055     G4VRestDiscreteProcess& operator=(const G4VRestDiscreteProcess&) = delete;
0056 
0057     virtual G4double PostStepGetPhysicalInteractionLength(
0058                              const G4Track& track,
0059                  G4double previousStepSize,
0060                  G4ForceCondition* condition
0061                 );
0062 
0063     virtual G4VParticleChange* PostStepDoIt(
0064                  const G4Track& ,
0065                  const G4Step& 
0066                 );
0067 
0068     virtual G4double AtRestGetPhysicalInteractionLength(
0069                              const G4Track& ,
0070                  G4ForceCondition* 
0071                 );
0072       
0073     virtual G4VParticleChange* AtRestDoIt(
0074                  const G4Track& ,
0075                  const G4Step&
0076                 );
0077 
0078     virtual G4double AlongStepGetPhysicalInteractionLength(
0079                              const G4Track&,
0080                  G4double  ,
0081                  G4double  ,
0082                  G4double& ,
0083                              G4GPILSelection*
0084                 ) { return -1.0; }
0085       // No operation in AlongStepDoIt
0086 
0087     virtual G4VParticleChange* AlongStepDoIt(
0088                  const G4Track& ,
0089                  const G4Step& 
0090                 ) { return 0; }
0091       // No operation in AlongStepDoIt
0092  
0093   protected:
0094 
0095     virtual G4double GetMeanFreePath(const G4Track& aTrack,
0096                                      G4double previousStepSize,
0097                                      G4ForceCondition* condition) = 0;
0098       // Calculates from the macroscopic cross-section a mean
0099       // free path, the value is returned in units of distance
0100 
0101     virtual G4double GetMeanLifeTime(const G4Track& aTrack,
0102                                      G4ForceCondition* condition) = 0;
0103       // Calculates the mean life-time (i.e. for decays) of the
0104       // particle at rest due to the occurrence of the given process,
0105       // or converts the probability of interaction (i.e. for
0106       // annihilation) into the life-time of the particle for the
0107       // occurrence of the given process
0108 
0109   private:
0110 
0111     G4VRestDiscreteProcess();
0112       // Hidden default constructor
0113 };
0114 
0115 #endif