flConfig.C 607 B

123456789101112131415161718192021222324
  1. /// Configuration macro for Geant3 VirtualMC
  2. void Config()
  3. {
  4. new TFluka("C++ Interface to Fluka", 1/*verbositylevel*/);
  5. cout << "GConfig: Fluka has been created." << endl;
  6. MpdStack *st = new MpdStack();
  7. st->SetMinPoints(0);
  8. gMC->SetStack( st ) ;
  9. gMC->SetProcess("CKOV",1);
  10. // set the common cuts
  11. TString configm(gSystem->Getenv("VMCWORKDIR"));
  12. TString cuts = configm + "/gconfig/SetCuts.C";
  13. cout << "Physics cuts with script \n "<< cuts.Data() << endl;
  14. Int_t cut=gROOT->LoadMacro(cuts.Data());
  15. if(cut==0)gInterpreter->ProcessLine("SetCuts()");
  16. }