|
||||
File indexing completed on 2025-01-18 09:58:16
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 #ifndef G4FASTSIMHITMAKER_HH 0028 #define G4FASTSIMHITMAKER_HH 0029 0030 #include "G4FastHit.hh" 0031 #include "G4FastTrack.hh" 0032 #include "G4Navigator.hh" 0033 #include "G4TouchableHandle.hh" 0034 class G4Step; 0035 class G4StepPoint; 0036 class G4VProcess; 0037 0038 /** 0039 * @brief Helper class for hit creation 0040 * 0041 * Helper class that can be employed in the fast simulation models. 0042 * It allows to deposit energy at given position (G4FastHit), provided it is 0043 * located within the sensitive detector that derives from 0044 * G4VFastSimSensitiveDetector base class. 0045 * An extended example extended/parameterisations/Par03 demonstrates how to use 0046 * G4FastSimHitMaker to create multiple deposits from the fast simulation model. 0047 * 0048 */ 0049 0050 class G4FastSimHitMaker 0051 { 0052 public: 0053 G4FastSimHitMaker(); 0054 ~G4FastSimHitMaker(); 0055 0056 /// Deposit energy at given position. 0057 /// @param[in] aHit Created hit (energy and position) 0058 /// @param[in] aTrack Fast track with access to particle's track and 0059 /// properties in envelope's local coordinates 0060 void make(const G4FastHit& aHit, const G4FastTrack& aTrack); 0061 /// If sensitive detector class is in the parallel world, it must be 0062 /// specified, otherwise no sensitive detector will be found (mass geometry 0063 /// will be checked). 0064 /// @param[in] aName Name of the parallel world 0065 inline void SetNameOfWorldWithSD(const G4String& aName) { fWorldWithSdName = aName; }; 0066 inline void SetProcess(G4VProcess* proc) { fpProcess = proc; } 0067 0068 private: 0069 /// Touchable 0070 G4TouchableHandle fTouchableHandle; 0071 /// Navigator 0072 G4Navigator* fpNavigator; 0073 /// Flag specifying if navigator has been already set up 0074 G4bool fNaviSetup; 0075 /// Name of the world containing the sensitive detector. If empty, default 0076 /// mass world is used. 0077 G4String fWorldWithSdName; 0078 0079 G4Step* fpSpotS; 0080 G4StepPoint* fpSpotP; 0081 G4VProcess* fpProcess = nullptr; 0082 }; 0083 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |