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();
14 AliTRDrawStreamTB::DisableStackNumberChecker();
15 AliTRDrawStreamTB::DisableStackLinkNumberChecker();
16 AliTRDrawStreamTB::DisableSkipData();
18 AliTRDrawStreamTB *raw = new AliTRDrawStreamTB(reader);
20 //raw->SetRawVersion(3);
22 AliTRDqaBlackEvents *qa = new AliTRDqaBlackEvents();
26 while (reader->NextEvent()) {
27 cout << "next event " << counter++ << endl;
28 cout << qa->AddEvent(raw) << endl;
31 cout << "Processing" << endl;
32 qa->Process("qaTRD_black.root");
37 // AliTRDqaBlackEvents qa;
38 // qa.DrawSm("qaTRD_black.root", 0);
40 // qa.DrawChamber("qaTRD_black.root", 2);