]>
Commit | Line | Data |
---|---|---|
1 | void CreateCalibPars_Ideal(){ | |
2 | // Create TOF Calibration Object for Ideal calibration and | |
3 | // write it on CDB | |
4 | AliCDBManager *man = AliCDBManager::Instance(); | |
5 | man->SetDefaultStorage("local://$ALICE"); | |
6 | AliTOFcalib *tofcalib = new AliTOFcalib(); | |
7 | tofcalib->CreateCalArrays(); | |
8 | TObjArray *tofCalOffline = (TObjArray*) tofcalib->GetTOFCalArrayOffline(); | |
9 | TH1F *hToT= new TH1F(); //"empty" ToT histo as a default for ideal | |
10 | tofcalib->WriteParOfflineOnCDB("TOF/Calib","valid",0,AliCDBRunRange::Infinity()); | |
11 | tofcalib->WriteSimHistoOnCDB("TOF/Calib",0,AliCDBRunRange::Infinity(),hToT); | |
12 | } | |
13 | ||
14 |