- Timestamp:
- 10/24/01 11:51:33 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r979 r980 24 24 // 25 25 MCamDisplay::MCamDisplay(MGeomCam *geom) 26 : fAutoScale(kTRUE), f W(0), fH(0), fMinPhe(-2), fMaxPhe(50), fDrawingPad(NULL)26 : fAutoScale(kTRUE), fMinPhe(-2), fMaxPhe(50), fW(0), fH(0), fDrawingPad(NULL) 27 27 { 28 28 // -
trunk/MagicSoft/Mars/mgui/MCamDisplay.h
r978 r980 24 24 25 25 UInt_t fNumPixels; // number of pixels in the present geometry 26 Int_tfRange; // the range in millimeters of the present geometry26 Float_t fRange; // the range in millimeters of the present geometry 27 27 28 28 Float_t fMinPhe; // The minimal number of Phe … … 33 33 TClonesArray *fLegText; // array of all texts 34 34 35 UInt_t fW; // Width of canvas 36 UInt_t fH; // Height of canvas 35 37 TVirtualPad *fDrawingPad; // pad in which we are drawing 36 37 38 38 39 TBox *GetBox(Int_t i) { return (TBox*) fLegend->At(i); } 39 40 TText *GetText(Int_t i) { return (TText*)fLegText->At(i); } 40 41 41 void SetPixColor(const MCerPhotPix &pix);42 43 42 MHexagon &operator[](int i) { return *((MHexagon*)fPixels->At(i)); } 44 43 44 void SetPixColor(const MCerPhotPix &pix); 45 45 Int_t GetColor(Float_t wert); 46 46 47 47 void UpdateLegend(); 48 void Paint(Option_t *option=""); 48 49 49 50 public: … … 51 52 ~MCamDisplay(); 52 53 53 void Draw(Option_t *option = ""); 54 54 void SetAutoScale(Bool_t input=kTRUE) { fAutoScale = input; } 55 55 void DrawPhotNum(const MCerPhotEvt *event); 56 void DrawPhotErr(const MCerPhotEvt *event);57 56 58 57 void Reset(); 59 60 void SetAutoScale(Bool_t input = kTRUE) 61 { 62 fAutoScale = input; 63 } 58 void Draw(Option_t *option=""); 64 59 65 60 ClassDef(MCamDisplay, 0) // Displays the magic camera
Note:
See TracChangeset
for help on using the changeset viewer.