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>
30 class AliHFEpostAnalysis : public TObject{
33 AliHFEpostAnalysis(const AliHFEpostAnalysis &ref);
34 AliHFEpostAnalysis &operator=(const AliHFEpostAnalysis &ref);
35 ~AliHFEpostAnalysis();
37 Int_t SetResults(TList *input);
38 void StoreOutput(const char *filename = "HFEresults.root");
40 void DrawMCSignal2Background();
41 void DrawEfficiency();
42 void DrawPIDperformance();
43 void DrawCutEfficiency();
50 TH1 *CreateHistoSignalToBackgroundMC(Int_t mode, Int_t charge);
51 TH1 *CreateHistoPIDperformance(Int_t mode, Int_t charge);
53 TList *fResults; // Container for output objects
54 UChar_t fAnalysisObjects; // S
55 AliCFContainer *fEfficiencyContainer; // Task Results
56 THnSparseF *fPIDperformance; // PID Performance Studies
57 THnSparseF *fSignalToBackgroundMC; // Signal To Background Studies
59 ClassDef(AliHFEpostAnalysis, 1) // Result Creator class