1 void CreateConfigMap(const char* delayFlag="kFALSE", const char* startRun="0", const char* binRangeAve="13", const char* integralThr="100", const char* thrPar="0.013"){
3 // Create Configuration Map entry for OCDB
4 // to configure AliTOFPreprocessor to compute delays/write online calibration obj on CDB
6 // - "delayFlag" should be set to kTRUE in case the delays have to be calculated, to
8 // - "startRun" indicates the starting run for the online calibration object validity
11 AliTOFcalib *tofcalib = new AliTOFcalib();
12 TMap *mapTOF = (TMap*)tofcalib->GetConfigMap();
13 mapTOF->Add(new TObjString("ComputingDelays"),new TObjString(delayFlag));
14 mapTOF->Add(new TObjString("StartingRun"),new TObjString(startRun));
15 mapTOF->Add(new TObjString("BinRangeAve"),new TObjString(binRangeAve));
16 mapTOF->Add(new TObjString("IntegralThr"),new TObjString(integralThr));
17 mapTOF->Add(new TObjString("ThrPar"),new TObjString(thrPar));
18 AliCDBManager *man = AliCDBManager::Instance();
19 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
20 tofcalib->WriteConfigMapOnCDB("TOF/Calib");