Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

NMaskScan.h

00001 #ifndef NMASKSCAN_H
00002 #define NMASKSCAN_H
00003 
00004 #include "../ipc/Sct_CalibrationController.hh"
00005 #include "../CalibrationControllerImpl.h"
00006 #include "../SctApiAccessException.h"
00007 #include "../SctApiCall.h"
00008 #include "Sct/LogicErrors.h"
00009 
00010 #include <CommonWithDsp/ABCD/ABCDscans.h>
00011 
00012 using namespace Sct;
00013 using namespace SctCalibrationController::Ipc;
00014 namespace SctCalibrationController {
00015 namespace Scripts {
00016     
00017 class NMaskScan : public ScanRequestImpl {
00018 public:
00019   static ScanRequestImpl& nmaskScan(unsigned long nTrigs) {
00020     static NMaskScan request;
00021     Sct_SctApi_T_SctApi* api = CalibrationControllerImpl::instance().getApi();
00022     Sct_SctApi_T_Scan* s=0;
00023     APIRETCALL(api, s, createScan(&st), "Failed to create scan")
00024     request.setScan(s);
00025     
00026     APICALL(s, setNTrigs(&st, nTrigs), "Failed to set triggers")
00027     
00028     Sct_SctApi_T_Trigger* t = 0;
00029     APIRETCALL(s, t, getTrigger1(&st), "Failed to get Trigger1")
00030 
00031     APICALL(t, singleL1A(&st), "Failed to set trigger type")
00032 
00033     APICALL(s, configure(&st, ST_NMASK, 0, 128, 1), "Failed to set Scan information")
00034     return request;
00035     }
00036     
00037 private:
00038   NMaskScan(){;}
00039 };
00040     
00041 }
00042 }
00043 
00044 #endif //NMASKSCAN_H

Generated on Thu Jul 15 09:50:48 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5