]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/HMPID/AliHMPIDTaskQA.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGPP / HMPID / AliHMPIDTaskQA.h
CommitLineData
3882540a 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16//==============================================================================
2fdd7366 17// AliHMPIDAnalysysTask - Class representing a basic analysis tool of HMPID data at
18// level of ESD.
3882540a 19// A set of histograms is created.
20//==============================================================================
21
2fdd7366 22#ifndef AliHMPIDTASKQA_H
23#define AliHMPIDTASKQA_H
3882540a 24
25#include "AliAnalysisTaskSE.h"
26#include "AliStack.h"
27
28class TH1;
29class TParticle;
30class TFile;
31class AliESDtrack;
2fdd7366 32class AliESDtrackCuts;
33class AliAnalysisFilter;
3882540a 34class AliESDEvent;
2fdd7366 35class AliVEvent;
36class AliPIDResposne;
3882540a 37
38class AliHMPIDTaskQA : public AliAnalysisTaskSE {
39 public:
40
41 enum {kChamber = 7};
42
43 AliHMPIDTaskQA();
44 AliHMPIDTaskQA(const Char_t* name);
45 AliHMPIDTaskQA& operator= (const AliHMPIDTaskQA& c);
46 AliHMPIDTaskQA(const AliHMPIDTaskQA& c);
47 virtual ~AliHMPIDTaskQA();
48
49 virtual void ConnectInputData(Option_t *);
2fdd7366 50 // virtual void AliHMPIDTaskQA::UserCreateObject(Option_t *)
3882540a 51 virtual void UserCreateOutputObjects();
52 virtual void UserExec(Option_t *option);
53 virtual void Terminate(Option_t *);
54
55 void SetUseMC(Bool_t useMC) { fUseMC = useMC; }
56 Bool_t Equal(Double_t x, Double_t y, Double_t tolerance);
57
58 protected:
59
60 private:
61
2fdd7366 62 AliESDEvent *fESD; //! ESD object
63 AliMCEvent *fMC; //! MC event
15939b4c 64
2fdd7366 65 Bool_t fUseMC; // decide whether use or not the MC information
15939b4c 66
2fdd7366 67 TList *fHmpHistList ; // list of histograms
15939b4c 68
2fdd7366 69 TH1F *fHmpNevents;
70 TH1F *fZvertex;
15939b4c 71
2fdd7366 72 AliESDtrackCuts *fTrackCuts;
73 AliAnalysisFilter *fTrackFilter;
74
75 TTree *fTree; // tree with useful data for subsequent analysis
76 Float_t fVar[69]; // array of data to fill the tree
3882540a 77
2fdd7366 78 ClassDef(AliHMPIDTaskQA,4);
3882540a 79};
80
15939b4c 81#endif