Updated comment.
[u/mrichter/AliRoot.git] / GRP / MakeCTPDummyEntries.C
CommitLineData
e75e6e01 1void 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");
9 Char_t * filenameConfig = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/p-p.cfg");
10 Char_t * filenameScalers = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/xcounters.txt");
11
12 AliTriggerConfiguration *runcfg = AliTriggerConfiguration::LoadConfiguration(filenameConfig);
13 AliTriggerRunScalers *scalers = AliTriggerRunScalers::ReadScalers(filenameScalers);
14
15 AliCDBMetaData* metaconfig = new AliCDBMetaData();
16 metaconfig->SetResponsible("Roman Lietava");
17 metaconfig->SetComment("Dummy CTP configuration for standalone runs");
18 AliCDBId idconfig("GRP/CTP/DummyConfig",0,AliCDBRunRange::Infinity());
19 man->Put(runcfg,idconfig, metaconfig);
20
21 AliCDBMetaData* metascalers = new AliCDBMetaData();
22 metascalers->SetResponsible("Roman Lietava");
23 metascalers->SetComment("Dummy CTP scalers for standalone runs");
24 AliCDBId idscalers("GRP/CTP/DummyScalers",0,AliCDBRunRange::Infinity());
25 man->Put(scalers,idscalers, metascalers);
26 return;
27}