]>
Commit | Line | Data |
---|---|---|
e75e6e01 | 1 | void MakeCTPDummyEntries(){ |
2 | ||
6e780c51 | 3 | // Example macro to put in OCDB the dummy entries for CTP configuration and scalers |
4 | // The entries are at present taken from $ALICE_ROOT | |
5 | // Should be used to test the GRP preprocessor | |
e75e6e01 | 6 | |
7 | AliCDBManager *man = AliCDBManager::Instance(); | |
8 | man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); | |
c3ca811b | 9 | Char_t * filenameConfig = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.cfg"); |
10 | Char_t * filenameScalers = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.cnt"); | |
6614fa48 | 11 | Char_t * filenameCTPtime = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.tim"); |
e75e6e01 | 12 | |
13 | AliTriggerConfiguration *runcfg = AliTriggerConfiguration::LoadConfiguration(filenameConfig); | |
14 | AliTriggerRunScalers *scalers = AliTriggerRunScalers::ReadScalers(filenameScalers); | |
6614fa48 | 15 | AliCTPTimeParams *ctptime = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtime); |
e75e6e01 | 16 | |
17 | AliCDBMetaData* metaconfig = new AliCDBMetaData(); | |
18 | metaconfig->SetResponsible("Roman Lietava"); | |
19 | metaconfig->SetComment("Dummy CTP configuration for standalone runs"); | |
20 | AliCDBId idconfig("GRP/CTP/DummyConfig",0,AliCDBRunRange::Infinity()); | |
21 | man->Put(runcfg,idconfig, metaconfig); | |
22 | ||
23 | AliCDBMetaData* metascalers = new AliCDBMetaData(); | |
24 | metascalers->SetResponsible("Roman Lietava"); | |
25 | metascalers->SetComment("Dummy CTP scalers for standalone runs"); | |
26 | AliCDBId idscalers("GRP/CTP/DummyScalers",0,AliCDBRunRange::Infinity()); | |
27 | man->Put(scalers,idscalers, metascalers); | |
6614fa48 | 28 | |
29 | AliCDBMetaData* metactptime = new AliCDBMetaData(); | |
30 | metactptime->SetResponsible("Roman Lietava"); | |
31 | metactptime->SetComment("Dummy CTP time params for standalone runs"); | |
32 | AliCDBId idctptime("GRP/CTP/DummyCTPtime",0,AliCDBRunRange::Infinity()); | |
33 | man->Put(ctptime,idctptime, metactptime); | |
34 | ||
e75e6e01 | 35 | return; |
36 | } |