]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MergeMuonLight.C
Flexible pt range for the efficiency histogramming
[u/mrichter/AliRoot.git] / MUON / MergeMuonLight.C
index 182643ec6b3b0d7f006e395fb9e3280e7df468e1..5cd3e438eb0402a383474c9d55124fd296710d02 100644 (file)
 
 /* $Id$ */
 
-// A. De Falco, H. Woehri, INFN Cagliari, July 2006 
-// This macro merges several files built with DecodeRecoCocktail.C into 
-// a single one. 
-// Arguments:     foutname = name of the output file
-//                flistname = name of a text file containing the list of files
-//                            to be merged 
-//                saveAll = boolian that allows/forbids saving of events with no muons
-void MergeMuonLight(char *foutname="MuonLightMerged.root",char *flistname="lista.lis", Bool_t saveAll = kTRUE){ 
+/// \ingroup macros
+/// \file MergeMuonLight.C
+/// \brief This macro merges several files built with DecodeRecoCocktail.C into 
+/// a single one
+///
+/// \author A. De Falco, H. Woehri, INFN Cagliari, July 2006 
+
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include "TFile.h"
+#include "TTree.h"
+#include "TClonesArray.h"
+#include "AliMUONTrackLight.h"
+#include "AliMUONPairLight.h"
+#endif
+
+
+void MergeMuonLight(char *foutname="MuonLightMerged.root",char *flistname="lista.lis", Bool_t saveAll = kTRUE)
+{ 
+/// \param foutname   name of the output file
+/// \param flistname  name of a text file containing the list of files
+///                   to be merged 
+/// \param  saveAll    boolian that allows/forbids saving of events with no muons
+
   // up to 2000 input files 
 
   TFile *file[2000];
@@ -44,7 +59,7 @@ void MergeMuonLight(char *foutname="MuonLightMerged.root",char *flistname="lista
   while (!outflag) { 
     if (fscanf(pf,"%s",filename)==1) { 
       file[nfiles++] = new TFile (filename); 
-      cout << "Opening for input " << filename << endl;
+      printf("Opening for input %s", filename);
     }
     else outflag = 1; 
   }