G4LENDUsedTarget.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 #ifndef G4LENDUsedTarget_h
00027 #define G4LENDUsedTarget_h 1
00028 
00029 // Class Description
00030 // Container of LEND (Low Energy Nuclear Data) target (nucleus) 
00031 // LEND is Geant4 interface for GIDI (General Interaction Data Interface) 
00032 // which gives a discription of nuclear and atomic reactions, such as
00033 //    Binary collision cross sections
00034 //    Particle number multiplicity distributions of reaction products
00035 //    Energy and angular distributions of reaction products
00036 //    Derived calculational constants
00037 // GIDI is developped at Lawrence Livermore National Laboratory
00038 // Class Description - End
00039 
00040 // 071025 First implementation done by T. Koi (SLAC/SCCS)
00041 // 101118 Name modifications for release T. Koi (SLAC/PPA)
00042 
00043 #include "G4LENDHeader.hh"
00044 #include "G4ParticleDefinition.hh"
00045 
00046 class G4LENDUsedTarget 
00047 {
00048 
00049    public:
00050 
00051       G4LENDUsedTarget( G4ParticleDefinition* pd , G4String Evaluation , G4int iZ , G4int iA , G4int iM = 0 )
00052       : allow_nat ( false ) 
00053       , allow_anything ( false ) 
00054       , min_Z ( 0 )
00055       , max_Z ( 113 ) 
00056       , min_A ( 1 )
00057       , max_A ( 278 )
00058       , min_M ( 0 )
00059       , max_M ( 10 )
00060       {
00061 
00062          proj = pd;
00063 
00064          wanted_Z = iZ;
00065          wanted_A = iA;
00066          wanted_M = iM;
00067          wanted_Evaluation = Evaluation;
00068 
00069          actual_Z = -1;
00070          actual_A = -1;
00071          actual_M = -1;
00072          actual_Evaluation = "na";
00073 
00074          searchTarget();
00075       }
00076 
00077       ~G4LENDUsedTarget(){;};
00078 
00079       void AllowNat()
00080       {
00081          allow_nat = true;
00082          searchTarget();
00083       }; 
00084 
00085       void AllowAny()
00086       {
00087          allow_anything = true;
00088          searchTarget();
00089       }; 
00090 
00091       G4int GetWantedZ(){ return wanted_Z; };
00092       G4int GetWantedA(){ return wanted_A; };
00093       G4int GetWantedM(){ return wanted_M; };
00094 
00095       G4int GetActualZ(){ return actual_Z; };
00096       G4int GetActualA(){ return actual_A; };
00097       G4int GetActualM(){ return actual_M; };
00098 
00099       G4String GetWantedEvaluation(){ return wanted_Evaluation; };
00100       G4String GetActualEvaluation(){ return actual_Evaluation; };
00101 
00102       G4GIDI_target* GetTarget(){ return target; };
00103 
00104    private:
00105 
00106       void searchTarget();
00107 
00108       G4ParticleDefinition* proj;
00109 
00110       G4int wanted_Z;
00111       G4int wanted_A;
00112       G4int wanted_M;
00113 
00114       G4String wanted_Evaluation;
00115 
00116       G4bool allow_nat; 
00117       G4bool allow_anything; 
00118 
00119       G4GIDI_target* target;
00120       
00121       G4int actual_Z;
00122       G4int actual_A;
00123       G4int actual_M;
00124       G4String actual_Evaluation;
00125 
00126       G4int min_Z;
00127       G4int max_Z;
00128       G4int min_A;
00129       G4int max_A;
00130       G4int min_M;
00131       G4int max_M;
00132 };
00133 
00134 #endif

Generated on Mon May 27 17:48:45 2013 for Geant4 by  doxygen 1.4.7