]>
Commit | Line | Data |
---|---|---|
17149e6b | 1 | void CreateConfigMap(const char* delayFlag="kFALSE", const char* startRun="0", const char* binRangeAve="13", const char* integralThr="100", const char* thrPar="0.013"){ |
2 | ||
3 | // Create Configuration Map entry for OCDB | |
4 | // to configure AliTOFPreprocessor to compute delays/write online calibration obj on CDB | |
5 | // USAGE: | |
6 | // - "delayFlag" should be set to kTRUE in case the delays have to be calculated, to | |
7 | // kFALSE otherwise. | |
8 | // - "startRun" indicates the starting run for the online calibration object validity | |
9 | // for delays | |
10 | ||
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(); | |
162637e4 | 19 | man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
17149e6b | 20 | tofcalib->WriteConfigMapOnCDB("TOF/Calib"); |
21 | } |