/[PAMELA software]/PamVMC/examples/run_g4_test.C
ViewVC logotype

Diff of /PamVMC/examples/run_g4_test.C

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by nikolas, Wed Feb 18 17:25:29 2009 UTC revision 1.3 by nikolas, Thu Feb 19 18:43:13 2009 UTC
# Line 1  Line 1 
1  // $Id: run_g4.C,v 1.0 2007/06/01  // $Id: run_g4.C,v 1.0 2007/06/01
2  //  //
3  // Macro for running G4PAM_VMC with Geant4.  // Macro for running G4PAM_VMC with Geant4.
4  void run_g4_test(const TString& configMacro = "g4Config.C") {  void run_g4_test(const TString& configMacro = "../macro/g4Config.C") {
5    
6      // Load basic libraries      // Load basic libraries
7      gROOT->LoadMacro("./macro/basiclibs.C");      gROOT->LoadMacro("../macro/basiclibs.C");
8      basiclibs();      basiclibs();
9    
10      // Load PAMELA libs      // Load PAMELA libs
# Line 15  void run_g4_test(const TString& configMa Line 15  void run_g4_test(const TString& configMa
15            
16      // Load Geant4 libraries      // Load Geant4 libraries
17            
18      gROOT->LoadMacro("./macro/PamG4Libs.C");      gROOT->LoadMacro("../macro/PamG4Libs.C");
19      PamG4Libs();      PamG4Libs();
20            
21      // Load this example libraries      // Load this example libraries
# Line 32  void run_g4_test(const TString& configMa Line 32  void run_g4_test(const TString& configMa
32            
33      // Initialize MC      // Initialize MC
34      appl->InitMC(configMacro);      appl->InitMC(configMacro);
35      ((TGeant4*)gMC)->ProcessGeantMacro("g4config2.in");      ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4config2.in");
36    
37  #define EVENTS 5000    #define EVENTS 5000  
38        
# Line 78  void run_g4_test(const TString& configMa Line 78  void run_g4_test(const TString& configMa
78      }      }
79        
80     // Visualization settings     // Visualization settings
81      // ((TGeant4*)gMC)->ProcessGeantMacro("g4vis.in");      // ((TGeant4*)gMC)->ProcessGeantMacro("../macro/g4vis.in");
82            
83      // Run MC      // Run MC
84      //  appl->RunMC(1000);      //  appl->RunMC(1000);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23