05355814c46470529704491bea5521ba7c2f6d7d
[u/mrichter/AliRoot.git] / TRD / Macros / AliTRDanalyzeBlackEventsLHC.C
1
2 void 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   AliTRDrawStreamTB::DisableStackNumberChecker();
14   AliTRDrawStreamTB::DisableStackLinkNumberChecker();
15   AliTRDrawStreamTB::DisableSkipData();
16
17   AliTRDrawStreamTB *raw = new AliTRDrawStreamTB(reader); 
18   //raw->Init();
19   //raw->SetRawVersion(3);
20
21   AliTRDqaBlackEvents *qa = new AliTRDqaBlackEvents();
22   qa->Init();
23
24   int counter = 0;
25   while (reader->NextEvent()) {
26     cout << "next event " << counter++ <<  endl;
27     cout << qa->AddEvent(raw) << endl;
28   }
29
30   cout << "Processing" << endl;
31   qa->Process("qaTRD_black.root");
32 }
33
34 // drawing 
35 //
36 // AliTRDqaBlackEvents qa;
37 // qa.DrawSm("qaTRD_black.root", 0);
38 //
39 // qa.DrawChamber("qaTRD_black.root", 2);
40 //
41