Changeset 8339
- Timestamp:
- 03/01/07 17:59:13 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r8132 r8339 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsTreat.cc,v 1.3 7 2006-10-19 13:57:40tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MBadPixelsTreat.cc,v 1.38 2007-03-01 17:42:27 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 214 214 *fLog << (fPedPhot1 && fPedPhot2 ? "on" : "off"); 215 215 *fLog << "." << endl; 216 } 216 217 if (fPedPhot1 && fPedPhot2) 218 *fLog << "Maximum arrival time difference: " << fMaxArrivalTimeDiff << endl; 219 220 } 221 222 *fLog << inf << "Minimum number of neighbor pixels: " << (int)fNumMinNeighbors << endl; 217 223 218 224 if (IsProcessPedestalEvt()) 219 *fLog << inf <<"Processing Pedestals once per event..." << endl;225 *fLog << "Processing Pedestals once per event..." << endl; 220 226 if (IsProcessPedestalRun()) 221 *fLog << inf <<"Processing Pedestals once per run..." << endl;227 *fLog << "Processing Pedestals once per run..." << endl; 222 228 if (IsProcessTimes()) 223 *fLog << inf <<"Processing Arrival Times once per event..." << endl;229 *fLog << "Processing Arrival Times once per event..." << endl; 224 230 225 231 return kTRUE; -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r8243 r8339 736 736 737 737 MHCalibrationPix &pix = (*this)[i]; 738 pix.SetNbins(fNbins); 739 pix.SetFirst(fFirst); 740 pix.SetLast (fLast); 738 pix.SetBinning(fNbins, fFirst, fLast); 741 739 pix.SetProbLimit(fProbLimit); 742 740 … … 760 758 761 759 MHCalibrationPix &pix = GetAverageHiGainArea(j); 762 763 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 764 pix.SetFirst(fFirst); 765 pix.SetLast (fLast); 760 761 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), fFirst, fLast); 766 762 767 763 if (fGeom && fGeom->InheritsFrom("MGeomCamMagic")) … … 783 779 MHCalibrationPix &pix = GetAverageHiGainSector(j); 784 780 785 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nsectors)); 786 pix.SetFirst(fFirst); 787 pix.SetLast (fLast); 781 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nsectors), fFirst, fLast); 788 782 789 783 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j); … … 819 813 820 814 MHCalibrationPix &pix = (*this)(i); 821 pix.SetNbins(fNbins); 822 pix.SetFirst(fFirst); 823 pix.SetLast (fLast); 815 pix.SetBinning(fNbins, fFirst, fLast); 824 816 pix.SetProbLimit(fProbLimit); 825 817 … … 841 833 MHCalibrationPix &pix = GetAverageLoGainArea(j); 842 834 843 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 844 pix.SetFirst(fFirst); 845 pix.SetLast (fLast); 835 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), fFirst, fLast); 846 836 847 837 if (fGeom && fGeom->InheritsFrom("MGeomCamMagic")) … … 863 853 MHCalibrationPix &pix = GetAverageLoGainSector(j); 864 854 865 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nsectors)); 866 pix.SetFirst(fFirst); 867 pix.SetLast (fLast); 855 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nsectors), fFirst, fLast); 868 856 869 857 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j); … … 1574 1562 if (IsEnvDefined(env, prefix, "Nbins", print)) 1575 1563 { 1576 SetNbins(GetEnvValue(env, prefix, "Nbins", fNbins));1564 fNbins = GetEnvValue(env, prefix, "Nbins", fNbins); 1577 1565 rc = kTRUE; 1578 1566 } 1579 1567 if (IsEnvDefined(env, prefix, "First", print)) 1580 1568 { 1581 SetFirst(GetEnvValue(env, prefix, "First", fFirst));1569 fFirst = GetEnvValue(env, prefix, "First", fFirst); 1582 1570 rc = kTRUE; 1583 1571 } … … 1585 1573 if (IsEnvDefined(env, prefix, "Last", print)) 1586 1574 { 1587 SetLast(GetEnvValue(env, prefix, "Last", fLast));1575 fLast = GetEnvValue(env, prefix, "Last", fLast); 1588 1576 rc = kTRUE; 1589 1577 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
r7188 r8339 237 237 void SetUpperFitLimitLoGain( const Double_t d=fgUpperFitLimitLoGain) { fUpperFitLimitLoGain = d; } 238 238 239 void SetNbins ( const Int_t i ) { fNbins = i; } 240 void SetFirst ( const Axis_t f ) { fFirst = f; } 241 void SetLast ( const Axis_t f ) { fLast = f; } 239 void SetBinning(Int_t n, Axis_t lo, Axis_t up) { fNbins=n; fFirst=lo; fLast=up; } 240 242 241 void SetMaxNumEvts ( const Int_t i=fgMaxNumEvts ) { fMaxNumEvts = i; } 243 242 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindCam.cc
r5864 r8339 95 95 SetSPheCut(); 96 96 97 SetNbins(fgNbins); 98 SetFirst(fgFirst); 99 SetLast (fgLast ); 97 SetBinning(fgNbins, fgFirst, fgLast); 100 98 101 99 SetHistName (gsHistName .Data()); … … 180 178 MHCalibrationChargeBlindPix &pix = (MHCalibrationChargeBlindPix&)(*this)[i]; 181 179 182 pix.SetNbins ( fNbins );183 pix.SetFirst ( fFirst ); 184 pix.Set Last ( integ ? ((fLast+0.5)*samples)-0.5 : fLast);180 const Axis_t last = integ ? ((fLast+0.5)*samples)-0.5 : fLast; 181 182 pix.SetBinning(fNbins, fFirst, last); 185 183 pix.SetSinglePheCut ( integ ? fSPheCut * samples : fSPheCut ); 186 184 pix.SetFitFunc ( integ ? MHCalibrationChargeBlindPix::kEPoisson5 : fFitFunc ); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r8306 r8339 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.5 1 2007-02-04 17:37:13tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationChargeCam.cc,v 1.52 2007-03-01 17:59:12 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 239 239 SetTimeUpperLimit(); 240 240 241 SetNbins(fgChargeHiGainNbins); 242 SetFirst(fgChargeHiGainFirst); 243 SetLast (fgChargeHiGainLast ); 241 SetBinning(fgChargeHiGainNbins, fgChargeHiGainFirst, fgChargeHiGainLast ); 242 SetBinningLoGain(fgChargeLoGainNbins, fgChargeLoGainFirst, fgChargeLoGainLast ); 244 243 245 244 SetProbLimit(fgProbLimit); 246 247 SetLoGainNbins(fgChargeLoGainNbins);248 SetLoGainFirst(fgChargeLoGainFirst);249 SetLoGainLast (fgChargeLoGainLast );250 245 251 246 SetHistName (gsHistName .Data()); … … 451 446 MHCalibrationChargePix &pix = (MHCalibrationChargePix&)(*this)[i]; 452 447 453 pix.SetNbins(fNbins); 454 pix.SetFirst(fFirst); 455 pix.SetLast (fLast); 456 448 pix.SetBinning(fNbins, fFirst, fLast); 457 449 pix.SetProbLimit(fProbLimit); 458 450 459 pix.SetAbsTimeNbins(higainsamples); 460 pix.SetAbsTimeFirst(-0.5); 461 pix.SetAbsTimeLast(higainsamples-0.5); 451 pix.SetBinningAbsTime(higainsamples, -0.5, higainsamples-0.5); 462 452 463 453 InitHists(pix,(*badcam)[i],i); … … 482 472 MHCalibrationChargePix &pix = (MHCalibrationChargePix&)GetAverageHiGainArea(j); 483 473 484 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 485 pix.SetFirst(fFirst); 486 pix.SetLast (fLast); 487 488 pix.SetAbsTimeNbins(higainsamples); 489 pix.SetAbsTimeFirst(-0.5); 490 pix.SetAbsTimeLast(higainsamples-0.5); 474 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), 475 fFirst, fLast); 476 477 pix.SetBinningAbsTime(higainsamples, -0.5, higainsamples-0.5); 491 478 492 479 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j); … … 511 498 MHCalibrationChargePix &pix = (MHCalibrationChargePix&)GetAverageHiGainSector(j); 512 499 513 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 514 pix.SetFirst(fFirst); 515 pix.SetLast (fLast); 516 517 pix.SetAbsTimeNbins(higainsamples); 518 pix.SetAbsTimeFirst(-0.5); 519 pix.SetAbsTimeLast(higainsamples-0.5); 500 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), 501 fFirst, fLast); 502 503 pix.SetBinningAbsTime(higainsamples, -0.5, higainsamples-0.5); 520 504 521 505 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j); … … 574 558 MHCalibrationChargePix &pix = (MHCalibrationChargePix&)(*this)(i); 575 559 576 pix.SetNbins(fLoGainNbins); 577 pix.SetFirst(fLoGainFirst); 578 pix.SetLast (fLoGainLast); 560 pix.SetBinning(fLoGainNbins, fLoGainFirst, fLoGainLast); 579 561 580 562 pix.SetProbLimit(fProbLimit); 581 563 582 pix.SetAbsTimeNbins(logainsamples); 583 pix.SetAbsTimeFirst(-0.5); 584 pix.SetAbsTimeLast(logainsamples-0.5); 564 pix.SetBinningAbsTime(logainsamples, -0.5, logainsamples-0.5); 585 565 pix.SetPickupLimit(fgLoGainPickupLimit); 586 566 pix.SetBlackoutLimit(fgLoGainBlackoutLimit); … … 606 586 MHCalibrationChargePix &pix = (MHCalibrationChargePix&)GetAverageLoGainArea(j); 607 587 608 pix.SetNbins(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 609 pix.SetFirst(fLoGainFirst); 610 pix.SetLast (fLoGainLast); 588 pix.SetBinning(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), 589 fLoGainFirst, fLoGainLast); 611 590 612 pix.SetAbsTimeNbins(logainsamples); 613 pix.SetAbsTimeFirst(-0.5); 614 pix.SetAbsTimeLast(logainsamples-0.5); 591 pix.SetBinningAbsTime(logainsamples, -0.5, logainsamples-0.5); 615 592 616 593 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j); … … 636 613 MHCalibrationChargePix &pix = (MHCalibrationChargePix&)GetAverageLoGainSector(j); 637 614 638 pix.SetNbins(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 639 pix.SetFirst(fLoGainFirst); 640 pix.SetLast (fLoGainLast); 641 642 pix.SetAbsTimeNbins(logainsamples); 643 pix.SetAbsTimeFirst(-0.5); 644 pix.SetAbsTimeLast(logainsamples-0.5); 615 pix.SetBinning(fLoGainNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), 616 fLoGainFirst, fLoGainLast); 617 618 pix.SetBinningAbsTime(logainsamples, -0.5, logainsamples-0.5); 645 619 646 620 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j); … … 905 879 const Int_t lolast = fSignal->GetLastUsedSliceLoGain(); 906 880 907 908 881 for (Int_t i=0; i<fHiGainArray->GetSize(); i++) 909 882 { … … 1154 1127 { 1155 1128 *fLog << warn << hist.GetName() << ": Mean Arr.Time: " 1156 << Form("%4.1f < %4.1f , (%3.1f + %3.1f)", mean, lowerlimit, fTimeLowerLimit, first) << endl;1129 << Form("%4.1f < %4.1f (first used fadc sl+1)", mean, lowerlimit) << endl; 1157 1130 bad.SetUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin); 1158 1131 } … … 1161 1134 { 1162 1135 *fLog << warn << hist.GetName() << ": Mean Arr.Time: " 1163 << Form("%4.1f > %4.1f , (%3.1f - %3.1f)", mean, upperlimit, fTimeUpperLimit, last) << endl;1136 << Form("%4.1f > %4.1f (last used fadc sl-1)", mean, upperlimit) << endl; 1164 1137 bad.SetUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins); 1165 1138 } … … 1432 1405 if (IsEnvDefined(env, prefix, "HiGainNbins", print)) 1433 1406 { 1434 SetNbins(GetEnvValue(env, prefix, "HiGainNbins", fNbins));1407 fNbins = GetEnvValue(env, prefix, "HiGainNbins", fNbins); 1435 1408 rc = kTRUE; 1436 1409 } … … 1438 1411 if (IsEnvDefined(env, prefix, "HiGainFirst", print)) 1439 1412 { 1440 SetFirst(GetEnvValue(env, prefix, "HiGainFirst", fFirst));1413 fFirst = GetEnvValue(env, prefix, "HiGainFirst", fFirst); 1441 1414 rc = kTRUE; 1442 1415 } … … 1444 1417 if (IsEnvDefined(env, prefix, "HiGainLast", print)) 1445 1418 { 1446 SetLast(GetEnvValue(env, prefix, "HiGainLast", fLast));1419 fLast = GetEnvValue(env, prefix, "HiGainLast", fLast); 1447 1420 rc = kTRUE; 1448 1421 } … … 1450 1423 if (IsEnvDefined(env, prefix, "LoGainNbins", print)) 1451 1424 { 1452 SetLoGainNbins(GetEnvValue(env, prefix, "LoGainNbins", fLoGainNbins));1425 fLoGainNbins = GetEnvValue(env, prefix, "LoGainNbins", fLoGainNbins); 1453 1426 rc = kTRUE; 1454 1427 } … … 1456 1429 if (IsEnvDefined(env, prefix, "LoGainFirst", print)) 1457 1430 { 1458 SetLoGainFirst(GetEnvValue(env, prefix, "LoGainFirst", fLoGainFirst));1431 fLoGainFirst = GetEnvValue(env, prefix, "LoGainFirst", fLoGainFirst); 1459 1432 rc = kTRUE; 1460 1433 } … … 1462 1435 if (IsEnvDefined(env, prefix, "LoGainLast", print)) 1463 1436 { 1464 SetLoGainLast(GetEnvValue(env, prefix, "LoGainLast", fLoGainLast));1437 fLoGainLast = GetEnvValue(env, prefix, "LoGainLast", fLoGainLast); 1465 1438 rc = kTRUE; 1466 1439 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.h
r8304 r8339 122 122 void SetAbsHistXTitle ( const char *name ) { fAbsHistXTitle = name; } 123 123 void SetAbsHistYTitle ( const char *name ) { fAbsHistYTitle = name; } 124 125 void SetLoGainNbins ( const Int_t i ) { fLoGainNbins = i; } 126 void SetLoGainFirst ( const Axis_t f ) { fLoGainFirst = f; } 127 void SetLoGainLast ( const Axis_t f ) { fLoGainLast = f; } 124 125 void SetBinningLoGain(Int_t n, Axis_t lo, Axis_t up) { fLoGainNbins=n; fLoGainFirst=lo; fLoGainLast=up; } 128 126 129 127 void SetNumLoGainBlackoutLimit( const Float_t f=fgNumLoGainBlackoutLimit ) { fNumLoGainBlackoutLimit = f; } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePINDiode.h
r7043 r8339 98 98 99 99 // Setters 100 void SetAbsTimeNbins ( const Int_t bins =fgAbsTimeNbins ) { fAbsTimeNbins = bins; } 101 void SetAbsTimeFirst ( const Axis_t first=fgAbsTimeFirst ) { fAbsTimeFirst = first; } 102 void SetAbsTimeLast ( const Axis_t last =fgAbsTimeLast ) { fAbsTimeLast = last; } 103 void SetRmsChargeNbins ( const Int_t bins =fgRmsChargeNbins ) { fRmsChargeNbins = bins; } 104 void SetRmsChargeFirst ( const Axis_t first=fgRmsChargeFirst ) { fRmsChargeFirst = first; } 105 void SetRmsChargeLast ( const Axis_t last =fgRmsChargeLast ) { fRmsChargeLast = last; } 100 void SetBinningRmsCharge(Int_t n, Axis_t lo, Axis_t up) { fRmsChargeNbins=n; fRmsChargeFirst=lo; fRmsChargeLast=up; } 101 106 102 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; } 107 103 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePix.h
r7188 r8339 25 25 void InitBins(); 26 26 27 // Setters 28 virtual void SetAbsTimeNbins(const Int_t bins ) { fAbsTimeNbins = bins; } 29 virtual void SetAbsTimeFirst(const Axis_t first) { fAbsTimeFirst = first; } 30 virtual void SetAbsTimeLast( const Axis_t last ) { fAbsTimeLast = last; } 27 // Setters 28 void SetBinningAbsTime(Int_t n, Axis_t lo, Axis_t up) { fAbsTimeNbins=n; fAbsTimeFirst=lo; fAbsTimeLast=up; } 31 29 32 30 // Getters 33 TH1F *GetHAbsTime(){ return &fHAbsTime; }34 const TH1F *GetHAbsTime() 31 TH1F *GetHAbsTime() { return &fHAbsTime; } 32 const TH1F *GetHAbsTime() const { return &fHAbsTime; } 35 33 36 const Float_t GetAbsTimeMean( )const;37 const Float_t GetAbsTimeRms() 38 const Float_t GetIntegral() 34 const Float_t GetAbsTimeMean() const; 35 const Float_t GetAbsTimeRms() const; 36 const Float_t GetIntegral() const; 39 37 40 38 // Fill histos -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r8192 r8339 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.2 5 2006-11-01 15:48:31tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.26 2007-03-01 17:59:12 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 187 187 fTitle = title ? title : "Class to fill the extracted pulse times for cosmics "; 188 188 189 SetNbins(fgHiGainNbins); 190 SetFirst(fgHiGainFirst); 191 SetLast (fgHiGainLast ); 189 SetBinning(fgHiGainNbins, fgHiGainFirst, fgHiGainLast); 192 190 193 191 SetProbLimit(fgProbLimit); … … 318 316 319 317 MHCalibrationPix &pix = (*this)[i]; 320 pix.SetNbins(fNbins*2); 321 pix.SetFirst(fFirst); 322 pix.SetLast (fLast); 318 pix.SetBinning(fNbins, fFirst, fLast); 323 319 324 320 MBadPixelsPix &bad = fIntensBad ? (*fIntensBad)[i] : (*fBadPixels)[i]; … … 341 337 342 338 MHCalibrationPix &pix = GetAverageHiGainArea(j); 343 344 pix.SetNbins(fNbins*2); 345 pix.SetFirst(fFirst); 346 pix.SetLast (fLast); 339 pix.SetBinning(fNbins, fFirst, fLast); 347 340 348 341 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j); … … 357 350 Form("%s High Gain Sector %02d",fHistTitle.Data(),j)),j); 358 351 MHCalibrationPix &pix = GetAverageHiGainSector(j); 359 360 pix.SetNbins(fNbins); 361 pix.SetFirst(fFirst); 362 pix.SetLast (fLast); 352 pix.SetBinning(fNbins, fFirst, fLast); 363 353 364 354 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationRelTimeCam.cc
r8192 r8339 163 163 SetReferencePixel(); 164 164 165 SetNbins(fgNbins); 166 SetFirst(fgFirst); 167 SetLast (fgLast ); 165 SetBinning(fgNbins, fgFirst, fgLast); 168 166 169 167 SetProbLimit(fgProbLimit); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestCam.cc
r6857 r8339 137 137 fTitle = title ? title : "Histogram class for testing the calibration"; 138 138 139 SetNbins(fgNbins); 140 SetFirst(fgFirst); 141 SetLast (fgLast ); 139 SetBinning(fgNbins, fgFirst, fgLast); 142 140 143 141 SetProbLimit(fgProbLimit); -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationTestTimeCam.cc
r6858 r8339 138 138 fTitle = title ? title : "Histogram class for testing the calibration of arrival times"; 139 139 140 SetNbins(fgNbins); 141 SetFirst(fgFirst); 142 SetLast (fgLast ); 140 SetBinning(fgNbins, fgFirst, fgLast); 143 141 144 142 SetProbLimit(fgProbLimit); -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.h
r8192 r8339 158 158 void SetFourierSpectrumOK( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kFourierSpectrumOK) : CLRBIT(fFlags,kFourierSpectrumOK); } 159 159 void SetGausFitOK ( const Bool_t b=kTRUE ) { b ? SETBIT(fFlags,kGausFitOK) : CLRBIT(fFlags,kGausFitOK);} 160 void SetLast ( const Double_t d ) { fLast = d; }161 void SetFirst ( const Double_t d ) { fFirst = d; }162 160 void SetMean ( const Double_t d ) { fMean = d; } 163 161 void SetMeanErr ( const Double_t d ) { fMeanErr = d; } 164 void SetNbins ( const Int_t i ) { fNbins = i; }165 162 void SetNDFLimit ( const Int_t lim=fgNDFLimit ) { fNDFLimit = lim; } 166 163 void SetProb ( const Double_t d ) { fProb = d; } … … 168 165 void SetSigma ( const Double_t d ) { fSigma = d; } 169 166 void SetSigmaErr ( const Double_t d ) { fSigmaErr = d; } 167 168 void SetBinning(Int_t i, Axis_t lo, Axis_t up) { fNbins=i; fFirst=lo; fLast=up; } 170 169 171 170 // Simulates -
trunk/MagicSoft/Mars/mhcalib/MHPedestalCam.cc
r6792 r8339 157 157 SetLoGain(kFALSE); 158 158 159 SetNbins(fgNbins); 160 SetFirst(fgFirst); 161 SetLast (fgLast ); 159 SetBinning(fgNbins, fgFirst, fgLast); 162 160 163 161 SetHistName (gsHistName .Data()); … … 374 372 375 373 MHPedestalPix &pix = (MHPedestalPix&)(*this)[i]; 376 377 pix.SetNbins(fNbins); 378 pix.SetFirst(fFirst); 379 pix.SetLast (fLast); 380 374 pix.SetBinning(fNbins, fFirst, fLast); 381 375 pix.SetProbLimit(fProbLimit); 382 376 … … 395 389 fAverageHiGainAreas->AddAt(new MHPedestalPix(Form("%sHiGainArea%d",fHistName.Data(),j), 396 390 Form("%s High Gain Area Idx %d",fHistTitle.Data(),j)),j); 397 391 398 392 MHPedestalPix &pix = (MHPedestalPix&)GetAverageHiGainArea(j); 399 400 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 401 pix.SetFirst(fFirst); 402 pix.SetLast (fLast); 393 394 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), 395 fFirst, fLast); 403 396 404 397 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadArea(j) : fCam->GetAverageBadArea(j),j); … … 416 409 MHPedestalPix &pix = (MHPedestalPix&)GetAverageHiGainSector(j); 417 410 418 pix.SetNbins(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas)); 419 pix.SetFirst(fFirst); 420 pix.SetLast (fLast); 411 pix.SetBinning(fNbins*(Int_t)TMath::Sqrt((Float_t)npixels/nareas), 412 fFirst, fLast); 421 413 422 414 InitHists(pix,fIntensCam ? fIntensCam->GetAverageBadSector(j) : fCam->GetAverageBadSector(j),j); -
trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
r8276 r8339 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.5 7 2007-01-29 12:51:17tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MEventDisplay.cc,v 1.58 2007-03-01 17:39:59 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 336 336 tlist->AddToList(clean); 337 337 tlist->AddToList(fill02); 338 tlist->AddToList(fill03); 338 if (type==2) 339 tlist->AddToList(fill03); 339 340 tlist->AddToList(fill04); 340 341 tlist->AddToList(fill06a);
Note:
See TracChangeset
for help on using the changeset viewer.