Disable retireval of DCS data points from AliShuttle for SDD
[u/mrichter/AliRoot.git] / GRP / MakeCTPTimeAlignEntry.C
CommitLineData
d177d5bb 1void MakeCTPTimeAlignEntry(const char *cdbStorage = "local://$ALICE_ROOT/OCDB",Bool_t storeFill1069 = kFALSE){
2
3 // Example macro to put in OCDB the dummy entries for CTP timing params valid for perioid
4 // File *.tip interpretation:
5 // 1st column = trigger input name
6 // 2nd column = dummy (to keep compatibilyu with *.tim file
7 // 3rd column = time between L0 and reference
8 // 4th column = as in tim file
9 // 5th column = as in tim file
10 AliCDBManager *man = AliCDBManager::Instance();
11 man->SetDefaultStorage(cdbStorage);
12 Char_t * filenameCTPtimeAlignIdeal = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.tip");
13 Char_t * filenameCTPtimeAlign1069 = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/fill1069.tip");
14
15 AliCTPTimeParams *ctptimealignideal = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtimeAlignIdeal);
16 AliCTPTimeParams *ctptimealign1069 = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtimeAlign1069);
17
18 AliCDBMetaData* metactptimeideal = new AliCDBMetaData();
19 AliCDBMetaData* metactptime1069 = new AliCDBMetaData();
20 metactptimeideal->SetResponsible("Roman Lietava");
21 metactptime1069->SetResponsible("Roman Lietava");
22 metactptimeideal->SetComment("CTP time-alignment params (Ideal)");
23 metactptime1069->SetComment("CTP time-alignment params for period of runs corresponding to fill 1069");
24 AliCDBId idctptimeideal("GRP/CTP/TimeAlign",0,AliCDBRunRange::Infinity());
25 AliCDBId idctptime1069("GRP/CTP/TimeAlign",118556,118780);
26 man->Put(ctptimealignideal,idctptimeideal, metactptimeideal);
27 if (storeFill1069) man->Put(ctptimealign1069,idctptime1069, metactptime1069);
28
29 return;
30}