#include <VldContext.h>
Public Member Functions | |
| VldContext () | |
| VldContext (const DetectorType::Detector_t &detector, const SimFlag::SimFlag_t mcflag, const VldTimeStamp &time) | |
| virtual | ~VldContext () |
| const char * | AsString (Option_t *option="") const |
| DetectorType::Detector_t | GetDetector () const |
| SimFlag::SimFlag_t | GetSimFlag () const |
| VldTimeStamp | GetTimeStamp () const |
| Bool_t | IsNull () const |
| Bool_t | IsValid () const |
| Return opposite of IsNull(). | |
| void | Print (Option_t *option="") const |
Protected Attributes | |
| DetectorType::Detector_t | fDetector |
| SimFlag::SimFlag_t | fSimFlag |
| VldTimeStamp | fTimeStamp |
Friends | |
| Bool_t | operator< (const VldContext &lhs, const VldContext &rhs) |
| Bool_t | operator== (const VldContext &lhs, const VldContext &rhs) |
| Bool_t | operator!= (const VldContext &lhs, const VldContext &rhs) |
| Bool_t | operator<= (const VldContext &lhs, const VldContext &rhs) |
| Bool_t | operator> (const VldContext &lhs, const VldContext &rhs) |
| Bool_t | operator>= (const VldContext &lhs, const VldContext &rhs) |
Created on: 2000.05.03
Definition at line 36 of file VldContext.h.
|
|
Definition at line 137 of file VldContext.h. 00137 : fDetector(DetectorType::kUnknown), 00138 fSimFlag(SimFlag::kUnknown), fTimeStamp() { 00139 // Default constructor (unknown detector, simflag, timestamp=now) 00140 }
|
|
||||||||||||||||
|
Definition at line 33 of file VldContext.cxx. 00036 : fDetector(detector), fSimFlag(mcFlag), fTimeStamp(tstamp) 00037 { 00038 // normal constructor 00039 }
|
|
|
Definition at line 142 of file VldContext.h. 00142 { ; }
|
|
|
|
|
|
|
Return true if this was initialized by default ctor we can only test detector type and simflag Definition at line 78 of file VldContext.cxx. References fDetector, and fSimFlag. Referenced by IsValid(). 00079 {
00080 // Return true if this was initialized by default ctor
00081 // we can only test detector type and simflag
00082 return fDetector==DetectorType::kUnknown && fSimFlag == SimFlag::kUnknown;
00083
00084 }
|
|
|
Return opposite of IsNull().
Definition at line 59 of file VldContext.h. References IsNull(). Referenced by DatabaseToucher::Ana(), PerRecordTags::IsValid(), CalScheme::Reset(), LISummarySorter::SetDetectorType(), LISummarySorter::SetPlexHandle(), and LISummarySorter::SetRawDaqVldCtx(). 00059 { return !IsNull(); }
|
|
|
Definition at line 69 of file VldContext.cxx. References AsString(), and option. Referenced by LIPlexMaps::CompareStripToStrip(), GeoGeometry::DumpVolume(), PlexLoanPool::GetPlexus(), UgliLoanPool::GetUgliGeometry(), MakeLin::MakeLin(), RecMinosHdr::Print(), LIPlexMaps::ReadDbCalStripToStrip(), LIPlexMaps::ReadDbGains(), LIPlexMaps::ReadDbPulserDrift(), DemoCandNtpModule::Reco(), BfldValidate::SetDetectorType(), and ExodusValidate::TestPlexHandle(). 00070 {
00071 // Print this object
00072
00073 printf("%s\n",AsString(option));
00074
00075 }
|
|
||||||||||||
|
Definition at line 113 of file VldContext.h. 00114 {
00115 // not equal if any component doesn't match
00116 return
00117 lhs.fDetector != rhs.fDetector ||
00118 lhs.fSimFlag != rhs.fSimFlag ||
00119 lhs.fTimeStamp != rhs.fTimeStamp;
00120 }
|
|
||||||||||||
|
Definition at line 89 of file VldContext.h. 00090 {
00091 // sorting is a little tricky with three fields
00092 // this sorts first by time then detector then simflag
00093 // *WARNING* be very careful if you change this
00094 if ( lhs.fTimeStamp < rhs.fTimeStamp ) return true;
00095 if ( lhs.fTimeStamp == rhs.fTimeStamp ) {
00096 if ( lhs.fDetector < rhs.fDetector ) return true;
00097 if ( lhs.fDetector == rhs.fDetector ) {
00098 if (lhs.fSimFlag < rhs.fSimFlag ) return true;
00099 }
00100 }
00101 return false;
00102 }
|
|
||||||||||||
|
Definition at line 122 of file VldContext.h. 00123 {
00124 return (lhs<rhs) || (lhs==rhs);
00125 }
|
|
||||||||||||
|
Definition at line 104 of file VldContext.h. 00105 {
00106 // equal if all components match
00107 return
00108 lhs.fDetector == rhs.fDetector &&
00109 lhs.fSimFlag == rhs.fSimFlag &&
00110 lhs.fTimeStamp == rhs.fTimeStamp;
00111 }
|
|
||||||||||||
|
Definition at line 127 of file VldContext.h. 00128 {
00129 return !(lhs<rhs) && !(lhs==rhs);
00130 }
|
|
||||||||||||
|
Definition at line 132 of file VldContext.h. 00133 {
00134 return !(lhs<rhs);
00135 }
|
|
|
Definition at line 76 of file VldContext.h. Referenced by IsNull(), operator!=(), operator<(), and operator==(). |
|
|
Definition at line 77 of file VldContext.h. Referenced by IsNull(), operator!=(), operator<(), and operator==(). |
|
|
Definition at line 78 of file VldContext.h. Referenced by AsString(), operator!=(), operator<(), and operator==(). |
1.3.9.1