Changeset 7023 for trunk/MagicSoft
- Timestamp:
- 05/12/05 19:25:58 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7022 r7023 57 57 * star.rc: 58 58 - added setup strings for software trigger 59 60 * mbase/MContinue.cc: 61 - allow setup of already set filters in ReadEnv. They must not 62 necessarily be already in the tasklist 63 64 * mcalib/MCalibrationChargeCalc.cc: 65 - shortened a lot of Form() calls to reduce the risk of 66 memory corruption 67 68 * mjobs/MJCalibration.cc: 69 - some cosmetics to text in pad 70 71 * mraw/MRawRunHeader.[h,cc]: 72 - a fix to MRawRunHeader because the definition of the 73 raw-data format has changed. fProjectName and fSourceName 74 has no trailig \0 anymore by default 75 - incremented ClassVersion by 1 59 76 60 77 -
trunk/MagicSoft/Mars/mbase/MContinue.cc
r6950 r7023 260 260 Int_t MContinue::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 261 261 { 262 MFilter *f = 0;262 MFilter *f = MTask::GetFilter(); 263 263 if (IsEnvDefined(env, prefix, "Condition", print)) 264 264 { … … 276 276 if (!f) 277 277 f = new MF; 278 278 279 f->SetName(fName); 279 280 … … 281 282 if (rc!=kTRUE) 282 283 { 283 delete f; 284 if (f!=MTask::GetFilter()) 285 delete f; 284 286 return rc; 285 287 } 286 288 287 if (TestBit(kIsOwner)) 288 delete GetFilter(); 289 290 SetBit(kIsOwner); 289 if (f != MTask::GetFilter()) 290 { 291 if (TestBit(kIsOwner)) 292 delete GetFilter(); 293 SetBit(kIsOwner); 294 } 291 295 MTask::SetFilter(f); 292 296 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r7017 r7023 984 984 if (cal.GetSigma() < cal.GetPedRms()) 985 985 { 986 *fLog << warn 987 << Form("Sigma of Fitted Charge: %6.2f <",cal.GetSigma()) 988 << Form(" Ped. RMS=%5.2f in %s%3i",cal.GetPedRms(),what,cal.GetPixId()) << endl; 986 *fLog << warn << "Sigma of Fitted Charge: " 987 << Form("%6.2f <",cal.GetSigma()) << " Ped. RMS=" 988 << Form("%5.2f", cal.GetPedRms()) << " in " << what 989 << Form("%3i",cal.GetPixId()) << endl; 989 990 bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid ); 990 991 return kFALSE; … … 993 994 if (!cal.CalcReducedSigma()) 994 995 { 995 *fLog << warn 996 << Form("Could not calculate the reduced sigma in %s: ",what) 997 << Form(" %4i",cal.GetPixId()) 996 *fLog << warn << "Could not calculate the reduced sigma in " << what 997 << ": " << Form("%4i",cal.GetPixId()) 998 998 << endl; 999 999 bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid ); … … 1003 1003 if (!cal.CalcFFactor()) 1004 1004 { 1005 *fLog << warn 1006 << Form("Could not calculate the F-Factor in %s: ",what) 1007 << Form(" %4i",cal.GetPixId()) 1005 *fLog << warn << "Could not calculate the F-Factor in " << what 1006 << ": " << Form("%4i",cal.GetPixId()) 1008 1007 << endl; 1009 1008 bad.SetUncalibrated(MBadPixelsPix::kDeviatingNumPhes); … … 1021 1020 if (!cal.CalcConvFFactor()) 1022 1021 { 1023 *fLog << warn 1024 << Form("Could not calculate the Conv. FADC counts to Phes in %s: ",what) 1025 << Form(" %4i",cal.GetPixId()) 1022 *fLog << warn << "Could not calculate the Conv. FADC counts to Phes in " 1023 << what << ": " << Form("%4i",cal.GetPixId()) 1026 1024 << endl; 1027 1025 bad.SetUncalibrated(MBadPixelsPix::kDeviatingNumPhes); -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r7013 r7023 863 863 t1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max*numcol + 1.))); 864 864 t1->SetTextAlign(12); 865 TText *t2 = pave->AddText(Form("%s%3i%s","Signal Rel. error too large: ",865 TText *t2 = pave->AddText(Form("%s%3i%s","Signal Rel. error too large: ", 866 866 CountBadPixels(&disp24,2)," pixels")); 867 867 t2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max*numcol + 1.))); 868 868 t2->SetTextAlign(12); 869 TText *t4 = pave->AddText(Form("Low Gain Saturation: %3i pixels",869 TText *t4 = pave->AddText(Form("Low Gain Saturation: %3i pixels", 870 870 CountBadPixels(&disp24,3))); 871 871 t4->SetTextColor(gStyle->GetColorPalette(Int_t(3./max*numcol + 1.))); 872 872 t4->SetTextAlign(12); 873 TText *t5 = pave->AddText(Form("Mean Arr. Time In First Extraction Bin: %3i pixels",873 TText *t5 = pave->AddText(Form("Mean Arr. Time In First Extraction Bin: %3i pixels", 874 874 CountBadPixels(&disp24,4))); 875 875 t5->SetTextColor(gStyle->GetColorPalette(Int_t(4./max*numcol + 1.))); 876 876 t5->SetTextAlign(12); 877 TText *t6 = pave->AddText(Form("Mean Arr. Time In Last 2 Extraction Bins: %3i pixels",877 TText *t6 = pave->AddText(Form("Mean Arr. Time In Last 2 Extraction Bins: %3i pixels", 878 878 CountBadPixels(&disp24,5))); 879 879 t6->SetTextColor(gStyle->GetColorPalette(Int_t(5./max*numcol + 1.))); 880 880 t6->SetTextAlign(12); 881 TText *t9 = pave->AddText(Form("Deviating Number of Photons: %3i pixels",881 TText *t9 = pave->AddText(Form("Deviating Number of Photons: %3i pixels", 882 882 CountBadPixels(&disp24,6))); 883 883 t9->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol + 1.))); 884 884 t9->SetTextAlign(12); 885 TText *t10= pave->AddText(Form("High-Gain Histogram Overflow: %3i pixels",885 TText *t10= pave->AddText(Form("High-Gain Histogram Overflow: %3i pixels", 886 886 CountBadPixels(&disp24,7 ))); 887 887 t10->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol + 1.))); 888 888 t10->SetTextAlign(12); 889 TText *t11= pave->AddText(Form("Low-Gain Histogram Overflow: %3i pixels",889 TText *t11= pave->AddText(Form("Low-Gain Histogram Overflow: %3i pixels", 890 890 CountBadPixels(&disp24,8 ))); 891 891 t11->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol + 1.))); 892 892 t11->SetTextAlign(12); 893 TText *t12= pave->AddText(Form("Presumably dead from Ped. Rms: %3i pixels",893 TText *t12= pave->AddText(Form("Presumably dead from Ped. Rms: %3i pixels", 894 894 CountBadPixels(&disp24,9 ))); 895 895 t12->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol + 1.))); 896 896 t12->SetTextAlign(12); 897 TText *t13= pave->AddText(Form("Fluctuating Pulse Arrival Times: %3i pixels",897 TText *t13= pave->AddText(Form("Fluctuating Pulse Arrival Times: %3i pixels", 898 898 CountBadPixels(&disp24,10))); 899 899 t13->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol + 1.))); 900 900 t13->SetTextAlign(12); 901 TText *t14= pave->AddText(Form("Previously Excluded: %3i pixels",901 TText *t14= pave->AddText(Form("Previously Excluded: %3i pixels", 902 902 CountBadPixels(&disp24,11))); 903 903 t14->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol + 1.))); -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r5782 r7023 56 56 // =========================== 57 57 // 58 // Class Version 3: 59 // ---------------- 60 // - enhanced SourceName and ProjectName by one character, because 61 // without telling us the guranteed trailing \0-character has 62 // skipped 63 // 58 64 // Class Version 2: 59 65 // ---------------- … … 101 107 fRunType=kRTNone; // use 0xffff for invalidation, 0 means: Data run 102 108 fRunNumber=0; 103 fProjectName[0]=0;104 fSourceName[0]=0;109 memset(fProjectName, 0, 23); 110 memset(fSourceName, 0, 13); 105 111 fSourceEpochChar[0]=0; 106 112 fSourceEpochDate=0; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r4738 r7023 43 43 UShort_t fRunType; 44 44 UInt_t fRunNumber; 45 Char_t fProjectName[2 2];46 Char_t fSourceName[1 2];45 Char_t fProjectName[23]; 46 Char_t fSourceName[13]; 47 47 Char_t fSourceEpochChar[2]; 48 48 UShort_t fSourceEpochDate; … … 116 116 Bool_t ReadEvt(istream& fin); 117 117 118 ClassDef(MRawRunHeader, 2) // storage container for general info118 ClassDef(MRawRunHeader, 3) // storage container for general info 119 119 }; 120 120 #endif
Note:
See TracChangeset
for help on using the changeset viewer.