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