#include "AwagsSetup.h" #include //////////////////////////////////////////////// //////// the setup data class of a single awags chip: AwagsSetup::AwagsSetup () : fChipPresent(true), fPoweredOn(true), fAddressID (0), fCurrentAsic(1.0), fCurrentHV(1.0), fCurrentDiode(1.0) { for (int c = 0; c < AWAGS_NUMDACS; ++c) { fDACValueSet[c] = 0; fGain[c]=1; } // for (int c = 0; c < AWAGS_NUMCHANS; ++c) // { // fLowGainSet[c] = true; //// fTestPulsEnable[c] = false; // // } //fTestPulsPositive = true; } /** getter and setter methods to avoid possible segfaults at wrong indices: */ int AwagsSetup::GetDACValue (int dac) { ASSERT_DAC_VALID(dac) //std::cout << "GetDACValue ("<