]>
Commit | Line | Data |
---|---|---|
aad627ee | 1 | void AliT0setTimeDelay(Int_t firstRun, Int_t lastRun) |
2 | { | |
3 | // Writing calibration coefficients into the Calibration DB | |
4 | // Arguments: | |
5 | Int_t beamPeriod = 1; | |
6 | char* objFormat = "T0 initial time delay"; | |
7 | ||
8 | AliT0CalibTimeEq *clb = new AliT0CalibTimeEq(); | |
9 | for(Int_t ipmt=0; ipmt<24; ipmt++) clb->SetTimeEq(ipmt, 0); | |
10 | clb->Print(); | |
11 | //Store calibration data into database | |
12 | AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); | |
13 | AliCDBMetaData md; | |
14 | md.SetComment(objFormat); | |
15 | md.SetBeamPeriod(beamPeriod); | |
16 | md.SetResponsible("Alla"); | |
17 | TString fPath="T0/Calib/TimeDelay"; | |
18 | cout<<fPath.Data()<<endl; | |
19 | AliCDBStorage* storage = AliCDBManager::Instance()->GetDefaultStorage(); | |
20 | if(storage) { | |
21 | AliCDBId id(fPath.Data(),firstRun, lastRun ); | |
22 | storage->Put(clb, id, &md); | |
23 | } | |
24 | } |