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