Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:42

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 //
0028 // Geant4 muon neutrino nucleus scattering Process -- header file
0029 // 
0030 // Created  from G4HadronElasticProcess 1.3.19 V. Grichine
0031 //  
0032 // Modified:
0033 //
0034 // 2.3.19 V.Grichine PostStepDoIt implementation
0035 
0036 // Class Description
0037 // General process for neutrino nucleus 2->X scattering  
0038 // Class Description - End
0039 
0040 #ifndef G4MuNeutrinoNucleusProcess_h
0041 #define G4MuNeutrinoNucleusProcess_h 1
0042  
0043 #include "globals.hh"
0044 #include "G4HadronicProcess.hh"
0045 
0046 class G4ParticleDefinition;
0047 class G4MuNeutrinoNucleusTotXsc;
0048 class G4SafetyHelper;
0049 
0050 class G4MuNeutrinoNucleusProcess : public G4HadronicProcess
0051 {
0052 public:
0053 
0054   G4MuNeutrinoNucleusProcess(const G4String& anEnvelopeName,
0055                              const G4String& procName = "muNuNucleus");
0056 
0057   ~G4MuNeutrinoNucleusProcess() override = default;
0058 
0059   G4double PostStepGetPhysicalInteractionLength(
0060                              const G4Track& track,
0061                              G4double previousStepSize,
0062                              G4ForceCondition* condition
0063                             ) override;
0064 
0065   G4double GetMeanFreePath(const G4Track &aTrack,
0066                            G4double, G4ForceCondition*) override;
0067   
0068   G4VParticleChange* PostStepDoIt(const G4Track& aTrack, 
0069                   const G4Step& aStep) override;
0070 
0071   void ProcessDescription(std::ostream& outFile) const override;
0072 
0073   // set internal parameters
0074   void SetLowestEnergy(G4double);
0075   void SetBiasingFactors(G4double bfCc, G4double bfNc);
0076   void SetBiasingFactor(G4double bf);
0077   
0078   // hide assignment operator as private 
0079   G4MuNeutrinoNucleusProcess& operator=
0080   (const G4MuNeutrinoNucleusProcess &right) = delete;
0081   G4MuNeutrinoNucleusProcess(const G4MuNeutrinoNucleusProcess&) = delete;
0082 
0083 private:
0084 
0085   G4MuNeutrinoNucleusTotXsc* fTotXsc;
0086   G4SafetyHelper* safetyHelper;
0087   G4double lowestEnergy;
0088   G4double fNuNuclCcBias{1.0};
0089   G4double fNuNuclNcBias{1.0};
0090   G4double fNuNuclTotXscBias{1.0};
0091   G4String fEnvelopeName;
0092 };
0093 
0094 #endif