]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Macros/AliTRDanalyzeBlackEventsLHC.C
Updated QA (Sylwester)
[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
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