Updating file for nightly test, with new DIP names, and new DCS period.
[u/mrichter/AliRoot.git] / GRP / MakeCTPDummyEntries.C
1 void MakeCTPDummyEntries(){
2
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 
6
7         AliCDBManager *man = AliCDBManager::Instance();
8         man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
9         Char_t * filenameConfig = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.cfg");
10         Char_t * filenameScalers = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.cnt");
11         Char_t * filenameCTPtime = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.tim");
12
13         AliTriggerConfiguration *runcfg = AliTriggerConfiguration::LoadConfiguration(filenameConfig);
14         AliTriggerRunScalers *scalers = AliTriggerRunScalers::ReadScalers(filenameScalers);
15         AliCTPTimeParams *ctptime = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtime);
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);
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
35         return;
36 }