events based on the fly in memory and analysis for quick chekcs
[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
22 #include "AliFlowEventSimple.h"  //needed as include
23     
24 class AliFlowEventSimpleMakerOnTheFly {
25
26  public:
27
28   AliFlowEventSimpleMakerOnTheFly();          // constructor
29   virtual ~AliFlowEventSimpleMakerOnTheFly(); // destructor
30
31   AliFlowEventSimple* CreateEventOnTheFly();  // create an event on the fly
32  
33     
34   //                        *****************************
35   //                        **** SETTERS AND GETTERS ****
36   //                        *****************************
37   //................................................................................................
38   // setters and getters for global parameters:
39   void SetMultiplicityOfRP(Int_t multRP) {this->fMultiplicityOfRP = multRP;}
40   Int_t GetMultiplicityOfRP() const {return this->fMultiplicityOfRP;} 
41   //................................................................................................
42   
43   //................................................................................................
44   // setters and getters for event-by-event parameters:
45   void SetMultiplicitySpreadOfRP(Double_t multSpreadRP) {this->fMultiplicitySpreadOfRP = multSpreadRP;}
46   Double_t GetMultiplicitySpreadOfRP() const {return this->fMultiplicitySpreadOfRP;} 
47   //................................................................................................
48    
49  private:
50  
51   AliFlowEventSimpleMakerOnTheFly(const AliFlowEventSimpleMakerOnTheFly& anAnalysis);            // copy constructor
52   AliFlowEventSimpleMakerOnTheFly& operator=(const AliFlowEventSimpleMakerOnTheFly& anAnalysis); // assignment operator
53   
54   //................................................................................................
55   // global parameters:
56   Int_t fMultiplicityOfRP; // multiplicity of RPs
57   //................................................................................................
58   
59   //................................................................................................
60   // event-by-event parameters:
61   Double_t fMultiplicitySpreadOfRP; // multiplicity spread of RPs
62   //................................................................................................
63   
64   //................................................................................................
65   // equations for distributions: 
66   TF1 *fPtFormula;  // transverse momentum distribution
67   TF1 *fPhiFormula; // azimuthal distribution
68   //................................................................................................
69   
70   ClassDef(AliFlowEventSimpleMakerOnTheFly,0) // macro for rootcint
71 };
72  
73 #endif
74
75
76