Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4AblaInterface.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 // ABLAXX statistical de-excitation model
0027 // Jose Luis Rodriguez, UDC (translation from ABLA07 and contact person)
0028 // Pekka Kaitaniemi, HIP (initial translation of ablav3p)
0029 // Aleksandra Kelic, GSI (ABLA07 code)
0030 // Davide Mancusi, CEA (contact person INCL)
0031 // Aatos Heikkinen, HIP (project coordination)
0032 //
0033 
0034 #pragma once
0035 
0036 #include "globals.hh"
0037 
0038 #include "G4Abla.hh"
0039 #include "G4Fragment.hh"
0040 #include "G4HadFinalState.hh"
0041 #include "G4HadProjectile.hh"
0042 #include "G4Nucleus.hh"
0043 #include "G4ReactionProduct.hh"
0044 #include "G4VPreCompoundModel.hh"
0045 
0046 class G4ExcitationHandler;
0047 class G4HadFinalState;
0048 
0049 class G4AblaInterface : public G4VPreCompoundModel {
0050 public:
0051   G4AblaInterface(G4ExcitationHandler *ptr = nullptr);
0052   virtual ~G4AblaInterface();
0053 
0054   virtual G4ReactionProductVector *DeExcite(G4Fragment &aFragment);
0055 
0056   virtual G4HadFinalState *ApplyYourself(G4HadProjectile const &,
0057                                          G4Nucleus &) final;
0058 
0059   virtual void BuildPhysicsTable(const G4ParticleDefinition &) final;
0060 
0061   virtual void InitialiseModel() final;
0062 
0063   virtual void ModelDescription(std::ostream &outFile) const;
0064 
0065   virtual void DeExciteModelDescription(std::ostream &outFile) const;
0066 
0067 private:
0068   G4HadFinalState applyYourselfResult;
0069   G4VarNtp *ablaResult;
0070   G4Abla *theABLAModel;
0071   G4long eventNumber;
0072   G4int secID; // Creator model ID for the secondaries created by ABLA
0073 
0074   G4bool isInitialised;
0075 
0076   /// \brief Convert an Abla particle to a G4DynamicParticle
0077   G4ReactionProduct *toG4Particle(G4int A, G4int Z, G4int S, G4double kinE,
0078                                   G4double px, G4double py, G4double pz) const;
0079 
0080   /// \brief Convert A, Z and S to a G4ParticleDefinition
0081   G4ParticleDefinition *toG4ParticleDefinition(G4int A, G4int Z, G4int S) const;
0082 };