Adding time delays (channel-by-channel) as an OCDB entry. Measured only once since...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Mar 2010 09:03:08 +0000 (09:03 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Mar 2010 09:03:08 +0000 (09:03 +0000)
OCDB/VZERO/Calib/TimeDelays/Run0_999999999_v0_s0.root [new file with mode: 0644]
VZERO/MakeVZEROTimeDelaysEntry.C [new file with mode: 0644]

diff --git a/OCDB/VZERO/Calib/TimeDelays/Run0_999999999_v0_s0.root b/OCDB/VZERO/Calib/TimeDelays/Run0_999999999_v0_s0.root
new file mode 100644 (file)
index 0000000..873dd10
Binary files /dev/null and b/OCDB/VZERO/Calib/TimeDelays/Run0_999999999_v0_s0.root differ
diff --git a/VZERO/MakeVZEROTimeDelaysEntry.C b/VZERO/MakeVZEROTimeDelaysEntry.C
new file mode 100644 (file)
index 0000000..755f8e5
--- /dev/null
@@ -0,0 +1,27 @@
+void MakeVZEROTimeDelaysEntry()
+{
+
+  AliCDBManager *man = AliCDBManager::Instance();
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+
+  // Creation of the time delays OCDB object
+  const Double_t timeShift[66] = {0.0 , 0.477957 , 0.0889999 , 0.757669 , 0.205439 , 0.239666 , -0.183705 , 0.442873 , -0.281366 , 0.260976 , 0.788995 , 0.974758 , 0.548532 , 0.495023 , 0.868472 , 0.661167 , 0.358307 , 0.221243 , 0.530179 , 1.26696 , 1.33082 , 1.27086 , 1.77133 , 1.10253 , 0.634806 , 2.14838 , 1.50212 , 1.59253 , 1.66122 , 1.16957 , 1.52056 , 1.47791 , 1.81905 , -1.94123 , -1.29124 , -2.16045 , -1.78939 , -3.11111 , -1.87178 , -1.57671 , -1.70311 , -1.81208 , -1.94475 , -2.53058 , -1.7042 , -2.08109 , -1.84416 , -0.61073 , -1.77145 , 0.16999 , -0.0585339 , 0.00401133 , 0.397726 , 0.851111 , 0.264187 , 0.59573 , -0.158263 , 0.584362 , 1.20835 , 0.927573 , 1.13895 , 0.64648 , 2.18747 , 1.68909 , 0.451194 , 0.0};
+  TH1F *delays = new TH1F("VZEROTimeDelays","VZERO Time delays",64,-0.5,63.5);
+  delays->SetContent(timeShift);
+       
+  AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
+  md->SetResponsible("Brigitte Cheynis");
+  md->SetBeamPeriod(0);
+  md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
+  md->SetComment("Time delays channel by channel");
+  md->PrintMetaData();
+
+  AliCDBStorage *storLoc = man->GetDefaultStorage();
+  AliCDBId id("VZERO/Calib/TimeDelays",0,AliCDBRunRange::Infinity());
+
+  storLoc->Put(delays, id, md);
+
+  storLoc->Delete();
+  delete md;
+
+}