00001 #include "TestLibraryImpl.h" 00002 #include "scripts/ResponseCurve.h" 00003 #include "scripts/ThreePointGainTest.h" 00004 #include "scripts/FivePointGainTest.h" 00005 #include "scripts/StrobeDelayTest.h" 00006 #include "scripts/NoiseOccupancyTest.h" 00007 #include "scripts/DoubleTriggerNoiseTest.h" 00008 #include "scripts/SynchTriggerNoiseTest.h" 00009 #include "scripts/PipelineTest.h" 00010 #include "scripts/TrimRangeTest.h" 00011 #include "scripts/QuickTrimRangeTest.h" 00012 #include "scripts/FullBypassBarrelTest.h" 00013 #include "scripts/FullBypassEndcapTest.h" 00014 #include "scripts/TimeWalkTest.h" 00015 #include "scripts/NMaskTest.h" 00016 #include "scripts/RxDelayTest.h" 00017 #include "scripts/RxThresholdTest.h" 00018 #include "scripts/RxThresholdBasedOnConfigRegisterTest.h" 00019 #include "scripts/TxCurrentTest.h" 00020 00021 namespace SctCalibrationController { 00022 00023 using namespace Scripts; 00024 00025 TestLibraryImpl::TestLibraryImpl() { 00026 cout << "create TestLibraryImpl" << endl; 00027 } 00028 00029 TestLibraryImpl& TestLibraryImpl::instance() { 00030 static TestLibraryImpl* instance = new TestLibraryImpl(); 00031 return *instance; 00032 } 00033 00034 TestRequestImpl& TestLibraryImpl::responseCurve() const { 00035 return ResponseCurve::instance(); 00036 } 00037 00038 TestRequestImpl& TestLibraryImpl::threePointGain () const { 00039 return ThreePointGainTest::instance(); 00040 } 00041 00042 TestRequestImpl& TestLibraryImpl::fivePointGain () const { 00043 return FivePointGainTest::instance(); 00044 } 00045 00046 TestRequestImpl& TestLibraryImpl::strobeDelay () const { 00047 return StrobeDelayTest::instance(); 00048 } 00049 00050 TestRequestImpl& TestLibraryImpl::pipeline () const { 00051 return PipelineTest::instance(); 00052 } 00053 00054 TestRequestImpl& TestLibraryImpl::noiseOccupancy () const { 00055 return NoiseOccupancyTest::instance(); 00056 } 00057 TestRequestImpl& TestLibraryImpl::timeWalk () const { 00058 return TimeWalkTest::instance(); 00059 } 00060 00061 TestRequestImpl& TestLibraryImpl::fullBypassBarrel () const { 00062 return FullBypassBarrelTest::instance(); 00063 } 00064 00065 TestRequestImpl& TestLibraryImpl::fullBypassEndcap () const { 00066 return FullBypassEndcapTest::instance(); 00067 } 00068 00069 TestRequestImpl& TestLibraryImpl::trimRange () const { 00070 return TrimRangeTest::instance(); 00071 } 00072 00073 TestRequestImpl& TestLibraryImpl::quickTrimRange () const { 00074 return QuickTrimRangeTest::instance(); 00075 } 00076 00077 TestRequestImpl& TestLibraryImpl::nmask () const { 00078 return NMaskTest::instance(); 00079 } 00080 00081 TestRequestImpl& TestLibraryImpl::doubleTriggerNoise () const { 00082 return DoubleTriggerNoiseTest::instance(); 00083 } 00084 00085 TestRequestImpl& TestLibraryImpl::synchTriggerNoise () const { 00086 return SynchTriggerNoiseTest::instance(); 00087 } 00088 00089 TestRequestImpl& TestLibraryImpl::rxDelay() const { 00090 return RxDelayTest::instance(); 00091 } 00092 00093 TestRequestImpl& TestLibraryImpl::rxThreshold () const { 00094 return RxThresholdTest::instance(); 00095 } 00096 00097 TestRequestImpl& TestLibraryImpl::rxThresholdBasedOnConfigRegister () const { 00098 return RxThresholdBasedOnConfigRegisterTest::instance(); 00099 } 00100 00101 TestRequestImpl& TestLibraryImpl::txCurrent () const { 00102 return TxCurrentTest::instance(); 00103 } 00104 00105 }