/* * FCALTriggerPulser.cpp * * Created on: Aug 31, 2015 * Author: Hovanes Egiyan */ #include "FCALTriggerPulser.hh" using namespace std; // Mask that defines the range where the changes from this pulser occur unsigned FCALTriggerPulser::ftpRangeMask = 0x7F8000 ; // Mask that would be used to apply when getting the status for the channels unsigned FCALTriggerPulser::ftpChannelMask = 0x7F8000 ; // Channel number on board for the pulser static unsigned dummyArray[] = {47, 48, 49, 50, 51, 52, 53, 54}; // Channel numbers on board for the pulser std::vector FCALTriggerPulser::ftpChannelVector( dummyArray, dummyArray + sizeof(dummyArray)/ sizeof(unsigned) ); // ID for this particular pulser std::string FCALTriggerPulser::ftpPulserID = "TRIG" ; // Constructor, use vfpPulserID as the type of the pulser FCALTriggerPulser::FCALTriggerPulser( const std::string id ) : FCALLEDPulser( ftpPulserID ) { // If the requested ID does not match then throw an exception if ( id != ftpPulserID ) { // throw an exception std::stringstream errStream; errStream << "FCALTriggerPulser::FCALTriggerPulser: requested pulser id " << id << " does not match " << ftpPulserID; throw std::runtime_error( errStream.str()); } else { vpID = id; } return; }