ScanLibraryImpl.cpp

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 #include "Sct/BugReport.h"
00011 
00012 namespace SctCalibrationController {
00013 using namespace Scripts;    
00014     
00015 ScanLibraryImpl::ScanLibraryImpl() {
00016     api = Sct_SctApi::SctApiIPC::_nil();
00017 }
00018     
00019 Sct_CalibrationController::ScanLibrary_ptr ScanLibraryImpl::instance() {
00020     static ScanLibraryImpl* instance = new ScanLibraryImpl();
00021     return instance->_this();
00022 }
00023 
00024 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::rawScan(unsigned long nTrigs, CORBA::Boolean issueSoftReset) {
00025     return RawScan::rawScan(nTrigs, issueSoftReset)._this();
00026 }
00027 
00028 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::thresholdScan(unsigned long nTrigs) {
00029     return ThresholdScan::thresholdScan(nTrigs)._this();
00030 }
00031 
00032 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::thresholdScanfC(unsigned long nTrigs, double calCharge) {
00033     return ThresholdScan::thresholdScan(nTrigs, calCharge)._this();    
00034 }
00035 
00036 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::strobeDelayScan(unsigned long nTrigs) {
00037   Sct::BugReport("BUG01", "ScanLibraryImpl.cpp","strobeDelayScan 1/2");
00038   Sct_CalibrationController::ScanRequest_ptr ans = StrobeDelayScan::strobeDelayScan(nTrigs)._this();
00039   Sct::BugReport("BUG01", "ScanLibraryImpl.cpp","strobeDelayScan 2/2");
00040   return ans;
00041 }
00042 
00043 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::thresholdScanfCOffset(unsigned long nTrigs, double calCharge, double offset) {
00044     return ThresholdScan::thresholdScan(nTrigs, calCharge, offset)._this();    
00045 }
00046 
00047 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::noiseOccupancyScan() {
00048     return NoiseOccupancyScan::noiseOccupancyScan()._this();
00049 }
00050 
00051 
00052 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::nmaskScan(unsigned long nTrigs) {
00053     return NMaskScan::nmaskScan(nTrigs)._this();
00054 }
00055 
00056 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::tokenScan() {
00057     return TokenScan::tokenScan()._this();
00058 }
00059 
00060 Sct_CalibrationController::ScanRequest_ptr ScanLibraryImpl::defaultScan() {
00061     return DefaultScan::defaultScan()._this();
00062 }
00063 
00064 }

Generated on Mon Feb 6 14:01:27 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6