Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / TFluka / AliFluka.cxx
CommitLineData
03ca248b 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/*
17$Log$
8baddb27 18Revision 1.1 2002/07/05 13:10:07 morsch
19First commit of Fluka interface.
20
03ca248b 21*/
22
23#include "AliFluka.h"
24#include "AliRun.h"
25#include "AliGenerator.h"
26
27ClassImp(AliFluka)
28
8baddb27 29
30void AliFluka::Init()
31{
32 printf("TFluka::Init \n\n");
33}
34
35
03ca248b 36void AliFluka::ProcessRun(Int_t nevent)
37{
38 //
39 // Process the run
40 //
8baddb27 41 printf("TFluka::ProcessRun \n\n");
42
43 Int_t todo = TMath::Abs(nevent);
44 for (Int_t i=0; i<todo; i++) {
45 // Process one run (one run = one event)
03ca248b 46 gAlice->BeginEvent();
47 ProcessEvent();
48 gAlice->FinishEvent();
49 }
50}
51
52
53
54void AliFluka::ProcessEvent()
55{
56 //
57 // Process one event
58 //
8baddb27 59 printf("TFluka::ProcessEvent \n\n");
03ca248b 60 gAlice->Generator()->Generate();
8baddb27 61
62//
63//
64//
65
03ca248b 66}
8baddb27 67
68
69