new class for PbPb cut analysis
[u/mrichter/AliRoot.git] / GRP / MakeCTPDummyEntries.C
index 0ca7a726829d468b08a6436b14709033b51eae31..6e0dc102da4fe58b60f7d6cb844b0e21aacc1b54 100644 (file)
@@ -1,14 +1,18 @@
 void MakeCTPDummyEntries(){
 
-       // macro to put in OCDB the dummy entries for CTP configuration and scalers
+       // Example macro to put in OCDB the dummy entries for CTP configuration and scalers
+       // The entries are at present taken from $ALICE_ROOT 
+       // Should be used to test the GRP preprocessor 
 
        AliCDBManager *man = AliCDBManager::Instance();
        man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
-       Char_t * filenameConfig = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/p-p.cfg");
-       Char_t * filenameScalers = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/xcounters.txt");
+       Char_t * filenameConfig = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.cfg");
+       Char_t * filenameScalers = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.cnt");
+        Char_t * filenameCTPtime = gSystem->ExpandPathName("$ALICE_ROOT/GRP/CTP/stdln.tim");
 
        AliTriggerConfiguration *runcfg = AliTriggerConfiguration::LoadConfiguration(filenameConfig);
        AliTriggerRunScalers *scalers = AliTriggerRunScalers::ReadScalers(filenameScalers);
+       AliCTPTimeParams *ctptime = AliCTPTimeParams::LoadCTPTimeParams(filenameCTPtime);
 
        AliCDBMetaData* metaconfig = new AliCDBMetaData();
        metaconfig->SetResponsible("Roman Lietava");
@@ -21,5 +25,12 @@ void MakeCTPDummyEntries(){
        metascalers->SetComment("Dummy CTP scalers for standalone runs");
        AliCDBId idscalers("GRP/CTP/DummyScalers",0,AliCDBRunRange::Infinity());
        man->Put(scalers,idscalers, metascalers);
+
+       AliCDBMetaData* metactptime = new AliCDBMetaData();
+       metactptime->SetResponsible("Roman Lietava");
+       metactptime->SetComment("Dummy CTP time params for standalone runs");
+       AliCDBId idctptime("GRP/CTP/DummyCTPtime",0,AliCDBRunRange::Infinity());
+       man->Put(ctptime,idctptime, metactptime);
+
        return;
 }