setter for nonflow
[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   void SetNoOfLoops(Int_t noofl) {this->fNoOfLoops = noofl;}
60   Int_t GetNoOfLoops() const {return this->fNoOfLoops;} 
61
62  private:
63  
64   AliFlowEventSimpleMakerOnTheFly(const AliFlowEventSimpleMakerOnTheFly& anAnalysis);            // copy constructor
65   AliFlowEventSimpleMakerOnTheFly& operator=(const AliFlowEventSimpleMakerOnTheFly& anAnalysis); // assignment operator
66   
67   //................................................................................................
68   // global parameters:
69   Int_t     fMultiplicityOfRP;          // multiplicity of RPs
70   Double_t  fMultiplicitySpreadOfRP; // multiplicity spread of RPs  
71   Double_t  fV1RP;                   // directed flow of RPs
72   Double_t  fV1SpreadRP;             // directed flow spread of RPs
73   Double_t  fV2RP;                   // elliptic flow of RPs
74   Double_t  fV2SpreadRP;             // elliptic flow spread of RPs
75   //................................................................................................
76   
77   //................................................................................................
78   // equations for distributions: 
79   TF1*      fPtSpectra;  // transverse momentum distribution
80   TF1*      fPhiDistribution; // azimuthal distribution
81   //................................................................................................
82   
83   TRandom3* fMyTRandom3; // our random generator
84   Int_t     fCount;
85   Int_t     fNoOfLoops; // number of times to use the same particle (nonflow)
86
87
88   ClassDef(AliFlowEventSimpleMakerOnTheFly,0) // macro for rootcint
89 };
90  
91 #endif
92
93
94