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 // Post analysis class
17 // Creating results and draw pictures
18 // Called in AliAnalysisTaskHFE::Terminate or in a macro
20 #ifndef ALIHFEPOSTANALYSIS_H
21 #define ALIHFEPOSTANALYSIS_H
23 #ifndef ROOT_THnSparse
24 #include <THnSparse.h>
27 class AliHFEcontainer;
31 class AliHFEpostAnalysis : public TObject{
34 AliHFEpostAnalysis(const AliHFEpostAnalysis &ref);
35 AliHFEpostAnalysis &operator=(const AliHFEpostAnalysis &ref);
36 ~AliHFEpostAnalysis();
38 Int_t SetTaskResults(AliHFEcontainer *trackContainer) { fEfficiencyContainer = trackContainer; return 1; };
39 Int_t SetTaskQA(const TList *qa);
40 void StoreOutput(const char *filename = "HFEresults.root");
42 void DrawMCSignal2Background();
43 void DrawEfficiency();
44 void DrawPIDperformance();
45 void DrawCutEfficiency(Bool_t MC = kTRUE, Int_t source = -1);
52 TH1 *CreateHistoSignalToBackgroundMC(Int_t mode, Int_t charge);
53 TH1 *CreateHistoPIDperformance(Int_t mode, Int_t charge);
55 TList *fResults; // Container for output objects
56 UChar_t fAnalysisObjects; // S
57 AliHFEcontainer *fEfficiencyContainer; // Task Results
58 THnSparseF *fPIDperformance; // PID Performance Studies
59 THnSparseF *fSignalToBackgroundMC; // Signal To Background Studies
61 ClassDef(AliHFEpostAnalysis, 1) // Result Creator class