]>
Commit | Line | Data |
---|---|---|
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$ | |
18 | */ | |
19 | ||
20 | #include "AliFluka.h" | |
21 | #include "AliRun.h" | |
22 | #include "AliGenerator.h" | |
23 | ||
24 | ClassImp(AliFluka) | |
25 | ||
26 | void AliFluka::ProcessRun(Int_t nevent) | |
27 | { | |
28 | // | |
29 | // Process the run | |
30 | // | |
31 | Int_t todo = TMath::Abs(nevent); | |
32 | for (Int_t i=0; i<todo; i++) { | |
33 | // Process one run (one run = one event) | |
34 | gAlice->BeginEvent(); | |
35 | ProcessEvent(); | |
36 | gAlice->FinishEvent(); | |
37 | } | |
38 | } | |
39 | ||
40 | ||
41 | ||
42 | void AliFluka::ProcessEvent() | |
43 | { | |
44 | // | |
45 | // Process one event | |
46 | // | |
47 | gAlice->Generator()->Generate(); | |
48 | } |