DQM configure file
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskPIDCombined.h
1 #ifndef ALIPIDCOMBINEDTASK_H\r
2 #define ALIPIDCOMBINEDTASK_H\r
3 /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *\r
4  * See cxx source for full Copyright notice                               */\r
5 \r
6 //#########################################################\r
7 //#                                                       # \r
8 //#        Task for testing the combined PID              #\r
9 //#                                                       #\r
10 //#  Pietro Antonioli, INFN / Pietro.Antonioli@bo.infn.it #\r
11 //#  Jens Wiechula, Uni Tübingen / Jens.Wiechula@cern.ch  #\r
12 //#                                                       #\r
13 //#########################################################\r
14 \r
15 #include <AliPID.h>\r
16 #include <AliPIDResponse.h>\r
17 #include <AliPIDCombined.h>\r
18 \r
19 #include <AliESDtrackCuts.h>\r
20 #include <AliAnalysisFilter.h>\r
21 \r
22 #include "AliAnalysisTaskSE.h"\r
23 \r
24 class TH1F;\r
25 class TH2D;\r
26 class fPIDResponse;\r
27 class fPIDCombined;\r
28 \r
29 class AliAnalysisTaskPIDCombined : public AliAnalysisTaskSE {\r
30   \r
31 public:\r
32   static const Int_t kPtBins = 6;\r
33 \r
34 \r
35   AliAnalysisTaskPIDCombined();\r
36   AliAnalysisTaskPIDCombined(const char *name);\r
37   virtual ~AliAnalysisTaskPIDCombined(){;}\r
38   \r
39   virtual void  UserExec(Option_t *option);\r
40   virtual void  UserCreateOutputObjects();\r
41     \r
42 \r
43 private:\r
44 \r
45   TList fHistList;                   //! list of histograms\r
46   TH2D *fProbTPCnSigma[AliPID::kSPECIES];    //! probabilities vs nSigma in the TPC\r
47   TH2D *fProbTOFnSigma[AliPID::kSPECIES];    //! probabilities vs nSigma  the TOF\r
48   TH2D *fProbTPCTOFnSigmaTPC[AliPID::kSPECIES];    //! comb. probabilities vs nSigma TPC\r
49   TH2D *fProbTPC[AliPID::kSPECIES];          //! probabilities vs mom in the TPC\r
50   TH2D *fProbTOF[AliPID::kSPECIES];          //! probabilities vs mom in the TOF\r
51   TH2D *fProbTPCTOF[AliPID::kSPECIES];       //! combined probabilities vs mom TPC-TOF\r
52   TH1F *fPriors[AliPID::kSPECIES];           //! priors\r
53 \r
54   TH2D *fProbTPCTOFnSigTPCMom[kPtBins][AliPID::kSPECIES];  // prob. x mom. bins\r
55   TH2D *fProbTPCnSigTPCMom[kPtBins][AliPID::kSPECIES];     // prob. x mom. bins\r
56   TH2D *fProbTOFnSigTOFMom[kPtBins][AliPID::kSPECIES];     // prob. x mom. bins\r
57 \r
58   TH2D *fPriorsUsed[AliPID::kSPECIES];       //! priors used\r
59 \r
60   const AliPIDResponse *fPIDResponse;     //! PID response object\r
61   AliPIDCombined       *fPIDCombined;     //! combined PID object\r
62   AliESDtrackCuts      *fTrackCuts;            //! track selection\r
63   AliAnalysisFilter    *fTrackFilter;         //! track filter\r
64
65   TH2D *fDeDx;                              //! histo with the dedx
66   TH2D *fDeDxTuned;                         //! histo to check the dedx tuning in MC
67
68 \r
69   AliAnalysisTaskPIDCombined(const AliAnalysisTaskPIDCombined &c);\r
70   AliAnalysisTaskPIDCombined& operator= (const AliAnalysisTaskPIDCombined &c);\r
71 \r
72   void FillHistogram(const char* name, Double_t x, Double_t weight=1.);\r
73   void FillHistogram(const char* name, Double_t x, Double_t y, Double_t weight=1.);\r
74   Int_t GetMomBin(Float_t mom);\r
75   static const char* fgkBinMomDesc[kPtBins];\r
76   \r
77   ClassDef(AliAnalysisTaskPIDCombined, 2);\r
78 };\r
79 #endif\r