|
|
|||
File indexing completed on 2026-09-15 08:29:42
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 /// \file Par04DefineMeshModel.hh 0027 /// \brief Definition of the Par04DefineMeshModel class 0028 0029 #ifndef PAR04DEFINEMESHMODEL_HH 0030 #define PAR04DEFINEMESHMODEL_HH 0031 0032 #include "G4VFastSimulationModel.hh" // for G4VFastSimulationModel 0033 0034 #include <G4String.hh> // for G4String 0035 #include <G4Types.hh> // for G4bool 0036 class G4FastStep; 0037 class G4FastTrack; 0038 class G4ParticleDefinition; 0039 class G4Region; 0040 0041 /** 0042 * @brief Defince mesh for energy scoring 0043 * 0044 * Fast simulation model is used in order to define where particle enters the detector 0045 * and its direction. That data is used to define the mesh used for energy scoring. 0046 * TODO To make the simulation faster, this model could be attached to a very thin layer at the 0047 * entrance to the calorimeter instead of attaching it to the volume of the detector. 0048 * 0049 */ 0050 0051 class Par04DefineMeshModel : public G4VFastSimulationModel 0052 { 0053 public: 0054 Par04DefineMeshModel(G4String, G4Region*); 0055 Par04DefineMeshModel(G4String); 0056 ~Par04DefineMeshModel(); 0057 0058 /// Check if particle is entering the volume. Check particle energy. It must be 0059 /// no smaller than 99% of the primary particle energy. This is to ensure that in case of 0060 /// prior interactions, particle energy does not differ (much) from the assumed 0061 /// energy. 0062 virtual G4bool ModelTrigger(const G4FastTrack&) final; 0063 /// Model is applicable to all particles. 0064 virtual G4bool IsApplicable(const G4ParticleDefinition&) final; 0065 /// Check particle direction, entrance point, and store it in event information. 0066 /// Then go back to the full simulation. 0067 virtual void DoIt(const G4FastTrack&, G4FastStep&) final; 0068 }; 0069 #endif /* PAR04DEFINEMESHMODEL_HH */
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|