]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliFileMerger.h
adding macro for Pythia8 On-the-Fly MC production (with color reconnection off/on...
[u/mrichter/AliRoot.git] / ANALYSIS / AliFileMerger.h
index 1e583a7b4526656c955f11db7bb8f04e4a655d3a..ab8c2c75b662af557410ecefbe67592c847db2c1 100644 (file)
@@ -26,6 +26,7 @@ class AliFileMerger : public TNamed
 
   void IterTXT( const char * fileList,  const char* outputFileName,Bool_t dontOverwrite=kFALSE);
   void IterAlien(const char* outputDir, const char* outputFileName = "CalibObjects.root" , const char* pattern = "AliESDfriends_v1.root", Bool_t dontOverwrite=kFALSE);
+  void IterList(const TList* namesList, const char* outputFileName, Bool_t dontOverwrite=kFALSE);
   //
   void StoreResults(TObjArray * array, const char* outputFileName);
   void StoreSeparateResults(TObjArray * array, const char* outputFileName);
@@ -35,21 +36,22 @@ class AliFileMerger : public TNamed
   void AddAccept(const char *accept);
   void SetNoTrees(Bool_t v=kTRUE)        {fNoTrees = v;}
   Bool_t IsNoTrees()               const {return fNoTrees;}
-
+  void SetMaxFilesOpen(Int_t n)          {fMaxFilesOpen = n<3 ? 3 : n;}
+  Int_t GetMaxFilesOpen()          const {return fMaxFilesOpen;}
 protected:
   int AddFile(TList* sourcelist, std::string entry);
-  int MergeRootfile( TDirectory *target, TList *sourceNames);
-
+  int MergeRootfile( TDirectory *target, TList *sourceNames, Bool_t nameFiltering=kTRUE);
+  int OpenNextChunks(const TList* namesList, TList* filesList, Int_t from, Int_t to);
 protected:
   TObjArray * fRejectMask;  // mask of the objects to be rejected
   TObjArray * fAcceptMask;    // mask of the objects to be accepted
+  Int_t       fMaxFilesOpen;  // max number of open files
   Bool_t      fNoTrees;       // do we merge trees
-
 private:
   AliFileMerger(const AliFileMerger&);
   AliFileMerger& operator=(const AliFileMerger& other);
   
-  ClassDef(AliFileMerger, 1); // File merger utilities for AliRoot
+  ClassDef(AliFileMerger, 2); // File merger utilities for AliRoot
 };
 
 #endif