Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:52

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 /////////////////////////////////////////////////////////////////////////////////
0027 //  Class:    G4AdjointProcessEquivalentToDirectProcess
0028 //  Author:         L. Desorgher
0029 //  Organisation:   SpaceIT GmbH
0030 //
0031 //  Adjoint process equivalent to direct process, used for some multiple
0032 //  scattering.
0033 //  A virtual class for wrapper process objects.
0034 /////////////////////////////////////////////////////////////////////////////////
0035 
0036 #ifndef G4AdjointProcessEquivalentToDirectProcess_h
0037 #define G4AdjointProcessEquivalentToDirectProcess_h 1
0038 
0039 #include "G4VProcess.hh"
0040 
0041 class G4AdjointProcessEquivalentToDirectProcess : public G4VProcess
0042 {
0043  public:
0044   explicit G4AdjointProcessEquivalentToDirectProcess(
0045     const G4String& aName, G4VProcess* aProcess,
0046     G4ParticleDefinition* fwd_particle_def);
0047 
0048   ~G4AdjointProcessEquivalentToDirectProcess() override;
0049 
0050   G4VParticleChange* PostStepDoIt(const G4Track& track,
0051                                   const G4Step& stepData) override;
0052 
0053   G4VParticleChange* AlongStepDoIt(const G4Track& track,
0054                                    const G4Step& stepData) override;
0055   G4VParticleChange* AtRestDoIt(const G4Track& track,
0056                                 const G4Step& stepData) override;
0057 
0058   G4double AlongStepGetPhysicalInteractionLength(
0059     const G4Track& track, G4double previousStepSize,
0060     G4double currentMinimumStep, G4double& proposedSafety,
0061     G4GPILSelection* selection) override;
0062 
0063   G4double AtRestGetPhysicalInteractionLength(
0064     const G4Track& track, G4ForceCondition* condition) override;
0065 
0066   G4double PostStepGetPhysicalInteractionLength(
0067     const G4Track& track, G4double previousStepSize,
0068     G4ForceCondition* condition) override;
0069 
0070   G4bool IsApplicable(const G4ParticleDefinition&) override;
0071 
0072   void BuildPhysicsTable(const G4ParticleDefinition&) override;
0073 
0074   void PreparePhysicsTable(const G4ParticleDefinition&) override;
0075 
0076   G4bool StorePhysicsTable(const G4ParticleDefinition*,
0077                            const G4String& directory,
0078                            G4bool ascii = false) override;
0079 
0080   G4bool RetrievePhysicsTable(const G4ParticleDefinition*,
0081                               const G4String& directory,
0082                               G4bool ascii = false) override;
0083 
0084   void StartTracking(G4Track*) override;
0085   void EndTracking() override;
0086 
0087   void ResetNumberOfInteractionLengthLeft() override;
0088 
0089   G4AdjointProcessEquivalentToDirectProcess(G4AdjointProcessEquivalentToDirectProcess&) =
0090     delete;
0091   G4AdjointProcessEquivalentToDirectProcess& operator=(
0092     const G4AdjointProcessEquivalentToDirectProcess& right) = delete;
0093 
0094  private:
0095   G4ParticleDefinition* fFwdParticleDef;
0096   G4VProcess* fDirectProcess;
0097 };
0098 
0099 #endif