]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TFluka/AliFluka.cxx
bug correction: Init not called
[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$
b9d0a01d 18Revision 1.2.2.2 2002/09/12 10:25:39 iglez2
19Corrected the output to write AliFluka and not TFluka
20
21Revision 1.2.2.1 2002/07/24 08:49:41 alibrary
22Adding TFluka to VirtualMC
23
24Revision 1.2 2002/07/11 08:58:07 morsch
25Some corrections in the constructors. Init() moved to AliFluka.
26
8baddb27 27Revision 1.1 2002/07/05 13:10:07 morsch
28First commit of Fluka interface.
29
03ca248b 30*/
31
32#include "AliFluka.h"
33#include "AliRun.h"
34#include "AliGenerator.h"
35
36ClassImp(AliFluka)
37
8baddb27 38
39void AliFluka::Init()
40{
b9d0a01d 41 printf("AliFluka::Init \n\n");
8baddb27 42}
43
44
03ca248b 45void AliFluka::ProcessRun(Int_t nevent)
46{
47 //
48 // Process the run
49 //
b9d0a01d 50 printf("AliFluka::ProcessRun \n\n");
8baddb27 51
52 Int_t todo = TMath::Abs(nevent);
53 for (Int_t i=0; i<todo; i++) {
54 // Process one run (one run = one event)
03ca248b 55 gAlice->BeginEvent();
56 ProcessEvent();
57 gAlice->FinishEvent();
58 }
59}
60
61
62
63void AliFluka::ProcessEvent()
64{
65 //
66 // Process one event
67 //
b9d0a01d 68 printf("AliFluka::ProcessEvent \n\n");
03ca248b 69 gAlice->Generator()->Generate();
8baddb27 70
71//
72//
73//
74
03ca248b 75}
8baddb27 76
77
78