* of the entry and uses the CDBmanager to write it back to some new
* location.
*
+ * Required parameters:
+ * - filename
+ * - OCDB target
+ * Optional parameters, if the default values are specified the
+ * corresponding key in the entry is not changed
+ * - first run
+ * - last run, if smaller than first run 'AliCDBRunRange::Infinity' is used
+ * - version
+ * - subversion
+ * - comment
+ * - responsible
+ * - aliroot version
+ *
* @author Matthias.Richter@ift.uib.no
* @ingroup alihlt_tutorial
*/
if (subversion>=0) cdbId.SetSubVersion(subversion);
if (firstrun>=0) cdbId.SetFirstRun(firstrun);
if (lastrun>=0) cdbId.SetLastRun(lastrun);
+ if (lastrun<firstrun) cdbId.SetLastRun(AliCDBRunRange::Infinity());
AliCDBMetaData* meta=cdbEntry->GetMetaData();
if (comment) meta->SetComment(comment);
man->Put(cdbEntry);
}
+
+void adjustOCDBObject()
+{
+ cout << "adjustOCDBObject.C adjust properties of an OCDB entry" << endl;
+ cout << "usage:" << endl;
+ cout << " aliroot -b -q adjustOCDBObject'(\"file\", " << endl;
+ cout << " targetCDB=\"local://$PWD\", " << endl;
+ cout << " firstrun=-1, " << endl;
+ cout << " lastrun=-1, " << endl;
+ cout << " version=-1, " << endl;
+ cout << " subversion=-1, " << endl;
+ cout << " comment=NULL, " << endl;
+ cout << " responsible=NULL, " << endl;
+ cout << " alirootv=NULL)' " << endl;
+ cout << " e.g." << endl;
+ cout << " aliroot -b -q adjustOCDBObject'(\"myfile.root\", \"$ALICE_ROOT/OCDB\", 42, 42)'" << endl;
+}