]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/deroot.cxx
CTP raw data does not contain CDH, so skip the warning about the wrong data size...
[u/mrichter/AliRoot.git] / MONITOR / deroot.cxx
index d42fbddaa5c7268f661a4c8552bcd16e933d6705..98aa4e6d2d26895e077e9d48096d45da4c69d521 100644 (file)
@@ -31,7 +31,7 @@ int deroot(const char *rootFileName, const char *dateFileName, const char *ddlFi
  
  UInt_t eventSize = 10000000; // 10MB by default
  unsigned char *dateEvent = new unsigned char[eventSize];
- for(size_t gdcCounter=0; gdcCounter<t->GetEntries(); gdcCounter++) {
+ for(Long_t gdcCounter=0; gdcCounter<t->GetEntries(); gdcCounter++) {
   rootEvent=new AliRawEvent;
   t->GetEntry(gdcCounter);
   if (rootEvent->GetHeader()->GetEventSize() > eventSize) {
@@ -43,9 +43,9 @@ int deroot(const char *rootFileName, const char *dateFileName, const char *ddlFi
   size_t gdcSize;
   if (ddlFilesFolder) {
     char command[256];
-    sprintf(command, "rm -r %s/raw%d", ddlFilesFolder, gdcCounter);
+    sprintf(command, "rm -rf %s/raw%ld", ddlFilesFolder, gdcCounter);
     gSystem->Exec(command);
-    sprintf(command, "%s/raw%d", ddlFilesFolder, gdcCounter);
+    sprintf(command, "%s/raw%ld", ddlFilesFolder, gdcCounter);
     if (gSystem->MakeDirectory(command) < 0) {
       cerr << "Can not create directory " << command << endl;
       return(1);