Run number is stored as a file <run#> among the DDL files. AliRawReaderFile looks...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Jul 2008 10:27:09 +0000 (10:27 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Jul 2008 10:27:09 +0000 (10:27 +0000)
MONITOR/root2date.cxx

index c17ea5b..2136c24 100644 (file)
@@ -17,6 +17,12 @@ int Root2Date(AliRawEvent *gdcRootEvent, unsigned char *gdcDateEvent, char *ddlD
  AliRawEvent *ldcRootEvent=NULL;
  
  aliHeader=gdcRootEvent->GetHeader();
+
+ char runNbFileName[256];
+ sprintf(runNbFileName,"%s/run%u",ddlDir,aliHeader->Get("RunNb"));
+ ofstream runNbFile(runNbFileName);
+ runNbFile.close();
+
  memcpy(p, aliHeader->HeaderBaseBegin(), chunkSize=aliHeader->HeaderBaseSize());
  p+=chunkSize;
  memcpy(p, aliHeader->HeaderBegin(), chunkSize=aliHeader->HeaderSize()); // Write DATE GDC header