Changeset 2147 for trunk/MagicSoft/Mars/mgui
- Timestamp:
- 06/02/03 09:51:18 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r2135 r2147 59 59 #include "MPedestalCam.h" 60 60 61 #include "MCurrents.h" 62 61 63 #include "MImgCleanStd.h" 62 64 … … 249 251 // Fixme: Use absolute value per mm^2. Needs another scaling algorithm. 250 252 // 251 const Float_t pnum = pix.GetNumPhotons()/pix.GetErrorPhot(); 252 (*this)[pix.GetPixId()].SetFillColor(GetColor(pnum, min, max)); 253 // *OLD* const Float_t r = pix.GetNumPhotons()/pix.GetErrorPhot(); 254 // if (entry * ratio <= fCleanLvl1 * noise) 255 256 const Float_t entry = pix.GetNumPhotons(); 257 const Float_t noise = pix.GetErrorPhot(); 258 const Double_t ratio = TMath::Sqrt(fGeomCam->GetPixRatio(pix.GetPixId())); 259 260 const Float_t r = entry*ratio/noise; 261 //const Float_t pnum = pix.GetNumPhotons()/pix.GetErrorPhot(); 262 263 (*this)[pix.GetPixId()].SetFillColor(GetColor(r, min, max)); 253 264 } 254 265 … … 259 270 MHexagon &hex = (*this)[pix.GetPixId()]; 260 271 261 const Float_t r = pix.GetNumPhotons()/pix.GetErrorPhot(); 272 // *OLD* const Float_t r = pix.GetNumPhotons()/pix.GetErrorPhot(); 273 // if (entry * ratio <= fCleanLvl1 * noise) 274 275 const Float_t entry = pix.GetNumPhotons(); 276 const Float_t noise = pix.GetErrorPhot(); 277 const Double_t ratio = TMath::Sqrt(fGeomCam->GetPixRatio(pix.GetPixId())); 278 279 const Float_t r = entry*ratio/noise; 262 280 263 281 if (r>lvl1) … … 618 636 if (fAutoScale) 619 637 { 620 min = event.GetRatioMin( );621 max = event.GetRatioMax( );638 min = event.GetRatioMin(fGeomCam); 639 max = event.GetRatioMax(fGeomCam); 622 640 623 641 UpdateLegend(min, max); … … 637 655 638 656 SetPixColorRatio(pix, min, max); 657 } 658 } 659 660 // ------------------------------------------------------------------------ 661 // 662 // Call this function to fill the currents 663 // 664 void MCamDisplay::FillCurrents(const MCurrents &event) 665 { 666 // 667 // Reset pixel colors to default value 668 // 669 Reset(); 670 671 // 672 // if the autoscale is true, set the values for the range for 673 // each event 674 // 675 Float_t min = 0; 676 Float_t max = 20; 677 if (fAutoScale) 678 { 679 min = event.GetMin(); 680 max = event.GetMax(); 681 682 UpdateLegend(min, max); 683 } 684 685 // 686 // update the colors in the picture 687 // 688 // FIXME: Security check missing! 689 for (UInt_t i=0; i<fNumPixels; i++) 690 { 691 //const Float_t pnum = pix.GetNumPhotons()/pix.GetErrorPhot(); 692 (*this)[i].SetFillColor(GetColor(event[i], min, max)); 639 693 } 640 694 } -
trunk/MagicSoft/Mars/mgui/MCamDisplay.h
r2135 r2147 19 19 class MHexagon; 20 20 class MRflEvtData; 21 class MCurrents; 21 22 class MCerPhotEvt; 22 23 class MCerPhotPix; … … 80 81 void FillPedestals(const MPedestalCam &event); 81 82 void FillRflEvent(const MRflEvtData &event); 83 void FillCurrents(const MCurrents &event); 82 84 void ShowRflEvent(const MRflEvtData *event=NULL, EMarkerStyle m=kFullDotMedium); 83 85
Note:
See TracChangeset
for help on using the changeset viewer.