AliPhysics  9b6b435 (9b6b435)
AliFlowAnalysis.cxx
Go to the documentation of this file.
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 
23 // AliFlowAnalysis:
24 // Description: Base class for flow analysis methods
25 // author: M. Krzewicki mikolaj.krzewicki@cern.ch
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 //-----------------------------------------------------------------------
41 {
42  //destructor
43  delete fEventCuts;
44 }
45 
46 //-----------------------------------------------------------------------
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 }
virtual void Make(AliFlowEventSimple *)
virtual void ProcessEvent(AliFlowEventSimple *)
AliFlowEventSimpleCuts * fEventCuts
virtual ~AliFlowAnalysis()
bool Bool_t
Definition: External.C:53
virtual Bool_t IsSelected(TObject *obj, TObject *mcobj)