Changeset 5061 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 09/16/04 10:05:46 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.