Changeset 5061
- Timestamp:
- 09/16/04 10:05:46 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5060 r5061 27 27 * mhbase/MH.cc, mfilter/MFDeltaT.cc: 28 28 - Form %5.1 when printing statistics 29 30 * mfilter/MFDeltaT.cc: 31 - enhaced filter criterias 32 33 * mbase/MTime.h: 34 - added IsMidnight 29 35 30 36 -
trunk/MagicSoft/Mars/mbase/MTime.h
r4920 r5061 115 115 UInt_t Sec() const { Byte_t h, m, s; GetTime(h,m,s); return s; } 116 116 117 Bool_t IsMidnight() const { return (Long_t)fTime==0 && fNanoSec==0; } 118 117 119 // I/O functions 118 120 istream &ReadBinary(istream &fin); -
trunk/MagicSoft/Mars/mfilter/MFDeltaT.cc
r5060 r5061 78 78 fNameTime = time; 79 79 80 fErrors.Set( 5);80 fErrors.Set(6); 81 81 82 82 AddToBranchList(Form("%s.*", (const char*)fNameTime)); … … 117 117 fResult = kFALSE; 118 118 119 const Double_t dt = *fTime - fLastTime;120 fLastTime = *fTime;121 122 119 Int_t i=0; 123 120 124 121 if (GetNumExecutions()>0) 125 122 { 126 if ( dt<0)123 if (*fTime-fLastTime>fUpperLimit) 127 124 i=1; 128 if ( dt==0)125 if (*fTime<fLastTime) 129 126 i=2; 130 if ( dt>fUpperLimit)127 if (*fTime==fLastTime) 131 128 i=3; 132 if ( TMath::Floor(fTime->GetMjd())==fTime->GetMjd())129 if (fTime->IsMidnight()) 133 130 i=4; 131 if (*fTime==MTime()) 132 i=5; 134 133 } 134 135 fLastTime = *fTime; 135 136 136 137 fResult = i==0; … … 151 152 *fLog << GetDescriptor() << " filter statistics:" << endl; 152 153 *fLog << dec << setfill(' '); 153 PrintSkipped(fErrors[1], "Delta-T < 0"); 154 PrintSkipped(fErrors[2], "Delta-T == 0"); 155 PrintSkipped(fErrors[3], Form("Delta-T > %.2fs", fUpperLimit)); 156 PrintSkipped(fErrors[4], "Delta-T == floor(Delta-T)"); 154 PrintSkipped(fErrors[2], "Delta-T < 0"); 155 PrintSkipped(fErrors[3], "Delta-T == 0"); 156 PrintSkipped(fErrors[1], Form("Delta-T > %.2fs", fUpperLimit)); 157 PrintSkipped(fErrors[4], "MTime is midnight"); 158 PrintSkipped(fErrors[5], "MTime not initialized"); 157 159 *fLog << " " << (int)fErrors[0] << " ("; 158 160 *fLog << Form("5.1f", 100.*fErrors[0]/GetNumExecutions());
Note:
See TracChangeset
for help on using the changeset viewer.