]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - SHUTTLE/TestShuttle/AliTestPreprocessor.cxx
major update (Alberto)
[u/mrichter/AliRoot.git] / SHUTTLE / TestShuttle / AliTestPreprocessor.cxx
index bfa1ba37109dd81f65f88b46787c3921e771a75e..d9f20a3e1cee5205abe2d23f034aa751b2fd18d0 100644 (file)
@@ -69,6 +69,19 @@ UInt_t AliTestPreprocessor::Process(TMap* dcsAliasMap)
   }
   //TODO here the files could be opened, some values extracted and  written to e.g. fData
 
+  // Example of how to retrieve a run parameter using GetRunParameter function
+  // TODO Here the parameter must be set manually with SetInputRunParameter function,
+  // in reality it will be read from the run logbook!
+
+  // note that the parameters are returned as character strings!
+  const char* nEvents = GetRunParameter("totalEvents");
+  if (nEvents) {
+       Log(Form("Number of events for run %d: %s",fRun, nEvents));
+  } else {
+       Log(Form("Number of events not put in logbook!"));
+  }
+
+
   //Now we have to store the final CDB file
   AliCDBMetaData metaData;
        metaData.SetBeamPeriod(0);