Changeset 4947 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 09/10/04 22:32:02 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r4942 r4947 180 180 // - fTimeLowerLimit to fgTimeLowerLimit 181 181 // - fTimeUpperLimit to fgTimeUpperLimit 182 // - fNbins to fgChargeHiGainLast-fgChargeHiGainFirst 183 // - fFirst to fgChargeHiGainFirst 184 // - fLast to fgChargeHiGainLast 182 185 // 183 186 MHCalibrationChargeCam::MHCalibrationChargeCam(const char *name, const char *title) … … 193 196 SetTimeUpperLimit(); 194 197 198 SetNbins((Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst)/2); 199 SetFirst(fgChargeHiGainFirst); 200 SetLast (fgChargeHiGainLast ); 201 202 SetLoGainNbins((Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst)/2); 203 SetLoGainFirst(fgChargeLoGainFirst); 204 SetLoGainLast (fgChargeLoGainLast ); 195 205 } 196 206 … … 323 333 pix.SetAbsTimeLast(higainsamples-0.5); 324 334 325 pix.SetNbins( (Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst));326 pix.SetFirst(f gChargeHiGainFirst);327 pix.SetLast (f gChargeHiGainLast);335 pix.SetNbins(fNbins); 336 pix.SetFirst(fFirst); 337 pix.SetLast (fLast); 328 338 329 339 TH1F *h = pix.GetHGausHist(); … … 354 364 pix.SetAbsTimeLast(logainsamples-0.5); 355 365 356 pix.SetNbins( (Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst));357 pix.SetFirst(f gChargeLoGainFirst);358 pix.SetLast (f gChargeLoGainLast);366 pix.SetNbins(fLoGainNbins); 367 pix.SetFirst(fLoGainFirst); 368 pix.SetLast (fLoGainLast); 359 369 360 370 TH1F *h = pix.GetHGausHist(); … … 400 410 pix.SetAbsTimeLast(higainsamples-0.5); 401 411 402 pix.SetNbins( (Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst)*3);403 pix.SetFirst(f gChargeHiGainFirst);404 pix.SetLast (f gChargeHiGainLast);412 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 413 pix.SetFirst(fFirst); 414 pix.SetLast (fLast); 405 415 406 416 TH1F *h = pix.GetHGausHist(); … … 444 454 pix.SetAbsTimeLast(logainsamples-0.5); 445 455 446 pix.SetNbins( (Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst)*3);447 pix.SetFirst(f gChargeLoGainFirst);448 pix.SetLast (fgChargeLoGainLast);456 pix.SetNbins(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 457 pix.SetFirst(fLoGainFirst); 458 pix.SetLast (fLoGainLast); 449 459 450 460 TH1F *h = pix.GetHGausHist(); … … 501 511 pix.SetAbsTimeLast(higainsamples-0.5); 502 512 503 pix.SetNbins( (Int_t)(fgChargeHiGainLast-fgChargeHiGainFirst)*3);504 pix.SetFirst(f gChargeHiGainFirst);505 pix.SetLast (f gChargeHiGainLast);513 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 514 pix.SetFirst(fFirst); 515 pix.SetLast (fLast); 506 516 507 517 TH1F *h = pix.GetHGausHist(); … … 534 544 pix.SetAbsTimeLast(logainsamples-0.5); 535 545 536 pix.SetNbins( (Int_t)(fgChargeLoGainLast-fgChargeLoGainFirst)*3);537 pix.SetFirst(f gChargeLoGainFirst);538 pix.SetLast (f gChargeLoGainLast);546 pix.SetNbins(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 547 pix.SetFirst(fLoGainFirst); 548 pix.SetLast (fLoGainLast); 539 549 540 550 TH1F *h = pix.GetHGausHist(); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.h
r4929 r4947 39 39 static const Float_t gkLoGainOuterRefLines[7]; //! 40 40 41 MArrayD fSumhiarea ; //! 42 MArrayD fSumloarea ; //! 43 MArrayD fTimehiarea ; //! 44 MArrayD fTimeloarea ; //! 45 MArrayD fSumhisector; //! 46 MArrayD fSumlosector; //! 47 MArrayD fTimehisector; //! 48 MArrayD fTimelosector; //! 41 Int_t fLoGainNbins; // Number of LoGain bins 42 Axis_t fLoGainFirst; // Lower histogram limit low gain 43 Axis_t fLoGainLast; // Upper histogram limit low gain 49 44 50 MArrayI fSathiarea ; //! 51 MArrayI fSatloarea ; //! 52 MArrayI fSathisector; //! 53 MArrayI fSatlosector; //! 45 MArrayD fSumhiarea ; //! 46 MArrayD fSumloarea ; //! 47 MArrayD fTimehiarea ; //! 48 MArrayD fTimeloarea ; //! 49 MArrayD fSumhisector; //! 50 MArrayD fSumlosector; //! 51 MArrayD fTimehisector; //! 52 MArrayD fTimelosector; //! 53 54 MArrayI fSathiarea ; //! 55 MArrayI fSatloarea ; //! 56 MArrayI fSathisector; //! 57 MArrayI fSatlosector; //! 54 58 55 59 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices) … … 72 76 73 77 void DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]); 74 void DisplayRefLines (const TH2D *hist,const Float_t refline[]) const;78 void DisplayRefLines ( const TH2D *hist, const Float_t refline[]) const; 75 79 76 80 public: … … 81 85 TObject *Clone(const char *name="") const; 82 86 83 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; } 84 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; } 87 void SetLoGainNbins ( const Int_t i ) { fLoGainNbins = i; } 88 void SetLoGainFirst ( const Axis_t f ) { fLoGainFirst = f; } 89 void SetLoGainLast ( const Axis_t f ) { fLoGainLast = f; } 90 91 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; } 92 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; } 85 93 86 94 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; … … 94 102 95 103 #endif 96 97 98 99 100 101 102 103 104
Note:
See TracChangeset
for help on using the changeset viewer.