2 void AliTRDanalyzeBlackEventsLHC(const char *filename) {
5 TString strFile = filename;
6 strFile += "?EventType=7";
7 AliRawReaderRoot *reader = new AliRawReaderRoot(strFile.Data(), 0);
8 reader->SelectEquipment(0, 1024, 1041);
11 //AliTRDRawStreamTB::SupressWarnings(kTRUE);
12 //AliTRDrawStreamTB::SetForceCleanDataOnly();
13 AliTRDrawStreamTB::AllowCorruptedData();
15 AliTRDrawStreamTB::DisableStackNumberChecker();
16 AliTRDrawStreamTB::DisableStackLinkNumberChecker();
17 AliTRDrawStreamTB::DisableSkipData();
19 AliTRDrawStreamTB *raw = new AliTRDrawStreamTB(reader);
21 //raw->SetRawVersion(3);
23 AliTRDqaBlackEvents *qa = new AliTRDqaBlackEvents();
27 while (reader->NextEvent()) {
28 cout << "next event " << counter++ << endl;
29 cout << qa->AddEvent(raw) << endl;
32 cout << "Processing" << endl;
33 qa->Process("qaTRD_black.root");
38 // AliTRDqaBlackEvents qa;
39 // qa.DrawSm("qaTRD_black.root", 0);
41 // qa.DrawChamber("qaTRD_black.root", 2);