Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /geant4/examples/extended/parameterisations/Par02/include/Par02FastSimModelTracker.hh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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