]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/FMDGainda.cxx
Updates needed for full jet reconstruction (charged + emcal) [Magali Estienne]
[u/mrichter/AliRoot.git] / FMD / FMDGainda.cxx
index 64cac3b8938afc580c470240c0a67357efdd6871..fe865ca81970320136e56d3d23fc03997ab63cfe 100644 (file)
@@ -19,6 +19,7 @@
 #include <AliFMDGainDA.h>
 #include <AliRawReaderDate.h>
 #include <AliRawReaderRoot.h>
+#include <AliLog.h>
 #include "daqDA.h"
 #include "TROOT.h"
 #include "TPluginManager.h"
@@ -56,19 +57,21 @@ int main(int argc, char **argv)
   AliFMDParameters::Instance()->Init(kFALSE,0);
 
   //This will only work for FDR 1 data. When newer data becomes available the ! must be removed!
-  AliFMDParameters::Instance()->UseCompleteHeader(!old);
+  AliFMDParameters::Instance()->UseCompleteHeader(old);
   
+  AliLog::EnableDebug(kFALSE);
   
   AliRawReader *reader = 0;
   TString fileNam(fileName);
-  if (fileNam.EndsWith(".root")) reader = new AliRawReaderRoot(fileName);
+  if (fileNam.EndsWith(".root")) 
+    reader = new AliRawReaderRoot(fileName);
   else reader = new AliRawReaderDate(fileName);
   if (!reader) { 
     std::cerr << "Don't know how to make reader for " << fileNam 
              << std::endl;
     return -2;
   }
-  
+
   
   TStopwatch timer;
   timer.Start();