Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:22:32

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