1 /*************************************************************************
2 * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 #define ALIFLOWANALYSISBASE_CXX
18 #include "AliFlowAnalysis.h"
19 #include "AliFlowEventSimpleCuts.h"
20 #include "AliFlowEventSimple.h"
22 //////////////////////////////////////////////////////////////////////////////
24 // Description: Base class for flow analysis methods
25 // author: M. Krzewicki mikolaj.krzewicki@cern.ch
26 //////////////////////////////////////////////////////////////////////////////
28 ClassImp(AliFlowAnalysis)
30 //-----------------------------------------------------------------------
31 AliFlowAnalysis::AliFlowAnalysis(const char* name):
39 //-----------------------------------------------------------------------
40 AliFlowAnalysis::~AliFlowAnalysis()
46 //-----------------------------------------------------------------------
47 void AliFlowAnalysis::ProcessEvent(AliFlowEventSimple* event)
50 //only call the analysis if we pass the event cuts (if any)
52 if (fEventCuts) pass=fEventCuts->IsSelected(event,(TObject*)NULL);
53 if (pass) Make(event);