]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/SPECTRA/XtAnalysis/AliXtAnalysis.h
Removed some classed (Same code in JCORRAN packet under PWG-CF) + polished remaining...
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / XtAnalysis / AliXtAnalysis.h
1 /**************************************************************************
2  *     AliXtAnalysis:
3  * This class constructs inclusive and isolated (based on charged tracks)
4  * invariant spectra. Isolated case uses a different efficiency where the
5  * contamination from cases where non-isolated particle appears as an
6  * isolated one due to finite detector efficiency is taken into account.
7  *
8  * contact: Sami Räsänen
9  *          University of Jyväskylä, Finland
10  *          sami.s.rasanen@jyu.fi
11  **************************************************************************/
12
13 #ifndef ALIXTANALYSIS_H
14 #define ALIXTANALYSIS_H
15
16 #include <AliAnalysisTaskSE.h>
17
18 class AliVEvent;
19 class TList;
20 class AliAnalysisUtils;
21 class AliJCard;
22 class TDirectory;
23 class AliJXtHistos;
24 class TH1D;
25 class TObjArray;
26
27 class AliXtAnalysis : public AliAnalysisTaskSE {
28
29         public:
30                 AliXtAnalysis();
31                 AliXtAnalysis(const char *name, const char *cardname);
32                 AliXtAnalysis(const AliXtAnalysis& a);
33                 AliXtAnalysis& operator=(const AliXtAnalysis& ap);
34                 
35                 virtual ~AliXtAnalysis(); 
36
37                 virtual void   UserCreateOutputObjects();
38                 virtual void   UserExec(Option_t *option);
39                 virtual void   Terminate(Option_t *);
40
41                 bool IsGoodEvent(AliVEvent *event);
42                 void SetDebugMode( int debug) { fDebugMode = debug; };
43
44         private:
45                 TList               *fOutputList;       // Output list
46                 AliAnalysisUtils        *fAnaUtils;     // Analysis utils
47                 
48         //AliIsolatedEfficiency *fEfficiency;   // TODO: isolated efficiency, currently eff = 1
49         AliJCard            *fCard;             // All parameters
50     
51         TDirectory          *fHistDir;  // histograms to the directory, structure compatible with JCORRAN
52         AliJXtHistos            *fHistos;       // encapsulate (almost) all histograms
53         TH1D                *fhEvents;  // general event statistics
54     
55                 TObjArray           *fChargedList;      // accepted charged tracks in an event
56                 TObjArray           *fIsolatedChargedList;      // isolated charged tracks in an event
57                 
58         int fCentBin;       // centrality bin
59         int fZBin;          // z -vertex bin
60         double fZVert;      // z -vertex
61     
62                 Int_t fevt;     // event number
63                 int fDebugMode; // debug mode
64                                 
65                 ClassDef(AliXtAnalysis, 1);
66 };
67
68 #endif