]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TFluka/AliFluka.cxx
AliMCGeomtype: return correct type.
[u/mrichter/AliRoot.git] / TFluka / AliFluka.cxx
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 Revision 1.1  2002/07/05 13:10:07  morsch
19 First commit of Fluka interface.
20
21 */
22
23 #include "AliFluka.h"
24 #include "AliRun.h"
25 #include "AliGenerator.h"
26
27 ClassImp(AliFluka)
28
29
30 void AliFluka::Init()
31 {
32     printf("TFluka::Init \n\n");
33 }
34
35
36 void AliFluka::ProcessRun(Int_t nevent)
37 {
38   //
39   // Process the run
40   //
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)
46      gAlice->BeginEvent();
47      ProcessEvent();
48      gAlice->FinishEvent();
49   }
50 }
51
52
53
54 void AliFluka::ProcessEvent()
55 {
56   //
57   // Process one event
58   //
59     printf("TFluka::ProcessEvent \n\n");
60     gAlice->Generator()->Generate();
61
62 //
63 //
64 //
65     
66 }
67
68
69