#include "SampaConfig.h" SampaConfig::SampaConfig(int32_t configType, uint32_t debuglevel) { // // Constructor // fdebuglevel = debuglevel; fconfigType = configType; } SampaConfig::~SampaConfig() { // // Destructor // } uint32_t SampaConfig::getSampaState(uint32_t side, uint32_t sector, uint32_t rcu, uint32_t branch, uint32_t fec, uint32_t sampa) { // // SAMPA is enabled by default. Known problems can be masked here // uint32_t retval = 1; return retval; } uint32_t SampaConfig::getChannelState(uint32_t side, uint32_t sector, uint32_t rcu, uint32_t branch, uint32_t fec, uint32_t sampa, uint32_t channel) { // // All channels on by default. Known problems can be masked here // uint32_t retval = 1; return retval; } uint32_t SampaConfig::getPedestal(uint32_t side, uint32_t sector, uint32_t rcu, uint32_t branch, uint32_t fec, uint32_t sampa, uint32_t channel) { // // Pedestal for single channel (12 bit). // uint32_t retval = 0; // Values are updated regularily from pedestal runs return retval; } uint32_t SampaConfig::getZSThreshold(uint32_t side, uint32_t sector, uint32_t rcu, uint32_t branch, uint32_t fec, uint32_t sampa, uint32_t channel) { // // Zero Suppression threshold parameter for single channel (12 bit). // uint32_t retval = 0; // Values are updated regularily from pedestal runs return retval; } uint32_t SampaConfig::getChannelState() { return getChannelState(0,0,0,0,0,0,0); } uint32_t SampaConfig::getPedestal() { return getPedestal(0,0,0,0,0,0,0); } uint32_t SampaConfig::getZSThreshold() { return getZSThreshold(0,0,0,0,0,0,0); }