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 // G4ScoreSplittingProcess << 27 // 26 // 28 // Class description: << 27 // $Id: G4ScoreSplittingProcess.hh,v 1.4 2010-11-22 14:30:49 japost Exp $ >> 28 // GEANT4 tag $Name: geant4-09-04-patch-01 $ 29 // 29 // 30 // This process is used to split the length an << 30 // 31 // of a step in a regular structure into sub-s << 31 //--------------------------------------------------------------- 32 // call the scorers for each sub-volume. << 33 // It invokes sensitive detectors assigned in << 34 // 32 // 35 // Design and first implementation: J.Apostola << 33 // G4ScoreSplittingProcess.hh 36 //-------------------------------------------- << 34 // >> 35 // Description: >> 36 // This process is used to split the length and energy >> 37 // of a step in a regular structure into sub-steps, and to >> 38 // call the scorers for each sub-volume. >> 39 // It invokes sensitive detectors assigned in the *mass* >> 40 // world. >> 41 // >> 42 // Design and first implementation: J. Apostolakis / M.Asai 2010 >> 43 //--------------------------------------------------------------- >> 44 >> 45 37 #ifndef G4ScoreSplittingProcess_h 46 #ifndef G4ScoreSplittingProcess_h 38 #define G4ScoreSplittingProcess_h 1 47 #define G4ScoreSplittingProcess_h 1 39 48 40 #include "G4FieldTrack.hh" << 41 #include "G4TouchableHandle.hh" << 42 #include "G4VProcess.hh" << 43 #include "globals.hh" 49 #include "globals.hh" 44 << 45 class G4Step; 50 class G4Step; 46 class G4Navigator; 51 class G4Navigator; 47 class G4TransportationManager; 52 class G4TransportationManager; 48 class G4PathFinder; 53 class G4PathFinder; >> 54 class G4VTouchable; 49 class G4VPhysicalVolume; 55 class G4VPhysicalVolume; 50 class G4ParticleChange; 56 class G4ParticleChange; 51 class G4EnergySplitter; << 57 class G4EnergySplitter; 52 class G4TouchableHistory; << 53 << 54 class G4ScoreSplittingProcess : public G4VProc << 55 { << 56 public: << 57 << 58 G4ScoreSplittingProcess(const G4String& pr << 59 G4ProcessType theT << 60 ~G4ScoreSplittingProcess() override; << 61 << 62 //---------------------------------------- << 63 // Process interface << 64 //---------------------------------------- << 65 << 66 void StartTracking(G4Track*) override; << 67 << 68 //---------------------------------------- << 69 // GetPhysicalInteractionLength() and DoIt << 70 //---------------------------------------- << 71 << 72 G4double AtRestGetPhysicalInteractionLengt << 73 << 74 G4VParticleChange* AtRestDoIt(const G4Trac << 75 58 76 //---------------------------------------- << 59 #include "G4VProcess.hh" 77 // GetPhysicalInteractionLength() and DoIt << 60 #include "G4FieldTrack.hh" 78 //---------------------------------------- << 61 #include "G4TouchableHandle.hh" 79 << 62 class G4TouchableHistory; 80 G4double AlongStepGetPhysicalInteractionLe << 63 // #include "G4TouchableHistory.hh" 81 << 82 << 83 G4VParticleChange* AlongStepDoIt(const G4T << 84 << 85 //---------------------------------------- << 86 // GetPhysicalInteractionLength() and DoIt << 87 //---------------------------------------- << 88 << 89 G4double PostStepGetPhysicalInteractionLen << 90 << 91 << 92 G4VParticleChange* PostStepDoIt(const G4Tr << 93 << 94 void Verbose(const G4Step&) const; << 95 << 96 private: << 97 << 98 G4TouchableHistory* CreateTouchableForSubS << 99 << 100 private: << 101 << 102 void CopyStepStart(const G4Step& step); << 103 64 104 G4Step* fSplitStep; << 65 //------------------------------------------ 105 G4StepPoint* fSplitPreStepPoint; << 66 // 106 G4StepPoint* fSplitPostStepPoint; << 67 // G4ScoreSplittingProcess class >> 68 // >> 69 //------------------------------------------ 107 70 108 G4VParticleChange dummyParticleChange; << 109 G4ParticleChange xParticleChange; << 110 71 111 // ------------------------------- << 72 // Class Description: 112 // Touchables for the Split Step << 113 // ------------------------------- << 114 G4TouchableHandle fOldTouchableH; << 115 G4TouchableHandle fNewTouchableH; << 116 73 117 // Memory of Touchables of full step << 74 class G4ScoreSplittingProcess : public G4VProcess 118 G4TouchableHandle fInitialTouchableH; << 75 { 119 G4TouchableHandle fFinalTouchableH; << 76 public: // with description 120 77 121 G4EnergySplitter* fpEnergySplitter; << 78 //------------------------ >> 79 // Constructor/Destructor >> 80 //------------------------ >> 81 >> 82 G4ScoreSplittingProcess(const G4String& processName = "ScoreSplittingProc", >> 83 G4ProcessType theType = fParameterisation); >> 84 virtual ~G4ScoreSplittingProcess(); >> 85 >> 86 //-------------------------------------------------------------- >> 87 // Process interface >> 88 //-------------------------------------------------------------- >> 89 >> 90 void StartTracking(G4Track*); >> 91 >> 92 //------------------------------------------------------------------------ >> 93 // GetPhysicalInteractionLength() and DoIt() methods for AtRest >> 94 //------------------------------------------------------------------------ >> 95 >> 96 G4double AtRestGetPhysicalInteractionLength( >> 97 const G4Track& , >> 98 G4ForceCondition* >> 99 ); >> 100 >> 101 G4VParticleChange* AtRestDoIt( >> 102 const G4Track& , >> 103 const G4Step& >> 104 ); >> 105 >> 106 //------------------------------------------------------------------------ >> 107 // GetPhysicalInteractionLength() and DoIt() methods for AlongStep >> 108 //------------------------------------------------------------------------ >> 109 >> 110 G4double AlongStepGetPhysicalInteractionLength( >> 111 const G4Track&, >> 112 G4double , >> 113 G4double , >> 114 G4double&, >> 115 G4GPILSelection* >> 116 ); >> 117 >> 118 G4VParticleChange* AlongStepDoIt( >> 119 const G4Track& , >> 120 const G4Step& >> 121 ); >> 122 >> 123 //----------------------------------------------------------------------- >> 124 // GetPhysicalInteractionLength() and DoIt() methods for PostStep >> 125 //----------------------------------------------------------------------- >> 126 >> 127 G4double PostStepGetPhysicalInteractionLength(const G4Track& track, >> 128 G4double previousStepSize, >> 129 G4ForceCondition* condition); >> 130 >> 131 G4VParticleChange* PostStepDoIt(const G4Track& ,const G4Step& ); >> 132 >> 133 private: >> 134 G4TouchableHistory* CreateTouchableForSubStep( G4int newVoxelNum, G4ThreeVector newPosition ); >> 135 >> 136 private: >> 137 void CopyStepStart(const G4Step & step); >> 138 >> 139 G4Step * fSplitStep; >> 140 G4StepPoint *fSplitPreStepPoint; >> 141 G4StepPoint *fSplitPostStepPoint; >> 142 >> 143 G4VParticleChange dummyParticleChange; >> 144 G4ParticleChange xParticleChange; >> 145 >> 146 // G4TransportationManager* fTransportationManager; >> 147 // G4PathFinder* fPathFinder; >> 148 >> 149 // ------------------------------- >> 150 // Touchables for the Split Step >> 151 // ------------------------------- >> 152 G4TouchableHandle fOldTouchableH; >> 153 G4TouchableHandle fNewTouchableH; >> 154 >> 155 // Memory of Touchables of full step >> 156 G4TouchableHandle fInitialTouchableH; >> 157 G4TouchableHandle fFinalTouchableH; >> 158 >> 159 G4EnergySplitter *fpEnergySplitter; >> 160 >> 161 // ****************************************************** >> 162 // For TESTS: >> 163 // ****************************************************** >> 164 public: >> 165 void Verbose(const G4Step&) const; 122 }; 166 }; 123 167 124 #endif 168 #endif 125 169