forked from ALICEHLT/AliRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateConfigMap.C
More file actions
21 lines (19 loc) · 1.1 KB
/
CreateConfigMap.C
File metadata and controls
21 lines (19 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void CreateConfigMap(const char* delayFlag="kFALSE", const char* startRun="0", const char* binRangeAve="13", const char* integralThr="100", const char* thrPar="0.013"){
// Create Configuration Map entry for OCDB
// to configure AliTOFPreprocessor to compute delays/write online calibration obj on CDB
// USAGE:
// - "delayFlag" should be set to kTRUE in case the delays have to be calculated, to
// kFALSE otherwise.
// - "startRun" indicates the starting run for the online calibration object validity
// for delays
AliTOFcalib *tofcalib = new AliTOFcalib();
TMap *mapTOF = (TMap*)tofcalib->GetConfigMap();
mapTOF->Add(new TObjString("ComputingDelays"),new TObjString(delayFlag));
mapTOF->Add(new TObjString("StartingRun"),new TObjString(startRun));
mapTOF->Add(new TObjString("BinRangeAve"),new TObjString(binRangeAve));
mapTOF->Add(new TObjString("IntegralThr"),new TObjString(integralThr));
mapTOF->Add(new TObjString("ThrPar"),new TObjString(thrPar));
AliCDBManager *man = AliCDBManager::Instance();
man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
tofcalib->WriteConfigMapOnCDB("TOF/Calib");
}