Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4ErrorEnergyLoss.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 // Class description:
0027 //
0028 // Description: Continuous Process to calculate energy loss without 
0029 //              fluctuations through G4EnergyLossForExtrapolator
0030 
0031 // History:
0032 //   Created:     2007-05-12
0033 //   Author:      Pedro Arce
0034 //
0035 //   Modified:
0036 //
0037 
0038 #ifndef G4ErrorEnergyLoss_hh
0039 #define G4ErrorEnergyLoss_hh
0040 
0041 #include "globals.hh"
0042 #include "G4VContinuousProcess.hh"
0043 #include "G4ProcessType.hh"
0044 
0045 class G4EnergyLossForExtrapolator;
0046 
0047 class G4ErrorEnergyLoss : public G4VContinuousProcess
0048 {
0049 
0050 public: 
0051 
0052   explicit G4ErrorEnergyLoss(const G4String& processName = "G4ErrorEnergyLoss",
0053                              G4ProcessType type = fElectromagnetic);
0054 
0055   ~G4ErrorEnergyLoss() override;
0056 
0057   G4bool IsApplicable(const G4ParticleDefinition& aParticleType) override;
0058   // Returns true -> 'is applicable', for all charged particles.
0059 
0060   G4double GetContinuousStepLimit(const G4Track& aTrack,
0061                   G4double, G4double currentMinimumStep,
0062                   G4double& ) override;
0063 
0064   G4VParticleChange* AlongStepDoIt(const G4Track& aTrack, 
0065                    const G4Step&  aStep) override;
0066   // This is the method implementing the energy loss process.
0067 
0068   // Get and Set methods
0069   inline G4double GetStepLimit() const { return theStepLimit; }
0070   inline void SetStepLimit( G4double val ) { theStepLimit = val; }
0071 
0072   // copy constructor and hide assignment operator
0073   G4ErrorEnergyLoss(G4ErrorEnergyLoss &) = delete;
0074   G4ErrorEnergyLoss & operator=(const G4ErrorEnergyLoss &right) = delete;
0075 
0076 private:
0077 
0078   void InstantiateEforExtrapolator();
0079 
0080   G4EnergyLossForExtrapolator* theELossForExtrapolator;
0081 
0082   G4double theStepLimit;
0083   G4double theFractionLimit = 0.2;
0084 };
0085 
0086 #endif