00001 //____________________________________________________________________ 00002 // 00003 // $Id: MakeXsection.C,v 1.3 2006/03/17 11:42:24 cholm Exp $ 00004 // 00005 // Script to generate cross-section tables for some particles in some 00006 // mediums. The output is put in xsec.root. 00007 // 00008 // It uses the script GetXsection.C and Compile.C to compile the 00009 // aforementioned script. 00010 // 00011 // Note, that VMC _must_ be the TGeant3TGeo VMC. 00012 // 00013 void 00014 MakeXsection() 00015 { 00016 gROOT->ProcessLine(".x Compile.C(\"$(ALICE_ROOT)/FMD/scripts/GetXsection.C\""); 00017 gAlice->InitMC("$(ALICE_ROOT)/FMD/Config.C"); 00018 TFile* file = TFile::Open("xsec.root", "RECREATE"); 00019 GetXsection("FMD_Si$", "pi+"); 00020 file->Close(); 00021 } 00022 //____________________________________________________________________ 00023 // 00024 // EOF 00025 // 00026