#include <JobCResult.h>
|
|
|
|
|
Referenced by ErrorLevel(). |
|
|
|
|
|
Definition at line 32 of file JobCResult.h. 00032 {
00033 kPassed, // Record passes selection cuts
00034 kFailed // Record fails selection cuts
00035 } Decision_t;
|
|
|
Definition at line 24 of file JobCResult.h. 00024 {
00025 kAOK =0, // No problem -- everything is fine
00026 kWarning =1, // Something might be wrong. Keep running (by default).
00027 kError =2, // Hey! That's not supposed to happen. Stop run.
00028 kFatal =3 // My world is upside down!. Dump core.
00029 } Error_t;
|
|
|
Definition at line 38 of file JobCResult.h. 00038 {
00039 kBeginFile, // Start of new file
00040 kEndFile, // End of file
00041 kBeginRun, // Start of new run
00042 kEndRun, // End of run
00043 kBeginOfInputStream, // Begin of input streams
00044 kEndOfInputStream, // End of input streams
00045 kNonPhysicsRecord // The record represents non-physics data
00046 } IoFlag_t;
|
|
|
Definition at line 30 of file JobCResult.cxx. References fResult, kAOK, kError, kFatal, and kWarning. 00030 : fResult(0) 00031 { 00032 //====================================================================== 00033 // Assign from an error flag 00034 //====================================================================== 00035 switch (result) { 00036 case JobCResult::kAOK: fResult = kAOKFlg; break; 00037 case JobCResult::kWarning: fResult = kWarningFlg; break; 00038 case JobCResult::kError: fResult = kErrorFlg; break; 00039 case JobCResult::kFatal: fResult = kFatalFlg; break; 00040 }; 00041 }
|
|
|
Definition at line 44 of file JobCResult.cxx. References fResult, kFailed, and kPassed. 00044 : fResult(0) 00045 { 00046 //====================================================================== 00047 // Assign from an pass/fail decision flag 00048 //====================================================================== 00049 switch (result) { 00050 case JobCResult::kPassed: fResult = kPassFlg; break; 00051 case JobCResult::kFailed: fResult = kFailFlg; break; 00052 }; 00053 }
|
|
|
Definition at line 57 of file JobCResult.cxx. References fResult, kBeginFile, kBeginOfInputStream, kBeginRun, kEndFile, kEndOfInputStream, kEndRun, and kNonPhysicsRecord. 00057 : fResult(0) 00058 { 00059 //====================================================================== 00060 // Assign from an I/O status flag 00061 //====================================================================== 00062 switch (result) { 00063 case JobCResult::kBeginFile: fResult= kBeginFileFlg; break; 00064 case JobCResult::kEndFile: fResult= kEndFileFlg; break; 00065 case JobCResult::kBeginRun: fResult= kBeginRunFlg; break; 00066 case JobCResult::kEndRun: fResult= kEndRunFlg; break; 00067 case JobCResult::kBeginOfInputStream: fResult= kBeginOfInputStreamFlg; break; 00068 case JobCResult::kEndOfInputStream: fResult= kEndOfInputStreamFlg; break; 00069 case JobCResult::kNonPhysicsRecord: fResult= kNonPhysicsRecordFlg; break; 00070 }; 00071 }
|
|
|
Definition at line 187 of file JobCResult.cxx. References fResult. Referenced by JobCPath::CheckResult(), JobCPath::HandleResult(), operator<<(), and IoInputModule::ReadHeader(). 00188 {
00189 //======================================================================
00190 // Have we started a new file?
00191 //======================================================================
00192 return (fResult & kBeginFileFlg)!=0;
00193 }
|
|
|
Definition at line 227 of file JobCResult.cxx. References fResult. Referenced by IoInputModule::GoTo(), operator<<(), and IoInputModule::Prev(). 00228 {
00229 //======================================================================
00230 // Beginning of input streams?
00231 //======================================================================
00232 return (fResult & kBeginOfInputStreamFlg)!=0;
00233 }
|
|
|
Definition at line 207 of file JobCResult.cxx. References fResult. Referenced by JobCPath::CheckResult(), JobCPath::HandleResult(), and operator<<(). 00208 {
00209 //======================================================================
00210 // Have we started a new run?
00211 //======================================================================
00212 return (fResult & kBeginRunFlg)!=0;
00213 }
|
|
|
Definition at line 292 of file JobCResult.cxx. References fResult. Referenced by JobCNode::Execute(), SetFailed(), and SetPassed(). 00292 {
00293 fResult &= (~kDecisionMask);
00294 return *this;
00295 }
|
|
|
Definition at line 197 of file JobCResult.cxx. References fResult. Referenced by JobCPath::CheckResult(), JobCPath::HandleResult(), and operator<<(). 00198 {
00199 //======================================================================
00200 // Have we finished with a file?
00201 //======================================================================
00202 return (fResult & kEndFileFlg)!=0;
00203 }
|
|
|
Definition at line 237 of file JobCResult.cxx. References fResult. Referenced by Jint::EndPathRun(), JobCPath::EvalInput(), JobCPath::Execute(), IoInputModule::Get(), IoInputModule::GoTo(), IoInputModule::Next(), operator<<(), IoInputModule::Prev(), JobCPath::Run(), and IoInputModuleValidate::TestGet(). 00238 {
00239 //======================================================================
00240 // Has the input stream run dry?
00241 //======================================================================
00242 return (fResult & kEndOfInputStreamFlg)!=0;
00243 }
|
|
|
Definition at line 217 of file JobCResult.cxx. References fResult. Referenced by JobCPath::CheckResult(), JobCPath::HandleResult(), and operator<<(). 00218 {
00219 //======================================================================
00220 // Have we ended a run?
00221 //======================================================================
00222 return (fResult & kEndRunFlg)!=0;
00223 }
|
|
|
Definition at line 165 of file JobCResult.cxx. References Error_t, and fResult. Referenced by JobCPath::HandleError(), and operator<<(). 00166 {
00167 //======================================================================
00168 // What's the severity of the error condition?
00169 //======================================================================
00170 Error_t e = kAOK;
00171 if (fResult & kWarningFlg) e = JobCResult::kWarning;
00172 if (fResult & kErrorFlg) e = JobCResult::kError;
00173 if (fResult & kFatalFlg) e = JobCResult::kFatal;
00174 return e;
00175 }
|
|
|
Definition at line 183 of file JobCResult.cxx. References fResult. Referenced by ValidateRawChecksums::Ana(), TestDigitsModule::Ana(), TestDemuxModule::Ana(), DemoDataReject::Ana(), DcsWriter::Ana(), DbuDaqMonitorModule::Ana(), DbuDaqFileModule::Ana(), BDSpliceModule::Ana(), JobCPath::EvalInput(), JobCPath::Execute(), and operator<<(). 00183 { return fResult&JobCResult::kFailFlg; }
|
|
|
Definition at line 145 of file JobCResult.cxx. References fResult. 00146 {
00147 //======================================================================
00148 // Are any pass/fail decision bits set?
00149 //======================================================================
00150 return (fResult & kDecisionMask) != 0;
00151 }
|
|
|
Definition at line 135 of file JobCResult.cxx. References fResult. Referenced by JobCPath::Execute(), and PhotonTransport::SimulateEvent(). 00136 {
00137 //======================================================================
00138 // Are any error bits set?
00139 //======================================================================
00140 return (fResult & kErrorMask) != 0;
00141 }
|
|
|
Definition at line 155 of file JobCResult.cxx. References fResult. 00156 {
00157 //======================================================================
00158 // Are any I/O flags set?
00159 //======================================================================
00160 return (fResult & kIoMask) != 0;
00161 }
|
|
|
Definition at line 247 of file JobCResult.cxx. References fResult. Referenced by JobCPath::Execute(). 00248 {
00249 //======================================================================
00250 // Has the input stream delivered something besides physics events?
00251 //======================================================================
00252 return (fResult & kNonPhysicsRecordFlg)!=0;
00253 }
|
|
|
Definition at line 105 of file JobCResult.cxx. References kBeginFile, kBeginOfInputStream, kBeginRun, kEndFile, kEndOfInputStream, kEndRun, kNonPhysicsRecord, SetBeginFile(), SetBeginOfInputStream(), SetBeginRun(), SetEndFile(), SetEndOfInputStream(), SetEndRun(), and SetNonPhysicsRecord(). 00106 {
00107 //======================================================================
00108 // Set any I/O flags. These are all cumulative
00109 //======================================================================
00110 switch (result) {
00111 case kBeginFile: this->SetBeginFile(); break;
00112 case kEndFile: this->SetEndFile(); break;
00113 case kBeginRun: this->SetBeginRun(); break;
00114 case kEndRun: this->SetEndRun(); break;
00115 case kBeginOfInputStream: this->SetBeginOfInputStream(); break;
00116 case kEndOfInputStream: this->SetEndOfInputStream(); break;
00117 case kNonPhysicsRecord: this->SetNonPhysicsRecord(); break;
00118 };
00119 return *this;
00120 }
|
|
|
Definition at line 91 of file JobCResult.cxx. References kFailed, kPassed, SetFailed(), and SetPassed(). 00092 {
00093 //======================================================================
00094 // Set the pass/fail result
00095 //======================================================================
00096 switch (result) {
00097 case JobCResult::kPassed: this->SetPassed(); break;
00098 case JobCResult::kFailed: this->SetFailed(); break;
00099 };
00100 return *this;
00101 }
|
|
|
Definition at line 75 of file JobCResult.cxx. References fResult, kAOK, kError, kFatal, kWarning, SetError(), SetFatal(), and SetWarning(). 00076 {
00077 //======================================================================
00078 // Set any error flags. With the exception of AOK these are cumulative
00079 //======================================================================
00080 switch (result) {
00081 case JobCResult::kAOK: fResult &= (~kErrorMask); break;
00082 case JobCResult::kWarning: this->SetWarning(); break;
00083 case JobCResult::kError: this->SetError(); break;
00084 case JobCResult::kFatal: this->SetFatal(); break;
00085 };
00086 return *this;
00087 }
|
|
|
Definition at line 124 of file JobCResult.cxx. References fResult. 00125 {
00126 //======================================================================
00127 // Combine some results
00128 //======================================================================
00129 fResult |= rhs.fResult;
00130 return *this;
00131 }
|
|
|
Definition at line 182 of file JobCResult.cxx. References fResult. Referenced by FCPCFilterModule::Ana(), BDSpliceModule::Ana(), and operator<<(). 00182 { return fResult&JobCResult::kPassFlg; }
|
|
|
Definition at line 260 of file JobCResult.cxx. References fResult. Referenced by PreFilter::Ana(), and AtNuFitModule::Reco(). 00260 {
00261 fResult &= (~kErrorMask); // Lower all error flags
00262 return *this;
00263 }
|
|
|
Definition at line 302 of file JobCResult.cxx. References fResult. Referenced by JobCDemoModuleA::Get(), IoInputModule::OpenStreamItr(), operator=(), and IoInputModule::ReadHeader(). 00302 {
00303 fResult |= kBeginFileFlg;
00304 return *this;
00305 }
|
|
|
Definition at line 318 of file JobCResult.cxx. References fResult. Referenced by IoInputModule::OpenStreamItr(), and operator=(). 00318 {
00319 fResult |= kBeginOfInputStreamFlg;
00320 return *this;
00321 }
|
|
|
Definition at line 310 of file JobCResult.cxx. References fResult. Referenced by JobCDemoModuleA::Get(), IoInputModule::OpenStreamItr(), operator=(), and IoInputModule::ReadHeader(). 00310 {
00311 fResult |= kBeginRunFlg;
00312 return *this;
00313 }
|
|
|
Definition at line 306 of file JobCResult.cxx. References fResult. Referenced by IoInputModule::CloseStreamItr(), JobCDemoModuleA::Get(), IoInputModule::Get(), IoInputModule::OpenStreamItr(), operator=(), and IoInputModule::ReadHeader(). 00306 {
00307 fResult |= kEndFileFlg;
00308 return *this;
00309 }
|
|
|
Definition at line 322 of file JobCResult.cxx. References fResult. Referenced by IoInputModule::CloseStreamItr(), JobCDemoModuleA::Get(), IoInputModule::Get(), IoInputModule::OpenStreamItr(), and operator=(). 00322 {
00323 fResult |= kEndOfInputStreamFlg;
00324 return *this;
00325 }
|
|
|
Definition at line 314 of file JobCResult.cxx. References fResult. Referenced by IoInputModule::CloseStreamItr(), JobCDemoModuleA::Get(), IoInputModule::Get(), IoInputModule::OpenStreamItr(), operator=(), and IoInputModule::ReadHeader(). 00314 {
00315 fResult |= kEndRunFlg;
00316 return *this;
00317 }
|
|
|
Definition at line 268 of file JobCResult.cxx. References fResult. Referenced by RawLILooker::Ana(), LISummaryAnalyser::Ana(), LIStreamHunter::Ana(), DmxDeMuxModule::Ana(), DmxDeMuxCosmicsModule::Ana(), LISummaryModule::GetSummaryBlocks(), operator=(), LISummaryModule::Reco(), DmxDeMuxFilterModule::Reco(), DmxDeMuxCosmicsModule::Reco(), and AltDeMuxModule::Reco(). 00268 {
00269 fResult |= kErrorFlg;
00270 return *this;
00271 }
|
|
|
|
Definition at line 272 of file JobCResult.cxx. References fResult. Referenced by FCPCFilterModule::Ana(), operator=(), RemoveMuon::Reco(), and MergeEvent::Reco(). 00272 {
00273 fResult |= kFatalFlg;
00274 return *this;
00275 }
|
|
|
Definition at line 326 of file JobCResult.cxx. References fResult. Referenced by operator=(). 00326 {
00327 fResult |= kNonPhysicsRecordFlg;
00328 return *this;
00329 }
|
|
|
Definition at line 287 of file JobCResult.cxx. References ClearPassFail(), and fResult. Referenced by SelectSpillTriggers::Ana(), SelectSpillTimes::Ana(), PreFilter::Ana(), FilterRunType::Ana(), CDPreFilterModule::Ana(), JobCNode::Execute(), operator=(), PulserFromRawFilterModule::Reco(), FarDetStripListModule::Reco(), FarDetSliceListModule::Reco(), FarDetDataQualityModule::Reco(), and DataQualityReader::Reco(). 00287 {
00288 this->ClearPassFail();
00289 fResult |= kPassFlg;
00290 return *this;
00291 }
|
|
|
||||||||||||
|
Definition at line 12 of file JobCResult.cxx. 00013 {
00014 os << "[";
00015 if (r.ErrorLevel()) os << "E=" << r.ErrorLevel() << "/";
00016 if (r.Passed()) os << "P/";
00017 if (r.Failed()) os << "F/";
00018 if (r.BeginFile()) os << "BF/";
00019 if (r.EndFile()) os << "EF/";
00020 if (r.BeginRun()) os << "BR/";
00021 if (r.EndRun()) os << "ER/";
00022 if (r.BeginOfInputStream()) os << "BOF/";
00023 if (r.EndOfInputStream()) os << "EOF/";
00024 os << "]";
00025 return os;
00026 }
|
|
|
Definition at line 113 of file JobCResult.h. Referenced by BeginFile(), BeginOfInputStream(), BeginRun(), ClearPassFail(), EndFile(), EndOfInputStream(), EndRun(), ErrorLevel(), Failed(), HaveDecision(), HaveError(), HaveIoFlag(), JobCResult(), NonPhysicsRecord(), operator=(), operator|=(), Passed(), SetAOK(), SetBeginFile(), SetBeginOfInputStream(), SetBeginRun(), SetEndFile(), SetEndOfInputStream(), SetEndRun(), SetError(), SetFailed(), SetFatal(), SetNonPhysicsRecord(), SetPassed(), and SetWarning(). |
|
|
Definition at line 95 of file JobCResult.h. |
|
|
Definition at line 105 of file JobCResult.h. |
|
|
Definition at line 111 of file JobCResult.h. |
|
|
Definition at line 107 of file JobCResult.h. |
|
|
Definition at line 100 of file JobCResult.h. |
|
|
Definition at line 106 of file JobCResult.h. |
|
|
Definition at line 109 of file JobCResult.h. |
|
|
Definition at line 108 of file JobCResult.h. |
|
|
Definition at line 97 of file JobCResult.h. |
|
|
Definition at line 94 of file JobCResult.h. |
|
|
Definition at line 102 of file JobCResult.h. |
|
|
Definition at line 98 of file JobCResult.h. |
|
|
Definition at line 104 of file JobCResult.h. |
|
|
Definition at line 110 of file JobCResult.h. |
|
|
Definition at line 101 of file JobCResult.h. |
|
|
Definition at line 96 of file JobCResult.h. |
1.3.9.1