From d177d5bb0d1d6bf8c8e13ab834d0d1c044119394 Mon Sep 17 00:00:00 2001 From: cvetan Date: Wed, 7 Jul 2010 12:59:32 +0000 Subject: [PATCH] Adding the macro and input files which can be used now to populate OCDB with the new entry containing the CTP (mis)alignment info. --- GRP/CTP/fill1069.tip | 6 ++++++ GRP/CTP/stdln.tip | 6 ++++++ GRP/MakeCTPTimeAlignEntry.C | 30 ++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 GRP/CTP/fill1069.tip create mode 100644 GRP/CTP/stdln.tip create mode 100644 GRP/MakeCTPTimeAlignEntry.C diff --git a/GRP/CTP/fill1069.tip b/GRP/CTP/fill1069.tip new file mode 100644 index 00000000000..098b6eafffc --- /dev/null +++ b/GRP/CTP/fill1069.tip @@ -0,0 +1,6 @@ +L012 260 3952 +0VBA 0 -1 0 0 +0VBC 0 -1 0 0 +0BPA 0 -1 0 0 +0BPC 0 -1 0 0 +0SMB 0 -1 -3 0 diff --git a/GRP/CTP/stdln.tip b/GRP/CTP/stdln.tip new file mode 100644 index 00000000000..d0c65ffe7b1 --- /dev/null +++ b/GRP/CTP/stdln.tip @@ -0,0 +1,6 @@ +L012 260 3952 +0VBA 0 0 0 0 +0VBC 0 0 0 0 +0BPA 0 0 0 0 +0BPC 0 0 0 0 +0SMB 0 0 -3 0 diff --git a/GRP/MakeCTPTimeAlignEntry.C b/GRP/MakeCTPTimeAlignEntry.C new file mode 100644 index 00000000000..b213d28e729 --- /dev/null +++ b/GRP/MakeCTPTimeAlignEntry.C @@ -0,0 +1,30 @@ +void MakeCTPTimeAlignEntry(const char *cdbStorage = "local://$ALICE_ROOT/OCDB",Bool_t storeFill1069 = kFALSE){ + + // Example macro to put in OCDB the dummy entries for CTP timing params valid for perioid + // File *.tip interpretation: + // 1st column = trigger input name + // 2nd column = dummy (to keep compatibilyu with *.tim file + // 3rd column = time between L0 and reference + // 4th column = as in tim file + // 5th column = as in tim file + AliCDBManager *man = AliCDBManager::Instance(); + man->SetDefaultStorage(cdbStorage); + Char_t * filenameCTPtimeAlignIdeal = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.tip"); + Char_t * filenameCTPtimeAlign1069 = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/fill1069.tip"); + + AliCTPTimeParams *ctptimealignideal = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtimeAlignIdeal); + AliCTPTimeParams *ctptimealign1069 = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtimeAlign1069); + + AliCDBMetaData* metactptimeideal = new AliCDBMetaData(); + AliCDBMetaData* metactptime1069 = new AliCDBMetaData(); + metactptimeideal->SetResponsible("Roman Lietava"); + metactptime1069->SetResponsible("Roman Lietava"); + metactptimeideal->SetComment("CTP time-alignment params (Ideal)"); + metactptime1069->SetComment("CTP time-alignment params for period of runs corresponding to fill 1069"); + AliCDBId idctptimeideal("GRP/CTP/TimeAlign",0,AliCDBRunRange::Infinity()); + AliCDBId idctptime1069("GRP/CTP/TimeAlign",118556,118780); + man->Put(ctptimealignideal,idctptimeideal, metactptimeideal); + if (storeFill1069) man->Put(ctptimealign1069,idctptime1069, metactptime1069); + + return; +} -- 2.39.3