Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 // G4VContinuousProcess << 27 // 26 // 28 // Class description: << 29 // 27 // 30 // Abstract class which defines the public beh << 28 // 31 // Continuous physics interactions. << 29 // ------------------------------------------------------------ >> 30 // GEANT 4 class header file >> 31 // >> 32 // History: first implementation, based on object model of >> 33 // 2nd December 1995, G.Cosmo >> 34 // add G4VContinuousProcess(const G4String&) 24 Jul 1996, Hisaya kurashige >> 35 // >> 36 // Class Description >> 37 // Abstract class which defines the public behavior of >> 38 // Continuous physics interactions. >> 39 // >> 40 // ------------------------------------------------------------ >> 41 // New Physics scheme 18 Dec. 1996 H.Kurahige >> 42 // ------------------------------------------------------------ >> 43 // modified 25 Feb. 1997 H.Kurahige >> 44 // modified 8 Mar. 1997 H.Kurashige >> 45 // modified 22 Mar. 1997 H.Kurashige >> 46 // modified 26 Mar. 1997 H.Kurashige >> 47 // modified AlongStepGPIL etc. 17 Dec. 1997 H.Kurashige >> 48 // fix bugs in GetGPILSelection() 24 Jan. 1998 H.Kurashige >> 49 // modified for new ParticleChange 12 Mar. 1998 H.Kurashige 32 50 33 // Authors: << 51 #ifndef G4VContinuousProcess_h 34 // - 2 December 1995, G.Cosmo - First implemen << 52 #define G4VContinuousProcess_h 1 35 // - 18 December 1996, H.Kurashige - New Physi << 36 // ------------------------------------------- << 37 #ifndef G4VContinuousProcess_hh << 38 #define G4VContinuousProcess_hh 1 << 39 53 40 #include "globals.hh" 54 #include "globals.hh" 41 #include "G4ios.hh" 55 #include "G4ios.hh" 42 56 43 #include "G4VProcess.hh" 57 #include "G4VProcess.hh" 44 58 45 class G4VContinuousProcess : public G4VProcess 59 class G4VContinuousProcess : public G4VProcess 46 { 60 { >> 61 // Abstract class which defines the public behavior of >> 62 // Continuous physics interactions. 47 public: 63 public: 48 64 49 G4VContinuousProcess(const G4String& aName << 65 G4VContinuousProcess(const G4String& , 50 G4ProcessType aType = << 66 G4ProcessType aType = fNotDefined ); 51 G4VContinuousProcess(G4VContinuousProcess << 67 G4VContinuousProcess(G4VContinuousProcess &); 52 68 53 virtual ~G4VContinuousProcess(); << 69 virtual ~G4VContinuousProcess(); 54 70 55 G4VContinuousProcess& operator=(const G4VC << 71 public: // with description 56 << 72 virtual G4double AlongStepGetPhysicalInteractionLength( 57 virtual G4double AlongStepGetPhysicalInter << 58 const G4Track& tr 73 const G4Track& track, 59 G4double previou << 74 G4double previousStepSize, 60 G4double current << 75 G4double currentMinimumStep, 61 G4double& propose << 76 G4double& proposedSafety, 62 G4GPILSelection* 77 G4GPILSelection* selection 63 ); << 78 ); 64 79 65 virtual G4VParticleChange* AlongStepDoIt( << 80 virtual G4VParticleChange* AlongStepDoIt( 66 const G4Track& , << 81 const G4Track& , 67 const G4Step& << 82 const G4Step& 68 ); << 83 ); 69 84 70 // no operation in AtRestDoIt and PostStep << 85 // no operation in AtRestDoIt and PostStepDoIt 71 // << 86 virtual G4double PostStepGetPhysicalInteractionLength( 72 virtual G4double PostStepGetPhysicalIntera << 73 const G4Track&, 87 const G4Track&, 74 G4double, << 88 G4double, 75 G4ForceCondition* << 89 G4ForceCondition* 76 ) { return -1.0; } << 90 ){ return -1.0; }; 77 << 78 virtual G4double AtRestGetPhysicalInteract << 79 const G4Track& , << 80 G4ForceCondition* << 81 ) { return -1.0; } << 82 91 83 // no operation in AtRestDoIt and PostStep << 92 virtual G4double AtRestGetPhysicalInteractionLength( 84 // << 85 virtual G4VParticleChange* AtRestDoIt( << 86 const G4Track& , 93 const G4Track& , 87 const G4Step& << 94 G4ForceCondition* 88 ) { return 0; } << 95 ) { return -1.0; }; 89 96 90 virtual G4VParticleChange* PostStepDoIt( << 97 // no operation in AtRestDoIt and PostStepDoIt 91 const G4Track& , << 98 virtual G4VParticleChange* AtRestDoIt( 92 const G4Step& << 99 const G4Track& , 93 ) { return 0; } << 100 const G4Step& >> 101 ) {return 0;}; >> 102 >> 103 virtual G4VParticleChange* PostStepDoIt( >> 104 const G4Track& , >> 105 const G4Step& >> 106 ) {return 0;}; 94 107 95 protected: << 108 protected: // with description >> 109 virtual G4double GetContinuousStepLimit(const G4Track& aTrack, >> 110 G4double previousStepSize, >> 111 G4double currentMinimumStep, >> 112 G4double& currentSafety >> 113 )=0; >> 114 // This pure virtual function is used to calculate step limit >> 115 // for AlongStep in the derived processes 96 116 97 virtual G4double GetContinuousStepLimit( c << 117 private: 98 G << 118 // this is the returnd value of G4GPILSelection in 99 G << 119 // the arguments of AlongStepGPIL() 100 G << 120 G4GPILSelection valueGPILSelection; 101 // This pure virtual function is used to << 121 102 // for AlongStep in the derived processe << 122 protected: // with description >> 123 // these two methods are set/get methods for valueGPILSelection >> 124 void SetGPILSelection(G4GPILSelection selection) >> 125 { valueGPILSelection = selection;}; 103 126 104 inline void SetGPILSelection(G4GPILSelecti << 127 G4GPILSelection GetGPILSelection() const{return valueGPILSelection;}; 105 { valueGPILSelection = selection; } << 106 128 107 inline G4GPILSelection GetGPILSelection() << 108 { return valueGPILSelection; } << 109 129 110 private: 130 private: >> 131 // hide default constructor and assignment operator as private >> 132 G4VContinuousProcess(); >> 133 G4VContinuousProcess & operator=(const G4VContinuousProcess &right); 111 134 112 G4VContinuousProcess(); << 113 // Hidden default constructor << 114 << 115 G4GPILSelection valueGPILSelection = Candi << 116 // The returned value of G4GPILSelection << 117 // the arguments of AlongStepGPIL() << 118 }; 135 }; 119 136 120 #endif 137 #endif >> 138 >> 139 >> 140 >> 141 121 142