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 //==============================================================================
17 // AliHMPIDAnalysysTask - Class representing a basic analysis tool of HMPID data at
19 // A set of histograms is created.
20 //==============================================================================
22 #ifndef ALIHMPIDANALYSISTASK_H
23 #define ALIHMPIDANALYSISTASK_H
25 #include "AliAnalysisTaskSE.h"
32 class AliESDtrackCuts;
33 class AliAnalysisFilter;
38 class AliHMPIDAnalysisTask : public AliAnalysisTaskSE {
43 AliHMPIDAnalysisTask();
44 AliHMPIDAnalysisTask(const Char_t* name);
45 AliHMPIDAnalysisTask& operator= (const AliHMPIDAnalysisTask& c);
46 AliHMPIDAnalysisTask(const AliHMPIDAnalysisTask& c);
47 virtual ~AliHMPIDAnalysisTask();
49 virtual void ConnectInputData(Option_t *);
50 // virtual void AliHMPIDAnalysisTask::UserCreateObject(Option_t *)
51 virtual void UserCreateOutputObjects();
52 virtual void UserExec(Option_t *option);
53 virtual void Terminate(Option_t *);
55 void SetUseMC(Bool_t useMC) { fUseMC = useMC; }
56 Bool_t Equal(Double_t x, Double_t y, Double_t tolerance);
62 AliESDEvent *fESD; //! ESD object
63 AliMCEvent *fMC; //! MC event
65 Bool_t fUseMC; // decide whether use or not the MC information
67 TList *fHmpHistList ; // list of histograms
72 AliPIDResponse *fPIDResponse;
73 AliESDtrackCuts *fTrackCuts;
74 AliAnalysisFilter *fTrackFilter;
76 TTree *fTree; // tree with useful data for subsequent analysis
77 Float_t fVar[69]; // array of data to fill the tree
79 ClassDef(AliHMPIDAnalysisTask,4);