]>
Commit | Line | Data |
---|---|---|
f79b7605 | 1 | CheckTOFFEElight(Char_t *fileName) |
2 | { | |
3 | ||
4 | AliTOFFEEReader r; | |
5 | r.LoadFEElightConfig(fileName); | |
6 | Int_t nch = r.ParseFEElightConfig(); | |
7 | printf("found %d channels enabled\n", nch); | |
8 | ||
9 | TH1F *hDO = new TH1F("hDO", "detector-oriented (DO);index;enabled", 157248, 0, 157248); | |
10 | TH1F *hEO = new TH1F("hEO", "electronics-oriented (EO);index;enabled", 172800, 0, 172800); | |
11 | ||
12 | AliTOFcalibHisto ch; | |
13 | ch.LoadCalibHisto(); | |
14 | ||
15 | Int_t drm, trm, chain, tdc, channel, indexEO; | |
16 | ||
17 | for (Int_t indexDO = 0; indexDO < 157248; indexDO++) | |
18 | if (r.IsChannelEnabled(indexDO)) { | |
19 | drm = (Int_t)ch.GetCalibMap(AliTOFcalibHisto::kDDL, indexDO); | |
20 | trm = (Int_t)ch.GetCalibMap(AliTOFcalibHisto::kTRM, indexDO); | |
21 | chain = (Int_t)ch.GetCalibMap(AliTOFcalibHisto::kChain, indexDO); | |
22 | tdc = (Int_t)ch.GetCalibMap(AliTOFcalibHisto::kTDC, indexDO); | |
23 | channel = (Int_t)ch.GetCalibMap(AliTOFcalibHisto::kChannel, indexDO); | |
24 | indexEO = (Int_t)ch.GetIndexEO(drm, trm, chain, tdc, channel); | |
25 | hDO->Fill(indexDO); | |
26 | hEO->Fill(indexEO); | |
27 | } | |
28 | ||
29 | TCanvas *c = new TCanvas("c"); | |
30 | c->Divide(1,2); | |
31 | c->cd(1); | |
32 | hDO->Draw(); | |
33 | ||
34 | ||
35 | c->cd(2); | |
36 | hEO->SetLineColor(2); | |
37 | hEO->SetLineWidth(2); | |
38 | hEO->Draw(); | |
39 | for (Int_t i = 0; i < 720; i++) { | |
40 | TLine *l = new TLine(i * 240, 0., i * 240, 0.25); | |
41 | l->Draw("same"); | |
42 | } | |
43 | for (Int_t i = 0; i < 72; i++) { | |
44 | TLine *l = new TLine(i * 2400, 0., i * 2400, 0.5); | |
45 | l->SetLineColor(4); | |
46 | l->SetLineWidth(2); | |
47 | l->Draw("same"); | |
48 | } | |
49 | ||
50 | ||
51 | } |