Added loop for extraction of clusters really attached to its track.
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskStat.h
1 #ifndef ALIANALYSISTASKSTAT_H
2 #define ALIANALYSISTASKSTAT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7 // Author: Andrei Gheata, 20/12/2010
8
9 //==============================================================================
10 //   AliAnalysisTaskStat - Analysis task that ataches an AliAnalysisStatistics
11 //      to the analysis manager
12 //==============================================================================
13
14 #ifndef ALIANALYSISTASKSE_H
15 #include "AliAnalysisTaskSE.h"
16 #endif
17
18 class AliAnalysisStatistics;
19
20 class AliAnalysisTaskStat : public AliAnalysisTaskSE
21 {
22
23 protected:
24   AliAnalysisStatistics      *fStatistics; // Statistics object
25   TList                      *fOutputList; // Output list
26
27 private:
28   AliAnalysisTaskStat(const AliAnalysisTaskStat& other);
29   AliAnalysisTaskStat& operator= (const AliAnalysisTaskStat& other);
30
31 public:
32   AliAnalysisTaskStat() : AliAnalysisTaskSE(), fStatistics(0), fOutputList(0) {}
33   AliAnalysisTaskStat(const char *name);
34   virtual ~AliAnalysisTaskStat();
35
36   // Static method to add to the analysis manager
37   static AliAnalysisTaskStat *AddToManager(UInt_t offlineMask=0);
38
39   // Implementation of interface methods
40   virtual void UserCreateOutputObjects();
41   virtual void UserExec(Option_t *option);
42   virtual void Terminate(Option_t *option);
43   
44   // Getters
45   AliAnalysisStatistics *GetStatistics() const {return fStatistics;}
46
47   ClassDef(AliAnalysisTaskStat, 1); // Statistics task
48 };
49 #endif