Changeset 4133
- Timestamp:
- 05/22/04 19:45:45 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4131 r4133 769 769 { 770 770 771 /* 772 const Float_t mean = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMean() : cal.GetMean(); 773 const Float_t meanerr = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMeanErr() : cal.GetMeanErr(); 774 const Float_t sigma = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainSigma() : cal.GetSigma(); 775 */ 771 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 772 return kFALSE; 773 776 774 if (cal.GetMean() < fChargeLimit*cal.GetPedRms()) 777 775 { … … 795 793 bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid ); 796 794 } 797 798 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun))799 return kFALSE;800 795 801 796 if (!cal.CalcReducedSigma()) … … 861 856 if (bad.IsUncalibrated( MBadPixelsPix::kDeviatingNumPhes )) 862 857 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 863 // bad.SetUnsuitable( MBadPixelsPix::kUnreliableRun );864 858 865 859 if (bad.IsUnsuitable( MBadPixelsPix::kUnsuitableRun )) … … 1003 997 bad.SetUnsuitable ( MBadPixelsPix::kUnsuitableRun ); 1004 998 pix.SetExcluded(); 1005 // bad.SetUnsuitable ( MBadPixelsPix::kUnreliableRun );1006 999 continue; 1007 1000 } … … 1525 1518 UInt_t countinner = 0; 1526 1519 UInt_t countouter = 0; 1520 1527 1521 for (Int_t i=0; i<fBadPixels->GetSize(); i++) 1528 1522 { … … 1545 1539 // Set the path for output file 1546 1540 // 1547 void MCalibrationChargeCalc::SetOutputPath( const char *path)1541 void MCalibrationChargeCalc::SetOutputPath(TString path) 1548 1542 { 1549 1543 fOutputPath = path; … … 1552 1546 } 1553 1547 1548 void MCalibrationChargeCalc::SetOutputFile(TString file) 1549 { 1550 fOutputFile = file; 1551 } 1552 1554 1553 // -------------------------------------------------------------------------- 1555 1554 // 1556 1555 // Get the output file 1557 1556 // 1558 TStringMCalibrationChargeCalc::GetOutputFile()1557 const char* MCalibrationChargeCalc::GetOutputFile() 1559 1558 { 1560 1559 return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r4131 r4133 83 83 84 84 // functions 85 TStringGetOutputFile();85 const char* GetOutputFile(); 86 86 void FinalizePedestals ( const MPedestalPix &ped, MCalibrationChargePix &cal, const Int_t aidx ); 87 87 Bool_t FinalizeCharges ( MCalibrationChargePix &cal, MBadPixelsPix &bad ); … … 114 114 void SetLambdaErrLimit ( const Float_t f=fgLambdaErrLimit ) { fLambdaErrLimit = f; } 115 115 void SetLambdaCheckLimit ( const Float_t f=fgLambdaCheckLimit ) { fLambdaCheckLimit = f; } 116 void SetOutputPath ( const char *path="." );117 void SetOutputFile ( const char *file="ChargeCalibStat.txt" ) { fOutputFile = file; }116 void SetOutputPath ( TString path="." ); 117 void SetOutputFile ( TString file="ChargeCalibStat.txt" ); 118 118 void SetPheErrLimit ( const Float_t f=fgPheErrLimit ) { fPheErrLimit = f; } 119 119 void SetPulserColor ( const MCalibrationCam::PulserColor_t col ) { fPulserColor = col; } -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.cc
r4131 r4133 509 509 // Set the path for output file 510 510 // 511 void MCalibrationRelTimeCalc::SetOutputPath( const char *path)511 void MCalibrationRelTimeCalc::SetOutputPath(TString path) 512 512 { 513 513 fOutputPath = path; … … 520 520 // Get the output file 521 521 // 522 TStringMCalibrationRelTimeCalc::GetOutputFile()522 const char* MCalibrationRelTimeCalc::GetOutputFile() 523 523 { 524 524 return Form("%s/%s", (const char*)fOutputPath, (const char*)fOutputFile); -
trunk/MagicSoft/Mars/mcalib/MCalibrationRelTimeCalc.h
r4131 r4133 50 50 51 51 // functions 52 TStringGetOutputFile();52 const char* GetOutputFile(); 53 53 void FinalizeAverageResolution(); 54 54 void FinalizeRelTimes (); … … 69 69 void Clear(const Option_t *o=""); 70 70 71 void SetOutputPath ( const char *path="." );72 void SetOutputFile ( const char *file="TimeCalibStat.txt" ) { fOutputFile = file; }71 void SetOutputPath ( TString path="." ); 72 void SetOutputFile ( TString file="TimeCalibStat.txt" ) { fOutputFile = file; } 73 73 void SetRelTimeResolutionLimit ( const Float_t f=fgRelTimeResolutionLimit ) { fRelTimeResolutionLimit = f; } 74 74
Note:
See TracChangeset
for help on using the changeset viewer.