|
||||
File indexing completed on 2025-01-18 09:58:50
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 // G4ParallelWorldScoringProcess 0027 // 0028 // Class description: 0029 // 0030 // This process takes a parallel world and limits a step 0031 // on the boundaries of volumes in the parallel world. 0032 // It invokes sensitive detectors assigned in the parallel world. 0033 // 0034 // Author: M.Asai (SLAC), 2010. 0035 //--------------------------------------------------------------------- 0036 #ifndef G4ParallelWorldScoringProcess_h 0037 #define G4ParallelWorldScoringProcess_h 1 0038 0039 #include "G4FieldTrack.hh" 0040 #include "G4TouchableHandle.hh" 0041 #include "G4VProcess.hh" 0042 #include "globals.hh" 0043 0044 class G4Step; 0045 class G4Navigator; 0046 class G4TransportationManager; 0047 class G4PathFinder; 0048 class G4VPhysicalVolume; 0049 class G4ParticleChange; 0050 class G4ParticleDefinition; 0051 0052 class G4ParallelWorldScoringProcess : public G4VProcess 0053 { 0054 public: 0055 0056 G4ParallelWorldScoringProcess(const G4String& processName = "ParaWorldScore", 0057 G4ProcessType theType = fParameterisation); 0058 ~G4ParallelWorldScoringProcess() override; 0059 0060 //-------------------------------------------------------------- 0061 // Set Paralle World 0062 //-------------------------------------------------------------- 0063 0064 void SetParallelWorld(G4String parallelWorldName); 0065 void SetParallelWorld(G4VPhysicalVolume* parallelWorld); 0066 G4bool IsAtRestRequired(G4ParticleDefinition* partDef); 0067 0068 //-------------------------------------------------------------- 0069 // Process interface 0070 //-------------------------------------------------------------- 0071 0072 void StartTracking(G4Track*) override; 0073 0074 //------------------------------------------------------------------------ 0075 // GetPhysicalInteractionLength() and DoIt() methods for AtRest 0076 //------------------------------------------------------------------------ 0077 0078 G4double AtRestGetPhysicalInteractionLength(const G4Track&, G4ForceCondition*) override; 0079 0080 G4VParticleChange* AtRestDoIt(const G4Track&, const G4Step&) override; 0081 0082 //------------------------------------------------------------------------ 0083 // GetPhysicalInteractionLength() and DoIt() methods for AlongStep 0084 //------------------------------------------------------------------------ 0085 0086 G4double AlongStepGetPhysicalInteractionLength(const G4Track&, G4double, G4double, G4double&, 0087 G4GPILSelection*) override; 0088 0089 G4VParticleChange* AlongStepDoIt(const G4Track&, const G4Step&) override; 0090 0091 //----------------------------------------------------------------------- 0092 // GetPhysicalInteractionLength() and DoIt() methods for PostStep 0093 //----------------------------------------------------------------------- 0094 0095 G4double PostStepGetPhysicalInteractionLength(const G4Track& track, G4double previousStepSize, 0096 G4ForceCondition* condition) override; 0097 0098 G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&) override; 0099 0100 void Verbose(const G4Step&) const; 0101 0102 private: 0103 0104 void CopyStep(const G4Step& step); 0105 0106 G4Step* fGhostStep; 0107 G4StepPoint* fGhostPreStepPoint; 0108 G4StepPoint* fGhostPostStepPoint; 0109 0110 G4VParticleChange aDummyParticleChange; 0111 G4ParticleChange xParticleChange; 0112 0113 G4TransportationManager* fTransportationManager; 0114 G4PathFinder* fPathFinder; 0115 0116 // ------------------------------- 0117 // Navigation in the Ghost World: 0118 // ------------------------------- 0119 G4String fGhostWorldName; 0120 G4VPhysicalVolume* fGhostWorld; 0121 G4Navigator* fGhostNavigator{nullptr}; 0122 G4int fNavigatorID{-1}; 0123 G4TouchableHandle fOldGhostTouchable; 0124 G4TouchableHandle fNewGhostTouchable; 0125 G4FieldTrack fFieldTrack; 0126 G4double fGhostSafety; 0127 G4bool fOnBoundary; 0128 }; 0129 0130 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |