Back to home page

EIC code displayed by LXR

 
 

    


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

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 #ifndef G4BatemanParameters_h
0027 #define G4BatemanParameters_h 1
0028 
0029 ////////////////////////////////////////////////////////////////////////////////
0030 //                                                                            //
0031 //  File:   G4BatemanParameters.hh                                            //
0032 //  Author: D.H. Wright (SLAC)                                                //
0033 //  Date:   15 December 2015                                                  //
0034 //  Description: renamed and streamlined version of F. Lei and P. Truscott's  //
0035 //               class G4RadioactiveDecayRate.  This class contains the decay //
0036 //               times and coefficients of the extended Bateman equations for //
0037 //               the progeny of a given nuclide (Z, A, E).                    //
0038 //                                                                            //
0039 ////////////////////////////////////////////////////////////////////////////////
0040 
0041 #include "G4ios.hh"
0042 #include "globals.hh"
0043 #include <vector>
0044 
0045 class G4BatemanParameters
0046 {
0047 
0048 public:
0049   G4BatemanParameters();
0050 
0051   virtual ~G4BatemanParameters();
0052 
0053   // copy constructor and assignment operator
0054   G4BatemanParameters(const G4BatemanParameters &);
0055   G4BatemanParameters& operator=(const G4BatemanParameters&);
0056 
0057   // equality operators
0058   G4bool operator==(const G4BatemanParameters& right) const
0059     {return (this == &right);};
0060   G4bool operator!=(const G4BatemanParameters& right) const
0061     {return (this != &right);};
0062 
0063   void DumpInfo();
0064 
0065   inline G4int GetZ() const {return Z;}
0066   inline G4int GetA() const {return A;}
0067   inline G4double GetE() const {return E;}
0068   inline G4int GetGeneration() const {return generation;}
0069   inline std::vector<G4double> GetAcoefficients() const
0070     {return Acoeffs;}
0071   inline std::vector<G4double> GetTaus() const {return taus;}
0072 
0073   inline void SetZ(G4int value) {Z = value;}
0074   inline void SetA(G4int value) {A = value;}
0075   inline void SetE(G4double value) {E = value;}
0076   inline void SetGeneration(G4int value) {generation = value;}
0077   inline void SetAcoefficients(std::vector<G4double> value)
0078     {Acoeffs = value;}
0079   inline void SetTaus(std::vector<G4double> value) {taus = value;}
0080 
0081   void SetParameters(G4int /*Z*/, G4int /*A*/, G4double /*E*/, G4int /*G*/,
0082                      std::vector<G4double> /*Coeffs*/,
0083                      std::vector<G4double> /*taus*/);
0084 
0085 private:
0086   G4int Z;
0087   G4int A;
0088   G4double E;
0089   G4int generation;
0090   std::vector<G4double> Acoeffs;
0091   std::vector<G4double> taus;
0092 
0093 };
0094 #endif