]>
Commit | Line | Data |
---|---|---|
0f772b9f | 1 | |
2 | void AliTRDanalyzeBlackEventsLHC(const char *filename) { | |
3 | ||
4 | ||
3f7450e0 | 5 | TString strFile = filename; |
6 | strFile += "?EventType=7"; | |
7 | AliRawReaderRoot *reader = new AliRawReaderRoot(strFile.Data(), 0); | |
0f772b9f | 8 | reader->SelectEquipment(0, 1024, 1041); |
9 | reader->Select("TRD"); | |
0f772b9f | 10 | |
11 | //AliTRDRawStreamTB::SupressWarnings(kTRUE); | |
12 | //AliTRDrawStreamTB::SetForceCleanDataOnly(); | |
13 | AliTRDrawStreamTB::AllowCorruptedData(); | |
10dcabb4 | 14 | AliTRDrawStreamTB::DisableStackNumberChecker(); |
15 | AliTRDrawStreamTB::DisableStackLinkNumberChecker(); | |
16 | AliTRDrawStreamTB::DisableSkipData(); | |
0f772b9f | 17 | |
18 | AliTRDrawStreamTB *raw = new AliTRDrawStreamTB(reader); | |
19 | //raw->Init(); | |
20 | //raw->SetRawVersion(3); | |
21 | ||
22 | AliTRDqaBlackEvents *qa = new AliTRDqaBlackEvents(); | |
23 | qa->Init(); | |
24 | ||
25 | int counter = 0; | |
26 | while (reader->NextEvent()) { | |
27 | cout << "next event " << counter++ << endl; | |
28 | cout << qa->AddEvent(raw) << endl; | |
29 | } | |
30 | ||
31 | cout << "Processing" << endl; | |
32 | qa->Process("qaTRD_black.root"); | |
33 | } | |
34 | ||
35 | // drawing | |
36 | // | |
37 | // AliTRDqaBlackEvents qa; | |
38 | // qa.DrawSm("qaTRD_black.root", 0); | |
39 | // | |
40 | // qa.DrawChamber("qaTRD_black.root", 2); | |
41 | // | |
42 |