Macro and default object for the new Pb-Pb entry.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Oct 2011 09:41:52 +0000 (09:41 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 17 Oct 2011 09:41:52 +0000 (09:41 +0000)
OCDB/VZERO/Calib/EqualizationFactors/Run0_999999999_v0_s0.root [new file with mode: 0644]
VZERO/MakeVZEROEqualizationFactorsEntry.C [new file with mode: 0644]

diff --git a/OCDB/VZERO/Calib/EqualizationFactors/Run0_999999999_v0_s0.root b/OCDB/VZERO/Calib/EqualizationFactors/Run0_999999999_v0_s0.root
new file mode 100644 (file)
index 0000000..af77a94
Binary files /dev/null and b/OCDB/VZERO/Calib/EqualizationFactors/Run0_999999999_v0_s0.root differ
diff --git a/VZERO/MakeVZEROEqualizationFactorsEntry.C b/VZERO/MakeVZEROEqualizationFactorsEntry.C
new file mode 100644 (file)
index 0000000..a7b432a
--- /dev/null
@@ -0,0 +1,37 @@
+void MakeVZEROEqualizationFactorsEntry()
+{
+
+  AliCDBManager *man = AliCDBManager::Instance();
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+
+  // Creation of the light yields OCDB object
+  const Double_t alpha[66] = {0.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
+                             0.0};
+
+  TH1F *eqFactors = new TH1F("VZEROEqualizationFactors","VZERO Equalization Factors for Pb-Pb",64,-0.5,63.5);
+  eqFactors->SetContent(alpha);
+       
+  AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
+  md->SetResponsible("Brigitte Cheynis");
+  md->SetBeamPeriod(0);
+  md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
+  md->SetComment("Default entry for VZERO Equalization Factors object");
+  md->PrintMetaData();
+
+  AliCDBStorage *storLoc = man->GetDefaultStorage();
+  AliCDBId id("VZERO/Calib/EqualizationFactors",0,AliCDBRunRange::Infinity());
+
+  storLoc->Put(eqFactors, id, md);
+
+  storLoc->Delete();
+  delete md;
+
+}