]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/FMDBaseda.cxx
Compatibility with the trunk of ROOT
[u/mrichter/AliRoot.git] / FMD / FMDBaseda.cxx
index a9c74fecbe5089ac36f33b23766f03faf5e4229c..398634a1f180e0b666b80b9c2a07af6fd9a06dd6 100644 (file)
   Output Files:            conditions.csv
   Trigger types used:      PHYSICS_EVENT
 */
+#include <Riostream.h>
 #include "monitor.h"
 #include "event.h"
+#include <AliLog.h>
 #include <TSystem.h>
 #include <TString.h>
 #include <AliFMDParameters.h>
@@ -51,7 +53,7 @@ int main(int argc, char **argv)
   int status;
   /* define data source : this is argument 1 */  
   if (argc < 2) { 
-    std::cout << "No monitor source set" << std::endl;
+    cout << "No monitor source set" << endl;
     return -1;
   }
   status=monitorSetDataSource( argv[1] );
@@ -60,6 +62,7 @@ int main(int argc, char **argv)
     return -1;
   }
   
+  if (argc > 2) AliLog::SetModuleDebugLevel("FMD", atoi(argv[2]));
   /* declare monitoring program */
   status=monitorDeclareMp( __FILE__ );
   if (status!=0) {
@@ -108,7 +111,7 @@ int main(int argc, char **argv)
       retval = 
        daqDA_FES_storeFile("conditions.csv", 
                            AliFMDParameters::Instance()->GetConditionsShuttleID());
-      if (retval != 0) std::cerr << "Base DA failed" << std::endl;
+      if (retval != 0) cerr << "Base DA failed" << endl;
       
       break;