Bug fix. Removed delete statement
[u/mrichter/AliRoot.git] / STEER / AliESDTagCreator.h
CommitLineData
08e1a23e 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
103d3fba 27#include <TSystem.h>
28class TChain;
29class TList;
6b6e4472 30class TMap;
08e1a23e 31
32#include <AliTagCreator.h>
33
34class TFile;
35class TGridResult;
36
44e45fac 37class AliGRPObject;
08e1a23e 38
39//___________________________________________________________________________
40class AliESDTagCreator : public AliTagCreator {
41
42 public:
43 AliESDTagCreator();
44 ~AliESDTagCreator();
45
27293674 46 void CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, AliGRPObject *grpData, ULong_t * qa, Bool_t * es, Int_t qalength, Int_t eslength);
08e1a23e 47
2856e38b 48 void SetInactiveBranches(const char* branches) {fBranches = branches;}
49
08e1a23e 50 Bool_t ReadGridCollection(TGridResult *result);
51 Bool_t ReadLocalCollection(const char *localpath);
52 Bool_t ReadCAFCollection(const char *filename);
53
54 protected:
103d3fba 55 void CreateTag(TChain *chain, const char* type);
08e1a23e 56 void CreateTag(TFile* file, const char *guid, const char *md5, const char *turl, Long64_t size, Int_t Counter);
57 void CreateTag(TFile* file, const char *filepath, Int_t Counter);
517aef4e 58
103d3fba 59 private:
2856e38b 60 void SwitchOffBranches() const;
786172af 61 AliESDTagCreator(const AliESDTagCreator& creator);
62 AliESDTagCreator& operator=(const AliESDTagCreator& creator);
517aef4e 63
64 TChain *fChain; //chain of esd files
65 TList *fGUIDList; //TList of guid TObjString
66 TList *fMD5List; //TList of md5 TObjString
67 TList *fTURLList; //TList of turl TObjString
2856e38b 68 TString fBranches; //List of branches to be switched off (separated by space
103d3fba 69 MemInfo_t *meminfo; //mem info
517aef4e 70
08e1a23e 71 ClassDef(AliESDTagCreator,0)
72};
73
74#endif
75