1 /**************************************************************************
2 * Copyright(c) 1998-1999, 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 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
18 // Modified version of AliAnalysisTaskCheckCascade.h
19 // Used bits of code from AliAnalysisTaskCheckPerformanceStrange
21 // --- David Dobrigkeit Chinellato
23 // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
25 #ifndef ALIANALYSISTASKVZEROEQFACTORTASK_H
26 #define ALIANALYSISTASKVZEROEQFACTORTASK_H
28 //Needed for this task
29 #include "AliAnalysisTaskSE.h"
39 class AliESDtrackCuts;
40 class AliAnalysisUtils;
42 class AliPhysicsSelection;
44 class AliVZEROCalibData;
45 //class AliAnalysisTaskSE;
47 //#include "TString.h"
48 //#include "AliESDtrackCuts.h"
51 class AliAnalysisTaskVZEROEqFactorTask : public AliAnalysisTaskSE {
53 AliAnalysisTaskVZEROEqFactorTask();
54 AliAnalysisTaskVZEROEqFactorTask(const char *name);
55 virtual ~AliAnalysisTaskVZEROEqFactorTask();
57 virtual void UserCreateOutputObjects();
58 virtual void UserExec(Option_t *option);
59 virtual void Terminate(Option_t *);
60 AliVZEROCalibData* GetCalibData() const;
62 void SetIsAODAnalysis(Bool_t flag) {fisAOD=flag;}
63 Bool_t GetIsAODAnalysis() const {return fisAOD;}
66 // Note : In ROOT, "//!" means "do not stream the data from Master node to Worker node" ...
67 // your data member object is created on the worker nodes and streaming is not needed.
68 // http://root.cern.ch/download/doc/11InputOutput.pdf, page 14
69 TList *fListHist; //! List of Cascade histograms
71 //Re-loaded per event if required, a la AliCentrality
72 TH1F* fEqFactors; //! Histogram with the equalization factors used in event-plane reconstruction
73 AliVZEROCalibData* fCalibData; //! calibration data
74 Long_t fRunNumber; //! Needed to make sure we haven't swapped runs
76 //===========================================================================================
77 // Histograms - Event Counting only
78 //===========================================================================================
80 TH1D *fHistEventCounter; //!
81 Bool_t fisAOD; // flag for analysis on AODs
83 AliAnalysisTaskVZEROEqFactorTask(const AliAnalysisTaskVZEROEqFactorTask&); // not implemented
84 AliAnalysisTaskVZEROEqFactorTask& operator=(const AliAnalysisTaskVZEROEqFactorTask&); // not implemented
86 ClassDef(AliAnalysisTaskVZEROEqFactorTask, 12);