THaSlotData Data in one slot of one crate from DAQ. THaSlotData contains data from one slot of one crate from a CODA event. Public methods allow to obtain raw data for this crate & slot, or to obtain TDC, ADC, or scaler data for each channel in the slot. Methods clearEvent() and loadData() should only be used by the decoder. WARNING: For efficiency, only the hit counters are zero'd each event, not the data arrays, see below. author Robert Michaels (rom@jlab.org)
THaSlotData() | |
THaSlotData(const THaSlotData&) | |
THaSlotData(int crate, int slot) | |
virtual | ~THaSlotData() |
static TClass* | Class() |
void | clearEvent() |
int | compressdataindex(int numidx) |
void | define(int crate, int slot, UShort_t nchan = DEFNCHAN, UShort_t ndata = DEFNDATA, UShort_t nhitperchan = DEFNHITCHAN) |
const char* | devType() const |
int | getCrate() const |
int | getData(int chan, int hit) const |
int | getNextChan(int index) const |
int | getNumChan() const |
int | getNumHits(int chan) const |
int | getNumRaw() const |
int | getRawData(int hit) const |
int | getRawData(int chan, int hit) const |
int | getSlot() const |
virtual TClass* | IsA() const |
int | loadData(const char* type, int chan, int dat, int raw) |
THaSlotData& | operator=(const THaSlotData&) |
void | print() const |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
static const int | DEFNCHAN | Default number of channels |
static const int | DEFNDATA | Default number of data words |
static const int | DEFNHITCHAN | Default number of hits per channel |
UShort_t | allocd | Allocated size of data arrays |
UShort_t | alloci | Allocated size of dataindex array |
UShort_t* | chanindex | [channel] gives hitindex |
UShort_t* | chanlist | chanlist[hitindex] |
int | crate | |
int* | data | data[hit] (only data bits) |
UShort_t* | dataindex | [idxlist] pointer to rawdata and data |
TString | device | |
bool | didini | true if object initialized via define() |
UShort_t | firstfreedataidx | pointer to first free space in dataindex array |
UShort_t* | idxlist | [channel] pointer to 1st entry in dataindex |
UShort_t | maxc | Number of channels for this device |
UShort_t | maxd | Max number of data words per event |
UChar_t* | numHits | numHits[channel] |
UChar_t* | numMaxHits | [channel] current maximum number of hits |
UShort_t | numchanhit | can be zero'd by clearEvent each event. |
UShort_t | numhitperchan | expected number of hits per channel |
UShort_t | numholesdataidx | |
UShort_t | numraw | Hit counters (numraw, numHits, numchanhit) |
int* | rawData | rawData[hit] (all bits) |
int | slot |
Inheritance Chart: | |||||
|
______________ inline functions _____________________________________________
Only the minimum is cleared; e.g. data array is not cleared. CAUTION: this code is critical for performance