Adding the macro and input files which can be used now to populate OCDB with the...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jul 2010 12:59:32 +0000 (12:59 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jul 2010 12:59:32 +0000 (12:59 +0000)
GRP/CTP/fill1069.tip [new file with mode: 0644]
GRP/CTP/stdln.tip [new file with mode: 0644]
GRP/MakeCTPTimeAlignEntry.C [new file with mode: 0644]

diff --git a/GRP/CTP/fill1069.tip b/GRP/CTP/fill1069.tip
new file mode 100644 (file)
index 0000000..098b6ea
--- /dev/null
@@ -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 (file)
index 0000000..d0c65ff
--- /dev/null
@@ -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 (file)
index 0000000..b213d28
--- /dev/null
@@ -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;
+}