00001 #include "ScanLibraryImpl.h" 00002 #include "CalibrationControllerImpl.h" 00003 #include "scripts/ThresholdScan.h" 00004 #include "scripts/StrobeDelayScan.h" 00005 #include "scripts/NMaskScan.h" 00006 #include "scripts/NoiseOccupancyScan.h" 00007 #include "scripts/TokenScan.h" 00008 #include "scripts/DefaultScan.h" 00009 #include "scripts/RawScan.h" 00010 00011 namespace SctCalibrationController { 00012 using namespace Scripts; 00013 00014 ScanLibraryImpl::ScanLibraryImpl() { 00015 api = 0; 00016 } 00017 00018 ScanLibraryImpl& ScanLibraryImpl::instance() { 00019 static ScanLibraryImpl* instance = new ScanLibraryImpl(); 00020 return *instance; 00021 } 00022 00023 ScanRequestImpl& ScanLibraryImpl::rawScan(unsigned long nTrigs) const { 00024 return RawScan::rawScan(nTrigs); 00025 } 00026 00027 ScanRequestImpl& ScanLibraryImpl::thresholdScan(unsigned long nTrigs) const { 00028 return ThresholdScan::thresholdScan(nTrigs); 00029 } 00030 00031 ScanRequestImpl& ScanLibraryImpl::thresholdScanfC(unsigned long nTrigs, double calCharge) const { 00032 return ThresholdScan::thresholdScan(nTrigs, calCharge); 00033 } 00034 00035 ScanRequestImpl& ScanLibraryImpl::thresholdScanfCOffset(unsigned long nTrigs, double calCharge, double offset) const { 00036 return ThresholdScan::thresholdScan(nTrigs, calCharge, offset); 00037 } 00038 00039 ScanRequestImpl& ScanLibraryImpl::noiseOccupancyScan() const { 00040 return NoiseOccupancyScan::noiseOccupancyScan(); 00041 } 00042 00043 ScanRequestImpl& ScanLibraryImpl::strobeDelayScan(unsigned long nTrigs) const { 00044 return StrobeDelayScan::strobeDelayScan(nTrigs); 00045 } 00046 00047 ScanRequestImpl& ScanLibraryImpl::nmaskScan(unsigned long nTrigs) const { 00048 return NMaskScan::nmaskScan(nTrigs); 00049 } 00050 00051 ScanRequestImpl& ScanLibraryImpl::tokenScan() const { 00052 return TokenScan::tokenScan(); 00053 } 00054 00055 ScanRequestImpl& ScanLibraryImpl::defaultScan() const { 00056 return DefaultScan::defaultScan(); 00057 } 00058 00059 }