Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:51

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, GSI (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 #define ABLAXX_IN_GEANT4_MODE 1
0034 
0035 #include "globals.hh"
0036 
0037 #ifndef G4AblaVirtualData_hh
0038 #define G4AblaVirtualData_hh 1
0039 
0040 #ifdef ABLAXX_IN_GEANT4_MODE
0041 #include "globals.hh"
0042 #else
0043 #include "G4INCLGeant4Compat.hh"
0044 #include "G4INCLConfig.hh"
0045 #endif
0046 
0047 
0048 /**
0049  * An interface to data used by ABLA. This interface allows
0050  * us to abstract the actual source of data. Currently the data is
0051  * read from datafiles by using class G4AblaDataFile.  @see
0052  * G4AblaDataFile
0053  */
0054 
0055 class G4AblaVirtualData {
0056 protected:
0057 
0058   /**
0059    * Constructor, destructor
0060    */
0061 #ifdef ABLAXX_IN_GEANT4_MODE
0062   G4AblaVirtualData();
0063 #else
0064   G4AblaVirtualData(G4INCL::Config *);
0065 #endif
0066   virtual ~G4AblaVirtualData();
0067 
0068 public:
0069   /**
0070    * Set the value of Alpha.
0071    */
0072   G4bool setAlpha(G4int A, G4int Z, G4double value);
0073 
0074   /**
0075    * Set the value of Ecnz.
0076    */
0077   G4bool setEcnz(G4int A, G4int Z, G4double value);
0078 
0079   /**
0080    * Set the value of Vgsld.
0081    */
0082   G4bool setVgsld(G4int A, G4int Z, G4double value);
0083 
0084   /**
0085    * Set the value of Pace2.
0086    */
0087   G4bool setPace2(G4int A, G4int Z, G4double value);
0088 
0089   /**
0090    * Set the value of RMS.
0091    */
0092   G4bool setRms(G4int A, G4int Z, G4double value);
0093 
0094   /**
0095    * Set the value of experimental masses.
0096    */
0097   G4bool setMexp(G4int A, G4int Z, G4double value);
0098 
0099   /**
0100    * Set the value of experimental masses ID.
0101    */
0102   G4bool setMexpID(G4int A, G4int Z, G4int value);
0103 
0104   /**
0105    * Set the value of beta2 deformation.
0106    */
0107   G4bool setBeta2(G4int A, G4int Z, G4double value);
0108 
0109   /**
0110    * Set the value of beta4 deformation.
0111    */
0112   G4bool setBeta4(G4int A, G4int Z, G4double value);
0113 
0114 
0115   /**
0116    * Get the value of Alpha.
0117    */
0118   G4double getAlpha(G4int A, G4int Z);
0119 
0120   /**
0121    * Get the value of Ecnz.
0122    */
0123   G4double getEcnz(G4int A, G4int Z);
0124 
0125   /**
0126    * Get the value of Vgsld.
0127    */
0128   G4double getVgsld(G4int A, G4int Z);
0129 
0130   /**
0131    * Get the value of Pace2.
0132    */
0133   G4double getPace2(G4int A, G4int Z);
0134 
0135   /**
0136    * Get the value of RMS.
0137    */
0138   G4double getRms(G4int A, G4int Z);
0139 
0140   /**
0141    * Get the value of experimental masses.
0142    */
0143   G4double getMexp(G4int A, G4int Z);
0144 
0145   /**
0146    * Get the value of experimental masses ID.
0147    */
0148   G4int getMexpID(G4int A, G4int Z);
0149 
0150   /**
0151    * Get the value of beta2 deformation.
0152    */
0153   G4double getBeta2(G4int A, G4int Z);
0154 
0155   /**
0156    * Get the value of beta4 deformation.
0157    */
0158   G4double getBeta4(G4int A, G4int Z);
0159 
0160   G4int getAlphaRows();
0161   G4int getAlphaCols();
0162 
0163   G4int getPaceRows();
0164   G4int getPaceCols();
0165 
0166   virtual G4bool readData() = 0;
0167     
0168 private:
0169 
0170   static const G4int alphaRows = 154;
0171   static const G4int alphaCols = 99;
0172 
0173   static const G4int paceRows = 500;
0174   static const G4int paceCols = 500;
0175 
0176   static const G4int rmsRows = 154;
0177   static const G4int rmsCols = 99;
0178 
0179   static const G4int betaRows = 251;
0180   static const G4int betaCols = 137;
0181 
0182   static const G4int massRows = 154;
0183   static const G4int massCols = 13;
0184 
0185   G4double alpha[alphaRows][alphaCols];
0186   G4double ecnz[alphaRows][alphaCols];
0187   G4double vgsld[alphaRows][alphaCols];
0188   G4double pace2[paceRows][paceCols];
0189   G4double rms[rmsRows][rmsCols];
0190   G4double mexp[massRows][massCols];
0191   G4int mexpid[massRows][massCols];
0192   G4double beta2[betaRows][betaCols];
0193   G4double beta4[betaRows][betaCols];
0194 };
0195 
0196 #endif