1 #ifndef ALIFILEMERGER_H
2 #define ALIFILEMERGER_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
9 //////////////////////////////////////////////////////////////////////////
11 // Utilities for file merging
13 //////////////////////////////////////////////////////////////////////////
19 class AliFileMerger : public TNamed
24 AliFileMerger(const char* name);
25 void Merge(TFile* fileIn, TObjArray * array);
27 void IterTXT( const char * fileList, const char* outputFileName,Bool_t separate=kFALSE);
28 void IterAlien(const char* outputDir, const char* outputFileName = "CalibObjects.root" , const char* pattern = "AliESDfriends_v1.root");
30 void StoreResults(TObjArray * array, const char* outputFileName);
31 void StoreSeparateResults(TObjArray * array, const char* outputFileName);
33 Bool_t IsAccepted(TString name);
34 void AddReject(const char *reject);
35 void AddAccept(const char *accept);
38 TObjArray * fRejectMask; // mask of the objects to be rejected
39 TObjArray * fAcceptMask; // mask of the objects to be accepted
42 AliFileMerger(const AliFileMerger&);
43 AliFileMerger& operator=(const AliFileMerger& other);
45 ClassDef(AliFileMerger, 1); // File merger utilities for AliRoot