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
20 // HMPID PID efficiency using the VO.
24 //==============================================================================
26 #ifndef ALIHMPIDPIDEfficiencyV0ANALYSISTASK_H
27 #define ALIHMPIDPIDEfficiencyV0ANALYSISTASK_H
29 #include "AliAnalysisTaskSE.h"
38 class AliHMPIDPIDEfficiencyV0AnalysisTask : public AliAnalysisTaskSE {
43 AliHMPIDPIDEfficiencyV0AnalysisTask();
44 AliHMPIDPIDEfficiencyV0AnalysisTask(const Char_t* name);
45 AliHMPIDPIDEfficiencyV0AnalysisTask& operator= (const AliHMPIDPIDEfficiencyV0AnalysisTask& c);
46 AliHMPIDPIDEfficiencyV0AnalysisTask(const AliHMPIDPIDEfficiencyV0AnalysisTask& c);
47 virtual ~AliHMPIDPIDEfficiencyV0AnalysisTask();
49 virtual void ConnectInputData(Option_t *);
50 virtual void UserCreateOutputObjects();
51 virtual void UserExec(Option_t *option);
52 virtual void Terminate(Option_t *);
54 void SetUseMC(Bool_t useMC) { fUseMC = useMC; }
55 Bool_t Equal(Double_t x, Double_t y, Double_t tolerance);
61 AliESDEvent *fESD; //! ESD object
62 AliMCEvent *fMC; //! MC event
64 Bool_t fUseMC; // decide whether use or not the MC information
66 TList *fHmpHistList ; // list of histograms
80 TTree *fTree; // tree with useful data for subsequent analysis
81 Float_t fVar[90]; // array of data to fill the tree
83 ClassDef(AliHMPIDPIDEfficiencyV0AnalysisTask,4);