TOF preprocessor modified in order to use TOFFEElight data structure instead of TOFFE...
[u/mrichter/AliRoot.git] / TOF / CheckCalibStatus.C
CommitLineData
fceb731d 1CheckCalibStatus(const Char_t *fileName)
2{
3
4 TFile *file = TFile::Open(fileName);
5 AliCDBEntry *cdbe = (AliCDBEntry *)file->Get("AliCDBEntry");
6 AliTOFChannelOnlineStatusArray *array = (AliTOFChannelOnlineStatusArray *)cdbe->GetObject();
7
8 TH1F *h = new TH1F("h", "Channel status;index;status", array->GetSize(), 0., array->GetSize(););
9 for (Int_t i = 0; i < array->GetSize(); i++)
10 h->SetBinContent(i + 1, array->GetStatus(i));
11
12 h->Draw();
13
14}