1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include <TGeoMatrix.h>
4 #include <TEveElement.h>
5 #include <TEveFrameBox.h>
6 #include <TEveManager.h>
7 #include <TEveRGBAPalette.h>
9 #include <TEveQuadSet.h>
11 #include <HMPID/AliHMPIDDigit.h>
12 #include <HMPID/AliHMPIDv3.h>
13 #include <HMPID/AliHMPIDRawStream.h>
14 #include <RAW/AliRawReader.h>
15 #include <EVE/EveBase/AliEveEventManager.h>
20 const Char_t *name[] = { "HMPID0", "HMPID1", "HMPID2", "HMPID3",
21 "HMPID4", "HMPID5", "HMPID6" };
23 AliRawReader *rawReader = AliEveEventManager::AssertRawReader();
24 AliHMPIDRawStream stream(rawReader);
26 TEveElementList* list = new TEveElementList("HMPID Raw");
27 gEve->AddElement(list);
29 gStyle->SetPalette(1, 0);
31 TEveRGBAPalette *pal = new TEveRGBAPalette(0, 3000);
33 TEveFrameBox *box = new TEveFrameBox();
34 box->SetAAQuadXY(0, 0, 0, 144, 121);
35 box->SetFrameColor(kGray);
38 for (Int_t iCh = 0; iCh < 7; ++iCh)
40 ms[iCh] = new TEveQuadSet(Form("Chamber %d", iCh));
42 TEveQuadSet* q = ms[iCh];
46 q->SetAntiFlick(kTRUE);
47 q->SetPickable(kTRUE);
49 q->Reset(TEveQuadSet::kQT_RectangleXYFixedDimZ, kFALSE, 64);
51 q->SetDefHeight(0.84f);
57 Int_t ch = AliHMPIDParam::DDL2C(stream.GetDDLNumber());
58 TEveQuadSet* q = ms[ch];
60 for (Int_t iPad = 0; iPad < stream.GetNPads(); ++iPad)
62 AliHMPIDDigit dig(stream.GetPadArray()[iPad],stream.GetChargeArray()[iPad]);
64 q->AddQuad(dig.PadChX()*0.8f, dig.PadChY()*0.84f);
65 q->QuadValue(TMath::Nint(dig.Q()));
66 q->QuadId(new AliHMPIDDigit(dig));
70 for (Int_t iCh = 0; iCh < 7; ++iCh)
72 TEveQuadSet* q = ms[iCh];
77 AliHMPIDv3::IdealPosition(iCh, &mat);
78 q->RefMainTrans().SetFrom(mat);
79 q->RefMainTrans().Move3LF(-0.5*144, -0.5*121, 0);