]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEveTRDDataEditor.cxx
From Alexandru:
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTRDDataEditor.cxx
1 #include "AliEveTRDDataEditor.h"
2 #include "AliEveTRDData.h"
3
4 ClassImp(AliEveTRDHitsEditor)
5 ClassImp(AliEveTRDDigitsEditor)
6
7 ///////////////////////////////////////////////////////////
8 ////////////   AliEveTRDHitsEditor      ///////////////////
9 ///////////////////////////////////////////////////////////
10 AliEveTRDHitsEditor::AliEveTRDHitsEditor(const TGWindow* p, Int_t width, Int_t height,
11                                          UInt_t options, Pixel_t back) :
12   TGedFrame(p, width, height, options, back)
13   ,fM(0x0)
14 {
15   // Constructor.
16
17   MakeTitle("TRD Points");
18 }
19
20 void AliEveTRDHitsEditor::SetModel(TObject* obj)
21 {
22   // Set model object.
23
24   fM = dynamic_cast<AliEveTRDHits*>(obj);
25
26   //    Float_t x, y, z;
27   //    for(int ihit=0; ihit<fM->GetN(); ihit++){
28   //            fM->GetPoint(ihit, x, y, z);
29   //            printf("%3d : x=%6.3f y=%6.3f z=%6.3f\n", ihit, x, y, z);
30   //    }
31 }
32
33 ///////////////////////////////////////////////////////////
34 /////////////   AliEveTRDDigitsEditor /////////////////////
35 ///////////////////////////////////////////////////////////
36 AliEveTRDDigitsEditor::AliEveTRDDigitsEditor(const TGWindow* p, Int_t width, Int_t height,
37                                              UInt_t options, Pixel_t back) :
38   TGedFrame(p, width, height, options, back)
39   ,fM(0x0)
40 {
41   // Constructor.
42
43   MakeTitle("TRD Pixels");
44 }
45
46 void AliEveTRDDigitsEditor::SetModel(TObject* obj)
47 {
48   // Set model object.
49
50   fM = dynamic_cast<AliEveTRDDigits*>(obj);
51   //fM->fParent->SpawnEditor();
52
53   //    printf("Chamber %d", fM->fParent->GetID());
54   //    for (Int_t  row = 0;  row <  fM->fParent->GetRowMax();  row++)
55   //            for (Int_t  col = 0;  col <  fM->fParent->GetColMax();  col++)
56   //                    for (Int_t time = 0; time < fM->fParent->GetTimeMax(); time++) {
57   //                            printf("\tA(%d %d %d) = %d\n", row, col, time, fM->fData.GetDataUnchecked(row, col, time));
58   //                    }
59 }
60