Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4ParticleHPContEnergyAngular.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 //
0027 //
0028 // 080721 Add ClearHistories() method by T. Koi
0029 //
0030 // P. Arce, June-2014 Conversion neutron_hp to particle_hp
0031 // V. Ivanchenko, July-2023 Basic revision of particle HP classes
0032 //
0033 #ifndef G4ParticleHPContEnergyAngular_h
0034 #define G4ParticleHPContEnergyAngular_h 1
0035 
0036 #include "G4Cache.hh"
0037 #include "G4InterpolationManager.hh"
0038 #include "G4ParticleHPContAngularPar.hh"
0039 #include "G4VParticleHPEnergyAngular.hh"
0040 #include "G4ios.hh"
0041 #include "globals.hh"
0042 
0043 #include <fstream>
0044 
0045 class G4ParticleDefinition;
0046 
0047 class G4ParticleHPContEnergyAngular : public G4VParticleHPEnergyAngular
0048 {
0049 public:
0050 
0051   G4ParticleHPContEnergyAngular(const G4ParticleDefinition* proj);
0052 
0053   ~G4ParticleHPContEnergyAngular() override;
0054 
0055   void Init(std::istream& aDataFile) override;
0056 
0057   G4double MeanEnergyOfThisInteraction() override;
0058   G4ReactionProduct* Sample(G4double anEnergy, G4double massCode, G4double mass) override;
0059   void ClearHistories() override;
0060 
0061   G4ParticleHPContEnergyAngular(G4ParticleHPContEnergyAngular&) = delete;
0062   G4ParticleHPContEnergyAngular& operator=
0063   (const G4ParticleHPContEnergyAngular& right) = delete;
0064 
0065 private:
0066   G4double theTargetCode{-1};
0067   G4int theAngularRep{-1};
0068   G4int nEnergy{-1};
0069   G4int theInterpolation{-1};
0070 
0071   G4InterpolationManager theManager;  // knows the interpolation between stores
0072   G4ParticleHPContAngularPar* theAngular;
0073 
0074   G4Cache<G4double> currentMeanEnergy;
0075   G4Cache<G4ParticleHPContAngularPar*> fCacheAngular;
0076   const G4ParticleDefinition* theProjectile;
0077 };
0078 
0079 #endif