]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG3/dielectron/AliDielectronDebugTree.h
Updates and additions: Classes for signal and spectrum extraction; saving of
[u/mrichter/AliRoot.git] / PWG3 / dielectron / AliDielectronDebugTree.h
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
7 //#############################################################
8 //#                                                           # 
9 //#         Class AliDielectronDebugTree                     #
10 //#                                                           #
11 //#  Authors:                                                 #
12 //#   Anton     Andronic, GSI / A.Andronic@gsi.de             #
13 //#   Ionut C.  Arsene,   GSI / I.C.Arsene@gsi.de             #
14 //#   Julian    Book,     Uni Ffm / Julian.Book@cern.ch       #
15 //#   Frederick Kramer,   Uni Ffm, / Frederick.Kramer@cern.ch #
16 //#   Magnus    Mager,    CERN / Magnus.Mager@cern.ch         #
17 //#   WooJin J. Park,     GSI / W.J.Park@gsi.de               #
18 //#   Jens      Wiechula, Uni HD / Jens.Wiechula@cern.ch      #
19 //#                                                           #
20 //#############################################################
21
22 #include <TNamed.h>
23 #include <TString.h>
24
25 #include "AliDielectronVarManager.h"
26
27 class TTreeSRedirector;
28 class AliDielectronPair;
29
30 class AliDielectronDebugTree : public TNamed {
31 public:
32   AliDielectronDebugTree();
33   AliDielectronDebugTree(const char*name, const char* title);
34
35   virtual ~AliDielectronDebugTree();
36
37   void SetOutputFileName(const char* file) { fFileName=file; }
38   
39   void AddPairVariable(AliDielectronVarManager::ValueTypes type) { fVariables[fNVars++]=(Int_t)type; }
40   void AddLegVariable(AliDielectronVarManager::ValueTypes type)  { fVariablesLeg[fNVarsLeg++]=(Int_t)type; }
41   
42   void Fill(AliDielectronPair *pair);
43
44   void DeleteStreamer();
45   void WriteTree();
46 private:
47   TString fFileName;                                          //output file name
48   
49   Int_t  fNVars;                                              //number of configured variables
50   Int_t  fVariables[AliDielectronVarManager::kNMaxValues];    //configured variables
51   Int_t  fNVarsLeg;                                           //number of configured variables
52   Int_t  fVariablesLeg[AliDielectronVarManager::kNMaxValues]; //configured variables for the legs
53
54   TTreeSRedirector *fStreamer;     //! Tree Redirector
55   
56   AliDielectronDebugTree(const AliDielectronDebugTree &c);
57   AliDielectronDebugTree &operator=(const AliDielectronDebugTree &c);
58
59   
60   ClassDef(AliDielectronDebugTree,1)         // Dielectron DebugTree
61 };
62
63
64
65 #endif