12 #define N_LEADING_INTEGERS 4
13 #define N_TRAILING_INTEGERS 0
26 myObj->setIntVal(3, nChips);
33 myObj =
dynamic_cast<IMPL::LCGenericObjectImpl*
>( obj );
54 for (
int i=0; i<16; i++)
114 return std::string(
"TimePixParameters");
133 for (
int chip=0; chip<
getNChips() ; chip++)
135 os <<
"Chip " << chip <<
"DACs ";
136 for (
int dacIndex=0; dacIndex<16 ; dacIndex++)
138 os <<
"\t" <<
getDAC(chip, dacIndex) ;
int getTHLFine(int chipIndex) const
virtual ~TimePixParameters()
Important for memory handling.
int getTHHCoarse(int chipIndex) const
int getType() const
get the chip type (3=timepix)
TimePixParameters(EVENT::LCObject *obj)
Constructor needed to interpret LCCollection read from file/database.
int getTHS(int chipIndex) const
double getDoubleVal(int index) const
int getNChips() const
Get the number of chips.
int getGnd(int chipIndex) const
int getBiasVLDS(int chipIndex) const
#define N_TRAILING_INTEGERS
int getFBK(int chipIndex) const
void print(std::ostream &os=std::cout) const
int getTHHFine(int chipIndex) const
int getTHLCoarse(int chipIndex) const
#define N_LEADING_INTEGERS
int getBuffA(int chipIndex) const
void setPolarity(int polarity)
set the polarity
void setClock(double clock)
Set the clock (in MHz)
std::ostream & operator<<(std::ostream &os, const ADCChannelMapping &acm)
int getIKrumm(int chipIndex) const
void setType(int type)
set the chip type (3=timepix)
int getChipID() const
get the chip iID aka module number
int getDisc(int chipIndex) const
void setShutterEndTime(double shutterEndTime)
Set the shutter end time (wrt. tigger)
int getDAC(int chipIndex, int dacIndex) const
Get a specific DAC by index.
double getShutterEndTime() const
Get the shutter end time (wrt. tigger)
float getFloatVal(int index) const
static std::string getRevision()
double getClock() const
Get the clock (in MHz)
int getDelayN(int chipIndex) const
IMPL::LCGenericObjectImpl * myObj
static std::string getDefaultColName()
int getRefLVDS(int chipIndex) const
int getIntVal(int index) const
void setDACs(int chipIndex, int *DACs)
Set the DACs for one chip, a 16 words long integer array.
int getBuffB(int chipIndex) const
int getPolarity() const
get the polarity
void setChipID(int chipID)
set the chip iID aka module number
int getPreamp(int chipIndex) const