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