/* * WhitePSPulser.cpp * * Created on: Aug 27, 2015 * Author: Hovanes Egiyan */ #include "WhitePSPulser.hh" using namespace std; // Mask that defines the range where the changes from this pulser occur unsigned WhitePSPulser::wppRangeMask = 0x00000180 | 0x7F8000 ; // Mask that would be used to apply switching to the channels unsigned WhitePSPulser::wppChannelMask = 0x00000180 | 0x7F8000 ; static unsigned dummyArray[] = {39, 40}; // Channel numbers on board for the pulser std::vector WhitePSPulser::wppChannelVector( dummyArray, dummyArray + sizeof(dummyArray)/ sizeof(unsigned) ); // ID for this particular pulser std::string WhitePSPulser::wppPulserID = "WHITE" ; WhitePSPulser::WhitePSPulser( const std::string id ) : FCALLEDPulser( wppPulserID ) { // If the requested ID does not match then throw an exception if ( id != wppPulserID ) { // throw an exception std::stringstream errStream; errStream << "WhitePSPulser::WhitePSPulser : requested pulser id " << id << " does not match " << wppPulserID ; throw std::runtime_error( errStream.str()); } else { vpID = id; } return; }