Update timestamps for new AMANDA simulation (17/02/2015)
[u/mrichter/AliRoot.git] / VZERO / CheckCalibOCDB.C
1 void CheckCalibOCDB(Int_t run)
2 {
3   AliCDBManager *man = AliCDBManager::Instance();
4
5   man->SetDefaultStorage("raw://");
6   man->SetRun(run);
7
8   AliCDBEntry *ent = man->Get("VZERO/Calib/Data");
9   AliVZEROCalibData *calData = (AliVZEROCalibData*)ent->GetObject();
10
11   for(Int_t pmNumber = 0; pmNumber < 64; ++pmNumber) {
12     printf("Ch=%d HV=%.1f MIP=%.3f Ped0=%.1f Ped1=%.1f Thr=%1.f Dead=%s\n",
13            pmNumber,
14            calData->GetMeanHV(pmNumber),
15            1./calData->GetMIPperADC(pmNumber),
16            calData->GetPedestal(pmNumber),calData->GetPedestal(pmNumber+64),
17            calData->GetDiscriThr(pmNumber),
18            calData->IsChannelDead(pmNumber)?"yes":"no");
19   }
20 }