]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/UNICOR/AliDAnal.h
Added seperate methods to write histograms to a file when not using the task framework
[u/mrichter/AliRoot.git] / PWG2 / UNICOR / AliDAnal.h
1 // Author: Dariusz Miskowiec <mailto:d.miskowiec@gsi.de> 2007
2
3 //=============================================================================
4 // parent class of all analyzers
5 //=============================================================================
6
7 #ifndef ALIDANAL_H
8 #define ALIDANAL_H
9
10 #include <TNamed.h>
11 #include <TObjArray.h>
12 #include <TDatabasePDG.h>
13
14 //=============================================================================
15 class AliDAnal : public TNamed {
16    
17  public:
18   AliDAnal(char *nam);                                         // constructor
19   virtual ~AliDAnal()     {printf("%s object named %s deleted\n",ClassName(),GetName());}
20   void Save(const char *outfil, const char *mode="update");  // save histograms 
21
22  protected:
23   static TDatabasePDG fgPDG; // particle database
24   TObjArray fHistos;          // histograms
25
26   ClassDef(AliDAnal,1)
27 };
28 //=============================================================================
29 #endif