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