]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG/FLOW/Base/AliFlowAnalysis.cxx
initial checkin of the new flow development - from an OLD diff!
[u/mrichter/AliRoot.git] / PWG / FLOW / Base / AliFlowAnalysis.cxx
1 /*************************************************************************
2 * Copyright(c) 1998-2008, 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 #define ALIFLOWANALYSISBASE_CXX
17  
18 #include "AliFlowAnalysis.h"
19 #include "AliFlowEventSimpleCuts.h"
20 #include "AliFlowEventSimple.h"
21
22 //////////////////////////////////////////////////////////////////////////////
23 // AliFlowAnalysis:
24 // Description: Base class for flow analysis methods
25 // author: M. Krzewicki mikolaj.krzewicki@cern.ch
26 //////////////////////////////////////////////////////////////////////////////
27
28 ClassImp(AliFlowAnalysis)
29
30 //-----------------------------------------------------------------------
31 AliFlowAnalysis::AliFlowAnalysis(const char* name):
32 TNamed(name,name),
33 fEventCuts(NULL),
34 fPOItype(1)
35 {
36   //ctor
37 }
38
39 //-----------------------------------------------------------------------
40 AliFlowAnalysis::~AliFlowAnalysis() 
41 {
42   //destructor
43   delete fEventCuts;
44 }
45
46 //-----------------------------------------------------------------------
47 void AliFlowAnalysis::ProcessEvent(AliFlowEventSimple* event)
48 {
49   //process the event
50   //only call the analysis if we pass the event cuts (if any)
51   Bool_t pass=kTRUE;
52   if (fEventCuts) pass=fEventCuts->IsSelected(event,(TObject*)NULL);
53   if (pass) Make(event);
54 }