New class for the analysis of black events
[u/mrichter/AliRoot.git] / TRD / Macros / AliTRDanalyzeBlackEventsLHC.C
CommitLineData
0f772b9f 1
2void AliTRDanalyzeBlackEventsLHC(const char *filename) {
3
4
5 AliRawReaderRoot *reader = new AliRawReaderRoot(filename, 0);
6 reader->SelectEquipment(0, 1024, 1041);
7 reader->Select("TRD");
8 reader->SelectEvents(7);
9
10 //AliTRDRawStreamTB::SupressWarnings(kTRUE);
11 //AliTRDrawStreamTB::SetForceCleanDataOnly();
12 AliTRDrawStreamTB::AllowCorruptedData();
13
14 AliTRDrawStreamTB *raw = new AliTRDrawStreamTB(reader);
15 //raw->Init();
16 //raw->SetRawVersion(3);
17
18 AliTRDqaBlackEvents *qa = new AliTRDqaBlackEvents();
19 qa->Init();
20
21 int counter = 0;
22 while (reader->NextEvent()) {
23 cout << "next event " << counter++ << endl;
24 cout << qa->AddEvent(raw) << endl;
25 }
26
27 cout << "Processing" << endl;
28 qa->Process("qaTRD_black.root");
29}
30
31// drawing
32//
33// AliTRDqaBlackEvents qa;
34// qa.DrawSm("qaTRD_black.root", 0);
35//
36// qa.DrawChamber("qaTRD_black.root", 2);
37//
38