Changeset 6828
- Timestamp:
- 03/16/05 13:27:32 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6824 r6828 21 21 22 22 -*-*- END OF LINE -*-*- 23 2005/03/16 Thomas Bretz 24 25 * callisto.cc: 26 - set changed extractor in MJCalibrateSignal from MJPedestal 27 28 * callisto.rc: 29 - removed obsolete Modified* option 30 31 * mjobs/MJCalibrateSignal.[h,cc]: 32 - removed obsolete flag for ModifiedExtractWin 33 34 35 * mcalib/MCalibColorSet.cc, mcalib/MCalibrationChargeCalc.cc, 36 mhcalib/MHCalibrationCam.cc: 37 - undocummented change 38 39 40 41 2005/03/15 Markus Gaug 42 43 * msignal/MExtractTimeAndChargeSpline.h 44 - take fRandomIter out of the streamer. 45 - take fRiseTimeLoGain and fFallTimeLoGain into the streamer. 46 - raise version number to 4 47 48 * mjobs/MJCalibration.cc 49 - set default to kFALSE for PIN Diode or Blind Pixel calibration 50 (was kTRUE by error). 51 52 53 23 54 2005/03/15 Thomas Bretz 24 55 -
trunk/MagicSoft/Mars/callisto.cc
r6752 r6828 576 576 job4.SetPathData(kInpathD); 577 577 job4.SetDataType(kDataType); 578 job4.SetExtractor(job2.GetExtractor()); 578 579 579 580 // Where to search for calibration files -
trunk/MagicSoft/Mars/callisto.rc
r6822 r6828 310 310 #MJPedestalY2.ExtractWinLeft: 2.5 311 311 #MJPedestalY2.ExtractWinRight: 5.0 312 #MJCalibrateSignal.ModifiedExtractWin: yes 312 313 313 # ------------------------------------------------------------------------- 314 314 # Define the Pulse Position check parameters: -
trunk/MagicSoft/Mars/mcalib/MCalibColorSet.cc
r6361 r6828 316 316 return kFALSE; 317 317 break; 318 318 319 case 40493: 319 320 case 45116: 320 321 case 45609: 321 322 case 45219: 322 *fLog << err << "Sorry, run " << num << " was taken with a combination of colours used to flat-field "; 323 *fLog << err << dec << "Sorry, run " << num 324 << " was taken with a combination of colours used to flat-field "; 323 325 *fLog << err << "the camera. It cannot be used for the standard calibration " << endl; 324 326 return kFALSE; -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r6393 r6828 588 588 *fLog << warn << "Multiple colours used simultaneously!" ; 589 589 fHCam->Finalize(); 590 fHBlindCam->Finalize(); 590 if (fHBlindCam) 591 fHBlindCam->Finalize(); 591 592 592 593 Finalize(); 593 594 594 595 fHCam->ResetHists(); 595 fHBlindCam->ResetHists(); 596 if (fHBlindCam) 597 fHBlindCam->ResetHists(); 596 598 597 599 *fLog << inf << "Starting next calibration... " << flush; 598 600 599 601 fHCam->SetColor(col); 600 fHBlindCam->SetColor(col); 602 if (fHBlindCam) 603 fHBlindCam->SetColor(col); 601 604 602 605 fCam->SetPulserColor(col); … … 623 626 624 627 fHCam->SetColor(col); 625 fHBlindCam->SetColor(col); 628 if (fHBlindCam) 629 fHBlindCam->SetColor(col); 626 630 627 631 MCalibrationBlindCam *blindcam = fIntensBlind -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r6772 r6828 402 402 MHCalibrationPix &pix = (*this)[i]; 403 403 h = pix.GetHGausHist(); 404 h->SetName (Form("%s%s%s% 4i","H",fHistName.Data(),"HiGainPix",i));405 h->SetTitle(Form("%s%s% 4i%s",fHistTitle.Data()," High Gain Pixel ",i," Runs: "));404 h->SetName (Form("%s%s%s%04d","H",fHistName.Data(),"HiGainPix",i)); 405 h->SetTitle(Form("%s%s%04d%s",fHistTitle.Data()," High Gain Pixel ",i," Runs: ")); 406 406 h->SetXTitle(fHistXTitle.Data()); 407 407 h->SetYTitle(fHistYTitle.Data()); … … 431 431 MHCalibrationPix &pix = GetAverageHiGainSector(j); 432 432 h = pix.GetHGausHist(); 433 h->SetName (Form("%s%s%s% 2i","H",fHistName.Data(),"HiGainSector",j));434 h->SetTitle(Form("%s%s% 2i%s",fHistTitle.Data(),433 h->SetName (Form("%s%s%s%02d","H",fHistName.Data(),"HiGainSector",j)); 434 h->SetTitle(Form("%s%s%02d%s",fHistTitle.Data(), 435 435 " averaged on event-by-event basis High Gain Sector ",j," Runs: ")); 436 436 h->SetXTitle(fHistXTitle.Data()); … … 447 447 MHCalibrationPix &pix = (*this)(i); 448 448 h = pix.GetHGausHist(); 449 h->SetName (Form("%s%s%s% 4i","H",fHistName.Data(),"LoGainPix",i));450 h->SetTitle(Form("%s%s% 4i%s",fHistTitle.Data()," Low Gain Pixel ",i," Runs: "));449 h->SetName (Form("%s%s%s%04d","H",fHistName.Data(),"LoGainPix",i)); 450 h->SetTitle(Form("%s%s%04d%s",fHistTitle.Data()," Low Gain Pixel ",i," Runs: ")); 451 451 h->SetXTitle(fHistXTitle.Data()); 452 452 h->SetYTitle(fHistYTitle.Data()); … … 476 476 MHCalibrationPix &pix = GetAverageLoGainSector(j); 477 477 h = pix.GetHGausHist(); 478 h->SetName (Form("%s%s%s% 2i","H",fHistName.Data(),"LoGainSector",j));479 h->SetTitle(Form("%s%s% 2i%s",fHistTitle.Data(),478 h->SetName (Form("%s%s%s%02d","H",fHistName.Data(),"LoGainSector",j)); 479 h->SetTitle(Form("%s%s%02d%s",fHistTitle.Data(), 480 480 " averaged on event-by-event basis Low Gain Sector ",j," Runs: ")); 481 481 h->SetXTitle(fHistXTitle.Data()); … … 633 633 { 634 634 TH1F *h = (*this)[i].GetHGausHist(); 635 h->SetTitle( Form("%s% i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));635 h->SetTitle( Form("%s%08d ", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1])); 636 636 } 637 637 … … 640 640 { 641 641 TH1F *h = (*this)(i).GetHGausHist(); 642 h->SetTitle( Form("%s% i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));642 h->SetTitle( Form("%s%08d ", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1])); 643 643 } 644 644 … … 649 649 { 650 650 TH1F *h = GetAverageHiGainArea(j).GetHGausHist(); 651 h->SetTitle( Form("%s% i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));651 h->SetTitle( Form("%s%08d ", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1])); 652 652 } 653 653 … … 656 656 { 657 657 TH1F *h = GetAverageLoGainArea(j).GetHGausHist(); 658 h->SetTitle( Form("%s% i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));658 h->SetTitle( Form("%s%08d ", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1])); 659 659 } 660 660 … … 662 662 { 663 663 TH1F *h = GetAverageHiGainSector(j).GetHGausHist(); 664 h->SetTitle( Form("%s% i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));664 h->SetTitle( Form("%s%08d ", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1])); 665 665 } 666 666 … … 669 669 { 670 670 TH1F *h = GetAverageLoGainSector(j).GetHGausHist(); 671 h->SetTitle( Form("%s% i%s", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1]," "));671 h->SetTitle( Form("%s%08d ", h->GetTitle(),fRunNumbers[fRunNumbers.GetSize()-1])); 672 672 } 673 673 -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6821 r6828 122 122 // - fIsRelTimesUpdate to kFALSE 123 123 // - fIsHiLoCalibration to kFALSE 124 // - fIsModifiedExtractWin to kTRUE125 124 // - fPulsePosCheck to kTRUE 126 125 // 127 126 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title) 128 : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), 129 fIsModifiedExtractWin(kTRUE) 127 : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE) 130 128 { 131 129 fName = name ? name : "MJCalibrateSignal"; … … 272 270 Bool_t MJCalibrateSignal::CheckEnvLocal() 273 271 { 274 275 272 SetInterlaced(GetEnv("Interlaced", fIsInterlaced)); 276 273 SetRelTimesUpdate(GetEnv("RelTimesUpdate", fIsRelTimesUpdate)); 277 SetModifiedExtractWin(GetEnv("ModifiedExtractWin", fIsModifiedExtractWin));278 274 279 275 return MJCalib::CheckEnvLocal(); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r6821 r6828 22 22 MExtractor *fExtractor; 23 23 24 // MRunIter *fCruns; // Calibration run iter25 24 Bool_t fIsInterlaced; // Distinguish interlaced from other calibration 26 25 Bool_t fIsRelTimesUpdate; // Choose to update relative times from interlaced 27 Bool_t fIsModifiedExtractWin; // Choose to use the modified extraction window from pulse position28 26 29 27 Bool_t CheckEnvLocal(); … … 48 46 void SetInterlaced ( const Bool_t b=kTRUE ) { fIsInterlaced = b; } 49 47 void SetRelTimesUpdate ( const Bool_t b=kTRUE ) { fIsRelTimesUpdate = b; } 50 void SetModifiedExtractWin( const Bool_t b=kTRUE ) { fIsModifiedExtractWin = b; }51 52 // void SetInputCal ( MRunIter *iter ) { fCruns = iter; }53 48 54 49 void SetExtractor(const MExtractor &ext); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r6820 r6828 197 197 fTitle = title ? title : "Tool to create the calibration constants for one calibration run"; 198 198 199 SetUseBlindPixel( );200 SetUsePINDiode( );199 SetUseBlindPixel(kFALSE); 200 SetUsePINDiode(kFALSE); 201 201 202 202 SetHiLoCalibration(); … … 1527 1527 cpix.SetConversionHiLoErr(sigma); 1528 1528 } 1529 1529 1530 return kTRUE; 1530 1531 } … … 1794 1795 MHCalibrationChargeBlindCam blindcam; 1795 1796 plist.AddToList(&chargecam); 1796 plist.AddToList(&blindcam); 1797 1798 if (IsUseBlindPixel()) 1799 plist.AddToList(&blindcam); 1797 1800 if (IsRelTimes()) 1798 1801 plist.AddToList(&reltimecam); 1799 1802 // 1800 1803 // Data Reading tasks … … 1907 1910 1908 1911 tlist.AddToList(&taskenv); 1909 tlist.AddToList(&pinext); 1910 tlist.AddToList(&blindext); 1912 1913 if (IsUsePINDiode()) 1914 tlist.AddToList(&pinext); 1915 if (IsUseBlindPixel()) 1916 tlist.AddToList(&blindext); 1911 1917 1912 1918 MTaskEnv taskenv2("ExtractTime"); -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h
r6743 r6828 41 41 Float_t fRiseTimeHiGain; // The usual rise time of the pulse in the high-gain 42 42 Float_t fFallTimeHiGain; // The usual fall time of the pulse in the high-gain 43 Float_t fRiseTimeLoGain; // !The usual rise time of the pulse in the low-gain44 Float_t fFallTimeLoGain; // !The usual fall time of the pulse in the low-gain43 Float_t fRiseTimeLoGain; // The usual rise time of the pulse in the low-gain 44 Float_t fFallTimeLoGain; // The usual fall time of the pulse in the low-gain 45 45 46 46 Float_t fLoGainStretch; // The stretch of the low-gain w.r.t. the high-gain pulse 47 47 48 Int_t fRandomIter; // Counter used to randomize weights for noise calculation48 Int_t fRandomIter; //! Counter used to randomize weights for noise calculation 49 49 50 50 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); … … 100 100 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag); 101 101 102 ClassDef(MExtractTimeAndChargeSpline, 3) // Task to Extract Arrival Times and Charges using a FastCubic Spline102 ClassDef(MExtractTimeAndChargeSpline, 4) // Task to Extract Arrival Times and Charges using a Cubic Spline 103 103 }; 104 104
Note:
See TracChangeset
for help on using the changeset viewer.