Test macro for TFluka.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 08:57:24 +0000 (08:57 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 08:57:24 +0000 (08:57 +0000)
TFluka/ConfigFluka.C [new file with mode: 0644]

diff --git a/TFluka/ConfigFluka.C b/TFluka/ConfigFluka.C
new file mode 100644 (file)
index 0000000..4adc9fd
--- /dev/null
@@ -0,0 +1,27 @@
+void Config() 
+{
+//
+// A simple macro to test the AliFluka functionality
+//
+
+//
+//  Fluka
+//  
+    new AliFluka("C++ Interface to FLUKA");
+    AliFluka* fluka = (AliFluka*) gMC;
+    printf("Pointer to Fluka Interface %p\n", gMC);
+//
+//  Output file
+//
+    TFile  *rootfile = new TFile("galice.root", "recreate");
+    rootfile->SetCompressionLevel(2);
+//
+//  Generator
+//
+    AliGenHIJINGpara *gener = new AliGenHIJINGpara(50);
+    gener->SetMomentumRange(0, 999);
+    gener->SetPhiRange(0, 360);
+    gener->SetThetaRange(45.,135.);
+    gener->Init();
+
+}