Reading muon trigger scalers with the DA of the muon trigger and transfer
[u/mrichter/AliRoot.git] / T0 / AliT0getTimeAdjust.C
1 //------------------------------------------------------------------------
2 void AliT0getTimeAdjust(Int_t run)
3 {
4   // Read calibration coefficients into the Calibration DB
5   AliCDBManager* man = AliCDBManager::Instance();
6   man->SetDefaultStorage("raw://");
7   man->SetRun(run);
8   AliCDBEntry *entry = AliCDBManager::Instance()->Get("T0/Calib/TimeAdjust");
9  
10   AliT0CalibSeasonTimeShift *clb = (AliT0CalibSeasonTimeShift*)entry->GetObject();
11   clb->Print();
12   Float_t *means= clb-> GetT0Means();
13   Float_t *sigmas= clb-> GetT0Sigmas();
14     for (Int_t i=0; i<4; i++) 
15       cout<<means[i]<<" "<<sigmas[i]<<endl;
16
17 }