Adding OCDB entry for time slewing + a macro to create it.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Mar 2010 14:58:40 +0000 (14:58 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Mar 2010 14:58:40 +0000 (14:58 +0000)
OCDB/VZERO/Calib/TimeSlewing/Run0_999999999_v0_s0.root [new file with mode: 0644]
VZERO/MakeVZEROTimeSlewingEntry.C [new file with mode: 0644]

diff --git a/OCDB/VZERO/Calib/TimeSlewing/Run0_999999999_v0_s0.root b/OCDB/VZERO/Calib/TimeSlewing/Run0_999999999_v0_s0.root
new file mode 100644 (file)
index 0000000..c946e10
Binary files /dev/null and b/OCDB/VZERO/Calib/TimeSlewing/Run0_999999999_v0_s0.root differ
diff --git a/VZERO/MakeVZEROTimeSlewingEntry.C b/VZERO/MakeVZEROTimeSlewingEntry.C
new file mode 100644 (file)
index 0000000..aa34886
--- /dev/null
@@ -0,0 +1,29 @@
+void MakeVZEROTimeSlewingEntry()
+{
+
+  AliCDBManager *man = AliCDBManager::Instance();
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+
+  // Creation of the time slewing OCDB object
+  TF1 *slew = new TF1("TimeSlewing","[0]*TMath::Power(x,[1])",1,1024);
+  slew->SetParameter(0,1.57345e1);
+  slew->SetParameter(1,-4.25603e-1);
+       
+  TObjString str("VZERO Time-slewing correction");
+
+  AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
+  md->SetResponsible("Brigitte Cheynis");
+  md->SetBeamPeriod(0);
+  md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
+  md->SetComment("Time-slewing correction used in reconstruction and MC simulation");
+  md->PrintMetaData();
+
+  AliCDBStorage *storLoc = man->GetDefaultStorage();
+  AliCDBId id("VZERO/Calib/TimeSlewing",0,AliCDBRunRange::Infinity());
+
+  storLoc->Put(slew, id, md);
+
+  storLoc->Delete();
+  delete md;
+
+}