]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliESDTagCreator.h
Enlarged range for the PHOS energy
[u/mrichter/AliRoot.git] / STEER / AliESDTagCreator.h
1 #ifndef ALIESDTAGCREATOR_H
2 #define ALIESDTAGCREATOR_H
3 /*  See cxx source for full Copyright notice */
4
5
6 /* $Id$ */
7
8 //-------------------------------------------------------------------------
9 //                          Class AliESDTagCreator
10 //   This is the AliESDTagCreator class for the tag creation (post process)
11 //
12 //    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
13 //-------------------------------------------------------------------------
14
15
16
17 //////////////////////////////////////////////////////////////////////////
18 //                                                                      //
19 //                        AliESDTagCreator                              //
20 //                                                                      //
21 //           Implementation of the tag creation mechanism.              //
22 //                                                                      //
23 //////////////////////////////////////////////////////////////////////////
24
25
26 //ROOT
27 #include <TSystem.h>
28 class TChain;
29 class TList;
30 class TMap;
31
32 #include <AliTagCreator.h>
33
34 class TFile;
35 class TGridResult;
36
37
38 //___________________________________________________________________________
39 class AliESDTagCreator : public AliTagCreator {
40
41  public:
42   AliESDTagCreator();
43   ~AliESDTagCreator(); 
44
45   void CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, TMap *grpData);
46
47   void SetInactiveBranches(const char* branches) {fBranches = branches;}
48
49   Bool_t ReadGridCollection(TGridResult *result);
50   Bool_t ReadLocalCollection(const char *localpath);
51   Bool_t ReadCAFCollection(const char *filename);
52   
53  protected:  
54   void CreateTag(TChain *chain, const char* type);
55   void CreateTag(TFile* file, const char *guid, const char *md5, const char *turl, Long64_t size, Int_t Counter);
56   void CreateTag(TFile* file, const char *filepath, Int_t Counter);
57
58  private:
59   void SwitchOffBranches() const;
60   AliESDTagCreator(const AliESDTagCreator& creator);             
61   AliESDTagCreator& operator=(const AliESDTagCreator& creator);
62   
63   TChain *fChain; //chain of esd files
64   TList  *fGUIDList; //TList of guid TObjString
65   TList  *fMD5List; //TList of md5 TObjString
66   TList  *fTURLList; //TList of turl TObjString
67   TString fBranches;  //List of branches to be switched off (separated by space
68   MemInfo_t *meminfo; //mem info
69
70   ClassDef(AliESDTagCreator,0)  
71 };
72
73 #endif
74