A lot of changes after detector review:
[u/mrichter/AliRoot.git] / FMD / scripts / MakeXsection.C
CommitLineData
bf000c32 1//____________________________________________________________________
a1f80595 2//
3// $Id$
4//
5// Script to generate cross-section tables for some particles in some
6// mediums. The output is put in xsec.root.
7//
8// It uses the script GetXsection.C and Compile.C to compile the
9// aforementioned script.
10//
11// Note, that VMC _must_ be the TGeant3TGeo VMC.
12//
13void
14MakeXsection()
15{
9aa0bdc4 16 gROOT->ProcessLine(".x Compile.C(\"$(ALICE_ROOT)/FMD/scripts/GetXsection.C\"");
a1f80595 17 gAlice->InitMC("$(ALICE_ROOT)/FMD/Config.C");
18 TFile* file = TFile::Open("xsec.root", "RECREATE");
19 GetXsection("FMD_Si$", "pi+");
20 file->Close();
21}
22//____________________________________________________________________
23//
24// EOF
25//
26