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