Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Geant4/G4PhysListFactoryAlt.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 //
0027 //---------------------------------------------------------------------------
0028 //
0029 // ClassName:  G4PhysListFactoryAlt
0030 //
0031 // Author:  R. Hatcher  2014-10-15
0032 //
0033 // Modified:
0034 //
0035 //----------------------------------------------------------------------------
0036 //
0037 #ifndef G4PhysListFactoryAlt_h
0038 #define G4PhysListFactoryAlt_h 1
0039 
0040 #include "G4VModularPhysicsList.hh"
0041 #include "globals.hh"
0042 
0043 namespace g4alt {
0044 
0045 class G4PhysListFactory
0046 {
0047 public:
0048 
0049   G4PhysListFactory(G4int verbose = 1);
0050 
0051   ~G4PhysListFactory();
0052 
0053   G4VModularPhysicsList* GetReferencePhysList(const G4String&);
0054   // instantiate PhysList by name
0055 
0056   G4VModularPhysicsList* ReferencePhysList();
0057   // instantiate PhysList by environment variable "PHYSLIST"
0058 
0059   void SetDefaultReferencePhysList(const G4String& name="");
0060   // set a prefered list in case where $PHYSLIST isn't defined
0061   // if not set (or called with "") this falls back to system default
0062 
0063   G4bool IsReferencePhysList(const G4String&) const;
0064   // check if the name is in the list of PhysLists names
0065 
0066   const std::vector<G4String>& AvailablePhysLists() const;
0067   // list of avalable base Phys Lists
0068 
0069   const std::vector<G4String>& AvailablePhysListsEM() const;
0070   // list of avalable EM options
0071 
0072   void PrintAvailablePhysLists() const;
0073   // print what users can select
0074 
0075   void  SetVerbose(G4int val);
0076   G4int GetVerbose() const;
0077 
0078   void  SetUnknownFatal(G4int val);
0079   G4int GetUnknownFatal() const;
0080   // throw an exception if requested list is unsatisfiable?
0081 
0082 private:
0083 
0084   // no data
0085 };
0086 
0087 }  // end-of-namespace 'g4alt'
0088 
0089 #endif
0090 
0091 
0092