/[PAMELA software]/PamVMC_update/config/g4Config_ceci.C
ViewVC logotype

Annotation of /PamVMC_update/config/g4Config_ceci.C

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Oct 15 15:51:33 2013 UTC (11 years, 1 month ago) by formato
Branch point for: MAIN, rel
File MIME type: text/plain
Initial revision

1 formato 1.1 // $Id: g4Config.C,v 1.5 2009-06-12 18:39:13 pam-rm2 Exp $
2     //
3     // Configuration macro for Geant4 VirtualMC for PamG4VMC
4     // for geometry defined with Root and selected Geant4 native navigation
5    
6     void Config()
7     {
8    
9     gSystem->Load("libG4phys_builders");
10     gSystem->Load("libG4phys_lists");
11    
12     TString PAM_VMC=gSystem->Getenv("PAM_VMC");
13     TString PLAT=gSystem->Getenv("PLATFORM");
14    
15     gSystem->Load(PAM_VMC+"/lib/tgt_"+PLAT+"/libPamG4RunConfiguration");
16     //std::cout<<PAM_VMC+"/lib/tgt_"+PLAT+"/libPamG4RunConfiguration"<<std::endl;
17     PamG4RunConfiguration* runConfiguration
18     = new PamG4RunConfiguration("geomRoot","LHEP","specialCuts+specialControls+stepLimiter");
19    
20     TGeant4* geant4
21     = new TGeant4("TGeant4_PAMELA", "The Geant4 PAMELA Monte Carlo", runConfiguration);
22    
23     std::cout<<"TGeant config created..."<<std::endl;
24     geant4->ProcessGeantMacro(PAM_VMC+"/config/g4config_ceci.in");
25     std::cout<<"TGeant macro g4config_ceci.in processed..."<<std::endl;
26     }

  ViewVC Help
Powered by ViewVC 1.1.23