Loading...
Searching...
No Matches
Par02FastSimModelEMCal.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27/// \file Par02FastSimModelEMCal.hh
28/// \brief Definition of the Par02FastSimModelEMCal class
29
30#ifndef PAR02_EMCAL_FAST_SIM_MODEL_H
31#define PAR02_EMCAL_FAST_SIM_MODEL_H
32
33#include "G4VFastSimulationModel.hh"
35#include "G4Step.hh"
36
37/// Shortcut to the ordinary tracking for electromagnetic calorimeters.
38///
39/// The fast simulation model describes what should be done instead of a
40/// normal tracking. Instead of the ordinary tracking, a particle deposits
41/// its energy at the entrance to the electromagnetic calorimeter and its value
42/// is smeared (by Par02Smearer::SmearMomentum()). Based on G4
43/// examples/extended/parametrisations/Par01/include/Par01EMShowerModel.hh .
44/// @author Anna Zaborowska
45
47 public:
48
49 /// A constructor.
50 /// @param aModelName A name of the fast simulation model.
51 /// @param aEnvelope A region where the model can take over the ordinary tracking.
52 /// @param aParamType A parametrisation type.
53 Par02FastSimModelEMCal( G4String aModelName, G4Region* aEnvelope,
55
56 /// A constructor.
57 /// @param aModelName A name of the fast simulation model.
58 /// @param aEnvelope A region where the model can take over the ordinary tracking.
59 Par02FastSimModelEMCal( G4String aModelName, G4Region* aEnvelope );
60
61 /// A constructor.
62 /// @param aModelName A name of the fast simulation model.
63 Par02FastSimModelEMCal( G4String aModelName );
64
66
67 /// Checks if this model should be applied to this particle type.
68 /// @param aParticle A particle definition (type).
69 virtual G4bool IsApplicable( const G4ParticleDefinition& aParticle );
70
71 /// Checks if the model should be applied, taking into account the
72 /// kinematics of a track.
73 /// @param aFastTrack A track.
74 virtual G4bool ModelTrigger( const G4FastTrack & aFastTrack );
75
76 /// Smears the energy deposit and saves it, together with the
77 /// position of the deposit, the electromagnetic calorimeter resolution
78 /// and efficiency to the Par02PrimaryParticleInformation.
79 /// @param aFastTrack A track.
80 /// @param aFastStep A step.
81 virtual void DoIt( const G4FastTrack& aFastTrack, G4FastStep& aFastStep );
82
83 private:
84
85 /// A pointer to Par02DetectorParametrisation used to get the efficiency and
86 /// resolution of the detector for a given particle and parametrisation type.
88
89 /// A parametrisation type.
91};
92
93#endif
94
Definition of the Par02DetectorParametrisation class.
Definition of detector resolution and efficiency.
Parametrisation
A parametrisation type (CMS, ATLAS, ALEPH).
Shortcut to the ordinary tracking for electromagnetic calorimeters.
virtual G4bool ModelTrigger(const G4FastTrack &aFastTrack)
Checks if the model should be applied, taking into account the kinematics of a track.
virtual void DoIt(const G4FastTrack &aFastTrack, G4FastStep &aFastStep)
Smears the energy deposit and saves it, together with the position of the deposit,...
Par02DetectorParametrisation::Parametrisation fParametrisation
A parametrisation type.
virtual G4bool IsApplicable(const G4ParticleDefinition &aParticle)
Checks if this model should be applied to this particle type.
Par02DetectorParametrisation * fCalculateParametrisation
A pointer to Par02DetectorParametrisation used to get the efficiency and resolution of the detector f...

Applications | User Support | Publications | Collaboration