]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/Macros/AliTRDanalyzeBlackEventsLHC.C
Clean up make files (Jochen)
[u/mrichter/AliRoot.git] / TRD / Macros / AliTRDanalyzeBlackEventsLHC.C
CommitLineData
0f772b9f 1
2void AliTRDanalyzeBlackEventsLHC(const char *filename) {
3
4
3f7450e0 5 TString strFile = filename;
6 strFile += "?EventType=7";
7 AliRawReaderRoot *reader = new AliRawReaderRoot(strFile.Data(), 0);
0f772b9f 8 reader->SelectEquipment(0, 1024, 1041);
9 reader->Select("TRD");
0f772b9f 10
11 //AliTRDRawStreamTB::SupressWarnings(kTRUE);
12 //AliTRDrawStreamTB::SetForceCleanDataOnly();
13 AliTRDrawStreamTB::AllowCorruptedData();
b504b8e0 14
10dcabb4 15 AliTRDrawStreamTB::DisableStackNumberChecker();
16 AliTRDrawStreamTB::DisableStackLinkNumberChecker();
17 AliTRDrawStreamTB::DisableSkipData();
0f772b9f 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