]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TFluka/ConfigFluka.C
Small fixes
[u/mrichter/AliRoot.git] / TFluka / ConfigFluka.C
1 void Config() 
2 {
3 //
4 // A simple macro to test the AliFluka functionality
5 //
6
7 //
8 //  Fluka
9 //  
10     new AliFluka("C++ Interface to FLUKA");
11     AliFluka* fluka = (AliFluka*) gMC;
12     printf("Pointer to Fluka Interface %p\n", gMC);
13 //
14 //  Output file
15 //
16     TFile  *rootfile = new TFile("galice.root", "recreate");
17     rootfile->SetCompressionLevel(2);
18 //
19 //  Generator
20 //
21     AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
22     gener->SetMomentumRange(0, 999);
23     gener->SetPhiRange(0, 360);
24     gener->SetThetaRange(45.,135.);
25     gener->Init();
26
27 }