G4GenericPhysicsList.icc

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 // $Id$
00027 //
00028 //---------------------------------------------------------------------------
00029 //
00030 // ClassName:   
00031 //
00032 // Author: Witek Pokorski
00033 //
00034 //
00035 //----------------------------------------------------------------------------
00036 //
00037 
00038 #include "globals.hh"
00039 #include "G4ProcessManager.hh"
00040 #include "G4ProcessVector.hh"
00041 #include "G4ParticleTypes.hh"
00042 #include "G4ParticleTable.hh"
00043 
00044 #include "G4Material.hh"
00045 #include "G4MaterialTable.hh"
00046 #include "G4ios.hh"
00047 #include <iomanip>   
00048 
00049 #include "G4DataQuestionaire.hh"
00050 
00051 
00052 
00053 template<class T> TG4GenericPhysicsList<T>::TG4GenericPhysicsList(G4int ver):  T(), messenger(this, "/PhysicsList/")
00054 {
00055   DeclareProperties();
00056 
00057   G4DataQuestionaire it(photon);
00058   G4cout << "<<< Geant4 Physics List simulation engine: G4GenericPhysicsList"<<G4endl;
00059   G4cout <<G4endl;
00060     this->defaultCutValue = 0.7*CLHEP::mm;
00061   this->SetVerboseLevel(ver);
00062 }
00063 
00064 template<class T> TG4GenericPhysicsList<T>::TG4GenericPhysicsList(std::vector<G4String>* physConstr, G4int ver):  T(), messenger(this, "/PhysicsList/")
00065 {
00066   DeclareProperties();
00067 
00068   G4DataQuestionaire it(photon);
00069   G4cout << "<<< Geant4 Physics List simulation engine: G4GenericPhysicsList"<<G4endl;
00070   G4cout <<G4endl;
00071     this->defaultCutValue = 0.7*CLHEP::mm;
00072   this->SetVerboseLevel(ver);
00073 
00074   for(std::vector<G4String>::iterator i=physConstr->begin(); i!=physConstr->end(); i++) RegisterPhysicsConstructor(*i);
00075 }
00076 
00077 template<class T> TG4GenericPhysicsList<T>::~TG4GenericPhysicsList()
00078 {
00079 }
00080 
00081 template<class T> void TG4GenericPhysicsList<T>::SetCuts()
00082 {
00083   if (this->verboseLevel >1){
00084     G4cout << "G4GenericPhysicsList::SetCuts:";
00085   }  
00086 
00087   this->SetCutsWithDefault();   
00088  
00089 }
00090 
00091 template<class T> void TG4GenericPhysicsList<T>::DeclareProperties()
00092 {
00093   messenger.DeclareProperty("defaultCutValue", this->defaultCutValue, "Default Cut Value");
00094   messenger.DeclareMethod("SetVerboseLevel", &TG4GenericPhysicsList::SetVerboseLevel, "Verbose Level");
00095   
00096   messenger.DeclareMethod("RegisterPhysics", &TG4GenericPhysicsList::RegisterPhysicsConstructor, "Register Physics Constructor");
00097 }

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