added a few setters
[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   void SetMultiplicitySpreadOfRP(Double_t multSpreadRP) {this->fMultiplicitySpreadOfRP = multSpreadRP;}
44   Double_t GetMultiplicitySpreadOfRP() const {return this->fMultiplicitySpreadOfRP;} 
45
46   void SetV1RP(Double_t dV1RP) {this->fV1RP = dV1RP;}
47   Double_t GetV1RP() const {return this->fV1RP;} 
48   
49   void SetV1SpreadRP(Double_t dV1SpreadRP) {this->fV1SpreadRP = dV1SpreadRP;}
50   Double_t GetV1SpreadRP() const {return this->fV1SpreadRP;} 
51   
52   void SetV2RP(Double_t dV2RP) {this->fV2RP = dV2RP;}
53   Double_t GetV2RP() const {return this->fV2RP;} 
54   
55   void SetV2SpreadRP(Double_t dV2SpreadRP) {this->fV2SpreadRP = dV2SpreadRP;}
56   Double_t GetV2SpreadRP() const {return this->fV2SpreadRP;} 
57   //................................................................................................
58   
59  private:
60  
61   AliFlowEventSimpleMakerOnTheFly(const AliFlowEventSimpleMakerOnTheFly& anAnalysis);            // copy constructor
62   AliFlowEventSimpleMakerOnTheFly& operator=(const AliFlowEventSimpleMakerOnTheFly& anAnalysis); // assignment operator
63   
64   //................................................................................................
65   // global parameters:
66   Int_t fMultiplicityOfRP;          // multiplicity of RPs
67   Double_t fMultiplicitySpreadOfRP; // multiplicity spread of RPs  
68   Double_t fV1RP;                   // directed flow of RPs
69   Double_t fV1SpreadRP;             // directed flow spread of RPs
70   Double_t fV2RP;                   // elliptic flow of RPs
71   Double_t fV2SpreadRP;             // elliptic flow spread of RPs
72   //................................................................................................
73   
74   //................................................................................................
75   // equations for distributions: 
76   TF1 *fPtSpectra;  // transverse momentum distribution
77   TF1 *fPhiDistribution; // azimuthal distribution
78   //................................................................................................
79   
80   TRandom3* fMyTRandom3; // our random generator
81   Int_t fCount;
82
83   ClassDef(AliFlowEventSimpleMakerOnTheFly,0) // macro for rootcint
84 };
85  
86 #endif
87
88
89