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