Possibility to specify event selection criteria within the raw-data input URI. The...
[u/mrichter/AliRoot.git] / TRD / Macros / AliTRDanalyzeBlackEventsLHC.C
... / ...
CommitLineData
1
2void 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 AliTRDrawStreamTB::DisableStackNumberChecker();
15 AliTRDrawStreamTB::DisableStackLinkNumberChecker();
16 AliTRDrawStreamTB::DisableSkipData();
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