Default (=0) LHC-clock phase entry. The run range is from 0 to inf. The range of...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jul 2010 14:45:37 +0000 (14:45 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jul 2010 14:45:37 +0000 (14:45 +0000)
GRP/MakeLHCClockPhaseEntry.C [new file with mode: 0644]
OCDB/GRP/Calib/LHCClockPhase/Run0_999999999_v0_s0.root [new file with mode: 0644]

diff --git a/GRP/MakeLHCClockPhaseEntry.C b/GRP/MakeLHCClockPhaseEntry.C
new file mode 100644 (file)
index 0000000..0a7b1c1
--- /dev/null
@@ -0,0 +1,26 @@
+void MakeLHCClockPhaseEntry(const char *cdbStorage = "local://$ALICE_ROOT/OCDB")
+{
+  // Example macro to put in OCDB the default (=0) LHC-clock phase
+  // It is valid fro runs from 0 to inf
+  // The timestamp range is also inf (we store the first and last value for
+  // each beam)
+  AliCDBManager *man = AliCDBManager::Instance();
+  man->SetDefaultStorage(cdbStorage);
+
+  AliLHCClockPhase phaseObj;
+
+  phaseObj.AddPhaseB1DP(0,0.);
+  phaseObj.AddPhaseB2DP(0,0.);
+
+  phaseObj.AddPhaseB1DP(2147483647,0.);
+  phaseObj.AddPhaseB2DP(2147483647,0.);
+
+  AliCDBMetaData* metadata = new AliCDBMetaData();
+  metadata->SetResponsible("Cvetan Cheshkov");
+  metadata->SetComment("Default LHC-clock phase object");
+  AliCDBId id("GRP/Calib/LHCClockPhase",0,AliCDBRunRange::Infinity());
+
+  man->Put(&phaseObj,id,metadata);
+
+  return;
+}
diff --git a/OCDB/GRP/Calib/LHCClockPhase/Run0_999999999_v0_s0.root b/OCDB/GRP/Calib/LHCClockPhase/Run0_999999999_v0_s0.root
new file mode 100644 (file)
index 0000000..5fadd51
Binary files /dev/null and b/OCDB/GRP/Calib/LHCClockPhase/Run0_999999999_v0_s0.root differ