Changeset 4553
- Timestamp:
- 08/10/04 09:46:01 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindCam.cc
r4401 r4553 67 67 { 68 68 69 fName = name ? name : "MHCalibrationChargeBlindCam"; 70 fTitle = title ? title : "Class to fille the blind pixel histograms"; 71 69 72 fBlindPixelsArray = new TObjArray; 70 73 fBlindPixelsArray->SetOwner(); … … 107 110 // Deletes the TObjArray's and Clones them individually 108 111 // 109 TObject *MHCalibrationChargeBlindCam::Clone(const char * ) const112 TObject *MHCalibrationChargeBlindCam::Clone(const char *name) const 110 113 { 111 114 … … 275 278 // Calls the Draw of the fAverageHiGainAreas and fAverageLoGainAreas objects with options 276 279 // 277 void MHCalibrationChargeBlindCam::Draw( constOption_t *opt)280 void MHCalibrationChargeBlindCam::Draw(Option_t *opt) 278 281 { 279 282 280 283 const Int_t size = fBlindPixelsArray->GetEntries(); 284 281 285 if (size == 0) 282 286 return; … … 287 291 TVirtualPad *pad = gPad ? gPad : MH::MakeDefCanvas(this); 288 292 pad->SetBorderMode(0); 289 pad->Divide(size/2+1,size/2+1); 293 294 switch (size) 295 { 296 case 1: 297 break; 298 case 2: 299 pad->Divide(2,1); 300 break; 301 case 3: 302 case 4: 303 pad->Divide(2,2); 304 break; 305 default: 306 pad->Divide(size/2+1,size/2+1); 307 break; 308 } 290 309 291 310 for (Int_t i=0; i<size;i++) … … 294 313 (*this)[i].Draw(option); 295 314 } 296 } 315 316 pad->Modified(); 317 pad->Update(); 318 319 } -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindCam.h
r4400 r4553 29 29 MRawRunHeader *fRunHeader; //! Run Header 30 30 31 TObjArray *fBlindPixelsArray; //-> Array of calibration pixels, one per pixel31 TObjArray *fBlindPixelsArray; //-> Array of calibration pixels, one per pixel 32 32 33 33 public: … … 42 42 43 43 // Clone 44 TObject *Clone(const char * ) const;44 TObject *Clone(const char *name="") const; 45 45 46 46 // Draw 47 void Draw( const Option_t *opt);47 void Draw(Option_t *opt=""); 48 48 49 const Int_t GetSize ()const { return fBlindPixelsArray->GetSize(); }49 const Int_t GetSize() const { return fBlindPixelsArray->GetSize(); } 50 50 51 MHCalibrationChargeBlindPix &operator[](UInt_t i);52 const MHCalibrationChargeBlindPix &operator[](UInt_t i) const;51 MHCalibrationChargeBlindPix &operator[] (UInt_t i); 52 const MHCalibrationChargeBlindPix &operator[] (UInt_t i) const; 53 53 54 ClassDef(MHCalibrationChargeBlindCam, 0) // Histogram class for Blind Pixel Calibration54 ClassDef(MHCalibrationChargeBlindCam, 1) // Histogram class for Blind Pixel Calibration 55 55 }; 56 56
Note:
See TracChangeset
for help on using the changeset viewer.