]>
Commit | Line | Data |
---|---|---|
572b0139 | 1 | #ifndef ALIDIELECTRONDEBUGTREE_H |
2 | #define ALIDIELECTRONDEBUGTREE_H | |
3 | ||
4 | /* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
27de2dfb | 7 | /* $Id$ */ |
8 | ||
572b0139 | 9 | //############################################################# |
10 | //# # | |
11 | //# Class AliDielectronDebugTree # | |
12 | //# # | |
13 | //# Authors: # | |
14 | //# Anton Andronic, GSI / A.Andronic@gsi.de # | |
15 | //# Ionut C. Arsene, GSI / I.C.Arsene@gsi.de # | |
16 | //# Julian Book, Uni Ffm / Julian.Book@cern.ch # | |
17 | //# Frederick Kramer, Uni Ffm, / Frederick.Kramer@cern.ch # | |
18 | //# Magnus Mager, CERN / Magnus.Mager@cern.ch # | |
19 | //# WooJin J. Park, GSI / W.J.Park@gsi.de # | |
20 | //# Jens Wiechula, Uni HD / Jens.Wiechula@cern.ch # | |
21 | //# # | |
22 | //############################################################# | |
23 | ||
24 | #include <TNamed.h> | |
25 | #include <TString.h> | |
26 | ||
27 | #include "AliDielectronVarManager.h" | |
28 | ||
29 | class TTreeSRedirector; | |
30 | class AliDielectronPair; | |
8df8e382 | 31 | class AliDielectron; |
572b0139 | 32 | |
33 | class AliDielectronDebugTree : public TNamed { | |
34 | public: | |
35 | AliDielectronDebugTree(); | |
36 | AliDielectronDebugTree(const char*name, const char* title); | |
37 | ||
38 | virtual ~AliDielectronDebugTree(); | |
39 | ||
40 | void SetOutputFileName(const char* file) { fFileName=file; } | |
41 | ||
42 | void AddPairVariable(AliDielectronVarManager::ValueTypes type) { fVariables[fNVars++]=(Int_t)type; } | |
43 | void AddLegVariable(AliDielectronVarManager::ValueTypes type) { fVariablesLeg[fNVarsLeg++]=(Int_t)type; } | |
44 | ||
45 | void Fill(AliDielectronPair *pair); | |
46 | ||
8df8e382 | 47 | void SetDielectron(AliDielectron * const dielectron) { fDielectron=dielectron; } |
48 | ||
572b0139 | 49 | void DeleteStreamer(); |
50 | void WriteTree(); | |
51 | private: | |
52 | TString fFileName; //output file name | |
53 | ||
54 | Int_t fNVars; //number of configured variables | |
55 | Int_t fVariables[AliDielectronVarManager::kNMaxValues]; //configured variables | |
56 | Int_t fNVarsLeg; //number of configured variables | |
57 | Int_t fVariablesLeg[AliDielectronVarManager::kNMaxValues]; //configured variables for the legs | |
58 | ||
59 | TTreeSRedirector *fStreamer; //! Tree Redirector | |
8df8e382 | 60 | AliDielectron *fDielectron; //! pointer to mother dielectron manager |
61 | ||
572b0139 | 62 | AliDielectronDebugTree(const AliDielectronDebugTree &c); |
63 | AliDielectronDebugTree &operator=(const AliDielectronDebugTree &c); | |
64 | ||
65 | ||
66 | ClassDef(AliDielectronDebugTree,1) // Dielectron DebugTree | |
67 | }; | |
68 | ||
69 | ||
70 | ||
71 | #endif |