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