fdhwlib
2.0.25
|
#include <tsevent.h>
The class holds the data to describe a single event of one telescope.
It allows to read and write data in different formats.
The ADC data for the interesting pixel are stored in a list. To clear the list use
delete pixelList
TsEvent::TsEvent | ( | ) |
virtual TsEvent::~TsEvent | ( | ) | [virtual] |
void TsEvent::analyse | ( | int | firstBin = 0 , |
int | nBins = 1000 |
||
) |
Calaculate pulse and pedestal parameters for all pixel.
int TsEvent::copyToAMFormat | ( | FILE * | m_DataRunFile | ) |
void TsEvent::copyToDaq | ( | TMirrorEvent * | ev | ) |
void TsEvent::copyToDaq | ( | TEyeEvent * | ev | ) |
void TsEvent::display | ( | FILE * | fout, |
int | entry, | ||
SltTime * | tFirst = 0 , |
||
int | nEv = 0 , |
||
int | firstBin = 0 , |
||
int | nBins = 1000 , |
||
int | mode = 0 |
||
) |
Display the event data.
To calculate the trigger rate the time stamp of the first event and the number of events is required.
fout | Output stream |
entry | ID of the event |
tFirst | Timestamp of the first event (number 1) Used to calulate the event rate |
nEv | Number of this event counting all trigged events. Used to calulate the event rate |
firstBin | First time bin to be displayed (0...999) |
nBins | Number of diplayed time bins (0..1000) |
mode | 0 standard tabular output, 1 CVS format separated by TABs. Dump the key event data in a CVS format for import in any spread sheet programm (Excel, Origin, StarCalc, ...). |
void TsEvent::displayHeader | ( | FILE * | fout, |
int | mode = 0 |
||
) |
Display the header for the event list.
void TsEvent::displayTriggerData | ( | FILE * | fout | ) |
Display trigger data.
void TsEvent::dump | ( | FILE * | fout | ) |
void TsEvent::dumpAdcData | ( | FILE * | fout | ) |
void TsEvent::dumpSltData | ( | FILE * | fout | ) |
int TsEvent::getMirrorNumber | ( | ) |
void TsEvent::getTimeStamp | ( | SltTime * | t | ) |
Return the time stamp of this event.
bool TsEvent::isMirrorPresent | ( | int | nr | ) |
int TsEvent::loadAMFormat | ( | FILE * | m_DataRunFile, |
int | m_iChannelsToRead | ||
) |
virtual int TsEvent::loadDaqFormat | ( | TMirrorEvent * | ev | ) | [virtual] |
Read one event in DAQ-Event format.
Reimplemented in CursesEvent.
virtual int TsEvent::loadDaqFormat | ( | TEyeEvent * | ev | ) | [virtual] |
Reimplemented in CursesEvent.
int TsEvent::loadHwFormat | ( | Subrack * | s, |
int | page | ||
) |
Read the event data from the hardware.
int TsEvent::loadHwFormatPixelData | ( | Subrack * | s, |
int | page | ||
) |
Read the pixel data from the hardware The readout of this data is separated to make also a fast viewing of the events in the hardware possible...
void TsEvent::setAdcRange | ( | int | startBin, |
int | endBin | ||
) |
Set the last bin and the first bin of the ADC data.
The HPE format does not store this data
void TsEvent::setEventNumber | ( | int | nr | ) |
Set the event number.
This might be useful to reorder the events or to give a number because there is no number in the event format specified!
void TsEvent::setEyeNumber | ( | int | nr | ) |
The HPE format does not suport this figure.
To include it in the DAQ data file use this function to set it to a fixed value
nr | 1..4 |
void TsEvent::setMirrorNumber | ( | int | nr | ) |
The HPE format does not suport this figure.
To include it in the DAQ data file use this function to set it to a fixed value
nr | 1..12 for eye 1 (center) |
nr | 1..6 for eye 2..4 (satellite) |
void TsEvent::setNextPageDelay | ( | int | delay | ) |
The HPE format does not suport this figure.
To include it in the DAQ data file use this function to set it to a fixed value
delay | 0..1000 [100ns] |
float TsEvent::m_fSltRateStamp |
float TsEvent::m_fSltRateTime |
unsigned long TsEvent::m_iMirrorStatus |
unsigned char TsEvent::m_iMultiplicity[1000] |
unsigned int TsEvent::m_iPageNumber |
unsigned int TsEvent::m_iSltEvent[100][20] |
unsigned long TsEvent::m_lSecCount |
unsigned long TsEvent::m_lSubSecCount |
unsigned long TsEvent::m_lTrigger |
Reimplemented in CursesEvent.
float TsEvent::pedestal[20][24] |
Reimplemented in CursesEvent.
float TsEvent::pulseHeight[20][24] |
float TsEvent::pulseIntegral[20][24] |
float TsEvent::pulsePos[20][24] |