|
|
|||
File indexing completed on 2026-09-15 08:29:41
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 Par02FastSimModelHCal.hh 0027 /// \brief Definition of the Par02FastSimModelHCal class 0028 0029 #ifndef PAR02_HCAL_FAST_SIM_MODEL_H 0030 #define PAR02_HCAL_FAST_SIM_MODEL_H 0031 0032 #include "Par02DetectorParametrisation.hh" 0033 0034 #include "G4Step.hh" 0035 #include "G4VFastSimulationModel.hh" 0036 0037 /// Shortcut to the ordinary tracking for hadronic calorimeters. 0038 /// 0039 /// Fast simulation model describes what should be done instead of a 0040 /// normal tracking. Instead of the ordinary tracking, a particle deposits 0041 /// its energy at the entrance to the hadronic calorimeter and its value 0042 /// is smeared (by Par02Smearer::SmearMomentum()). Based on G4 0043 /// examples/extended/parametrisations/Par01/include/Par01EMShowerModel.hh . 0044 /// @author Anna Zaborowska 0045 0046 class Par02FastSimModelHCal : public G4VFastSimulationModel 0047 { 0048 public: 0049 /// A constructor. 0050 /// @param aModelName A name of the fast simulation model. 0051 /// @param aEnvelope A region where the model can take over the ordinary tracking. 0052 /// @param aParamType A parametrisation type. 0053 Par02FastSimModelHCal(G4String aModelName, G4Region* aEnvelope, 0054 Par02DetectorParametrisation::Parametrisation aParamType); 0055 0056 /// A constructor. 0057 /// @param aModelName A name of the fast simulation model. 0058 /// @param aEnvelope A region where the model can take over the ordinary tracking. 0059 Par02FastSimModelHCal(G4String aModelName, G4Region* aEnvelope); 0060 0061 /// A constructor. 0062 /// @param aModelName A name of the fast simulation model. 0063 Par02FastSimModelHCal(G4String aModelName); 0064 0065 ~Par02FastSimModelHCal(); 0066 0067 /// Checks if this model should be applied to this particle type. 0068 /// @param aParticle A particle definition (type). 0069 virtual G4bool IsApplicable(const G4ParticleDefinition& aParticle); 0070 0071 /// Checks if the model should be applied, taking into account the 0072 /// kinematics of a track. 0073 /// @param aFastTrack A track. 0074 virtual G4bool ModelTrigger(const G4FastTrack& aFastTrack); 0075 0076 /// Smears the energy deposit and saves it, together with the 0077 /// position of the deposit, the hadronic calorimeter resolution and 0078 /// efficiency to the Par02PrimaryParticleInformation. 0079 /// @param aFastTrack A track. 0080 /// @param aFastStep A step. 0081 virtual void DoIt(const G4FastTrack& aFastTrack, G4FastStep& aFastStep); 0082 0083 private: 0084 /// A pointer to Par02DetectorParametrisation used to get the efficiency and 0085 /// resolution of the detector for a given particle and parametrisation type. 0086 Par02DetectorParametrisation* fCalculateParametrisation; 0087 0088 /// A parametrisation type. 0089 Par02DetectorParametrisation::Parametrisation fParametrisation; 0090 }; 0091 0092 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|