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