]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/scripts/MakeXsection.C
Finish the move RICH to HMPID
[u/mrichter/AliRoot.git] / FMD / scripts / MakeXsection.C
1 //____________________________________________________________________
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 //
13 void
14 MakeXsection()
15 {
16   gROOT->ProcessLine(".x Compile.C(\"$(ALICE_ROOT)/FMD/scripts/GetXsection.C\"");
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