]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FLOW/AliFlowCommon/AliFlowEventSimpleMakerOnTheFly.h
Replaced pointer by object data member
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowEventSimpleMakerOnTheFly.h
1 /* 
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. 
3  * See cxx source for full Copyright notice 
4  * $Id$ 
5  */
6
7 /********************************** 
8  * create an event and perform    *
9  * flow analysis 'on the fly'     * 
10  *                                * 
11  * authors: Raimond Snellings     *
12  *           (snelling@nikhef.nl) * 
13  *          Ante Bilandzic        * 
14  *           (anteb@nikhef.nl)    *
15  *********************************/ 
16
17 #ifndef ALIFLOWEVENTSIMPLEMAKERONTHEFLY_H
18 #define ALIFLOWEVENTSIMPLEMAKERONTHEFLY_H
19
20 class TF1;
21 class TRandom3;
22
23 #include "AliFlowEventSimple.h"  //needed as include
24     
25 class AliFlowEventSimpleMakerOnTheFly {
26
27  public:
28
29   AliFlowEventSimpleMakerOnTheFly(UInt_t);    // constructor
30   virtual ~AliFlowEventSimpleMakerOnTheFly(); // destructor
31
32   AliFlowEventSimple* CreateEventOnTheFly();  // create an event on the fly
33  
34     
35   //                        *****************************
36   //                        **** SETTERS AND GETTERS ****
37   //                        *****************************
38   //................................................................................................
39   // setters and getters for global parameters:
40   void SetMultiplicityOfRP(Int_t multRP) {this->fMultiplicityOfRP = multRP;}
41   Int_t GetMultiplicityOfRP() const {return this->fMultiplicityOfRP;} 
42   //................................................................................................
43   
44   //................................................................................................
45   // setters and getters for event-by-event parameters:
46   void SetMultiplicitySpreadOfRP(Double_t multSpreadRP) {this->fMultiplicitySpreadOfRP = multSpreadRP;}
47   Double_t GetMultiplicitySpreadOfRP() const {return this->fMultiplicitySpreadOfRP;} 
48   //................................................................................................
49
50  private:
51  
52   AliFlowEventSimpleMakerOnTheFly(const AliFlowEventSimpleMakerOnTheFly& anAnalysis);            // copy constructor
53   AliFlowEventSimpleMakerOnTheFly& operator=(const AliFlowEventSimpleMakerOnTheFly& anAnalysis); // assignment operator
54   
55   //................................................................................................
56   // global parameters:
57   Int_t fMultiplicityOfRP; // multiplicity of RPs
58   //................................................................................................
59   
60   //................................................................................................
61   // event-by-event parameters:
62   Double_t fMultiplicitySpreadOfRP; // multiplicity spread of RPs
63   //................................................................................................
64   
65   //................................................................................................
66   // equations for distributions: 
67   TF1 *fPtFormula;  // transverse momentum distribution
68   TF1 *fPhiFormula; // azimuthal distribution
69
70   //................................................................................................
71   
72   TRandom3* fMyTRandom3; // our random generator
73   Int_t fCount;
74
75   ClassDef(AliFlowEventSimpleMakerOnTheFly,0) // macro for rootcint
76 };
77  
78 #endif
79
80
81