Macro to fix the 'HV ramping down before EOR' problem.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 6 Nov 2011 09:20:28 +0000 (09:20 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 6 Nov 2011 09:20:28 +0000 (09:20 +0000)
VZERO/MakeVZEROCalibEntryHVfix.C [new file with mode: 0644]

diff --git a/VZERO/MakeVZEROCalibEntryHVfix.C b/VZERO/MakeVZEROCalibEntryHVfix.C
new file mode 100644 (file)
index 0000000..f993e9e
--- /dev/null
@@ -0,0 +1,24 @@
+void MakeVZEROCalibEntryHVfix(Int_t runIn, Int_t runOut, const char *inputCDB = "raw://"){
+
+  AliCDBManager *man = AliCDBManager::Instance();
+
+  man->SetDefaultStorage(inputCDB);
+  man->SetRun(runIn);
+
+  AliCDBEntry *entry = man->Get("VZERO/Calib/Data");
+  AliVZEROCalibData *calibdaorg = (AliVZEROCalibData*)entry->GetObject();
+  AliVZEROCalibData *calibda = new AliVZEROCalibData(*calibdaorg);
+
+  // Creation of the object VZERO Calibration as a MetaData
+  AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
+  md->SetResponsible("Brigitte Cheynis");
+  md->SetBeamPeriod(0);
+  md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
+  md->SetComment("VZERO Calibration from RAW OCDB (repaired manually for HV ramping-down before EOR)");
+  AliCDBId id("VZERO/Calib/Data",runOut,runOut);
+
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  AliCDBStorage *storLoc = man->GetDefaultStorage();
+  storLoc->Put(calibda, id, md);
+
+}