warning fix
[u/mrichter/AliRoot.git] / TOF / CreateRecPars_CDB.C
CommitLineData
14520bfa 1void CreateRecPars_CDB(){
2 // Create TOF Calibration Object for Ideal calibration and
3 // write it on CDB
4 AliCDBManager *man = AliCDBManager::Instance();
162637e4 5 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
6ecd3e22 6 AliTOFcalib *tofcalib = new AliTOFcalib();
d6888ae2 7
8 TObjArray * array = new TObjArray(2);
9 array->Clear();
14520bfa 10 AliTOFRecoParam *param = new AliTOFRecoParam();
d6888ae2 11 param->SetTimeResolution(100.);
12 AliTOFRecoParam *paramPbPb = param->GetPbPbparam();
13 paramPbPb->SetTimeResolution(100.);
14 AliTOFRecoParam *parampp = param->GetPPparam();
15 parampp->SetTimeResolution(100.);
16
17 array->AddLast(parampp);
18 array->AddLast(paramPbPb);
19
20 tofcalib->WriteRecParOnCDB("TOF/Calib",0,999999999,array);
14520bfa 21}