G4NeutronHPData.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 //
00027 // $Id$
00028 //
00029  // Hadronic Process: Very Low Energy Neutron X-Sections
00030  // original by H.P. Wellisch, TRIUMF, 14-Feb-97
00031  // Has the Cross-section data for all materials.
00032  
00033 #ifndef G4NeutronHPData_h
00034 #define G4NeutronHPData_h 1
00035 #include "globals.hh"
00036 #include "G4Element.hh"
00037 #include "G4NeutronHPElasticData.hh"
00038 #include "G4NeutronHPInelasticData.hh"
00039 #include "G4NeutronHPFissionData.hh"
00040 #include "G4NeutronHPCaptureData.hh"
00041 #include "G4NeutronHPElementData.hh"
00042 
00043 #include <vector>
00044 
00045 class G4NeutronHPData
00046 {
00047 public:
00048 
00049   G4NeutronHPData();
00050 
00051   ~G4NeutronHPData();
00052 
00053   inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPFissionData * theP)
00054   {
00055      if ( numEle <= (G4int)thE->GetIndex() ) addPhysicsVector(); 
00056      return DoPhysicsVector((*theData[thE->GetIndex()]).GetData(theP));
00057   }
00058   inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPCaptureData * theP)
00059   {
00060      if ( numEle <= (G4int)thE->GetIndex() ) addPhysicsVector(); 
00061      return DoPhysicsVector((*theData[thE->GetIndex()]).GetData(theP));
00062   }
00063   inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPElasticData * theP)
00064   {
00065      if ( numEle <= (G4int)thE->GetIndex() ) addPhysicsVector(); 
00066      return DoPhysicsVector((*theData[thE->GetIndex()]).GetData(theP));
00067   }
00068   inline G4PhysicsVector * MakePhysicsVector(G4Element * thE, G4NeutronHPInelasticData * theP)
00069   {
00070 //     G4cout << "entered G4NeutronHPData::MakePhysicsVector!!!"<<G4endl;
00071 //     G4cout << "thE->GetIndex()="<<thE->GetIndex()<<G4endl;
00072      if ( numEle <= (G4int)thE->GetIndex() ) addPhysicsVector(); 
00073      return DoPhysicsVector((*theData[thE->GetIndex()]).GetData(theP));
00074   }
00075 
00076   G4PhysicsVector * DoPhysicsVector(G4NeutronHPVector * theVector);
00077   
00078   static G4NeutronHPData * Instance();
00079   
00080 private:
00081 
00082   std::vector< G4NeutronHPElementData* > theData;
00083   G4int numEle;
00084   void addPhysicsVector();
00085   
00086 };
00087 
00088 #endif

Generated on Mon May 27 17:49:00 2013 for Geant4 by  doxygen 1.4.7