fdhwlib  2.0.25

#include <tsevent.h>

Inheritance diagram for TsEvent:
CursesEvent

List of all members.

Public Member Functions

Public Attributes


Detailed Description

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
    
Todo:
Implement saveAMFormat

Definition at line 54 of file tsevent.h.


Constructor & Destructor Documentation

TsEvent::TsEvent ( )
virtual TsEvent::~TsEvent ( ) [virtual]

Member Function Documentation

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.

Parameters:
foutOutput stream
entryID of the event
tFirstTimestamp of the first event (number 1) Used to calulate the event rate
nEvNumber of this event counting all trigged events. Used to calulate the event rate
firstBinFirst time bin to be displayed (0...999)
nBinsNumber of diplayed time bins (0..1000)
mode0 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)

Display the (basic) event data.

Todo:
Use the class SltTime to decode the second fields!
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...

Todo:
Add more arguments to control partial readout.
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

Parameters:
nr1..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

Parameters:
nr1..12 for eye 1 (center)
nr1..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

Parameters:
delay0..1000 [100ns]

Member Data Documentation

Trigger rate calculated from the time stamp information.

Definition at line 254 of file tsevent.h.

Trigger rate calculated from the actual time information.

Definition at line 258 of file tsevent.h.

Number of events used for the analysis.

Definition at line 250 of file tsevent.h.

Last bin of the ADC data used.

Definition at line 234 of file tsevent.h.

Number of the actual event in the campaign.

Definition at line 191 of file tsevent.h.

Definition at line 198 of file tsevent.h.

Start of the Flt readout - only used for Hw readout.

Definition at line 237 of file tsevent.h.

Definition at line 199 of file tsevent.h.

unsigned long TsEvent::m_iMirrorStatus

List of telescopes that contain data.

Definition at line 202 of file tsevent.h.

unsigned char TsEvent::m_iMultiplicity[1000]

Multiplicity information.

Definition at line 222 of file tsevent.h.

Delay between the trigger being detected and the next page generation.

Definition at line 216 of file tsevent.h.

Number of pixel stored with this event.

Definition at line 227 of file tsevent.h.

unsigned int TsEvent::m_iPageNumber

Page where event was recorded.

Definition at line 213 of file tsevent.h.

unsigned int TsEvent::m_iSltEvent[100][20]

Definition at line 218 of file tsevent.h.

First bin of the ADC data used.

Definition at line 231 of file tsevent.h.

Number of the event counting all second level triggers.

Definition at line 196 of file tsevent.h.

unsigned long TsEvent::m_lSecCount

This is the next page time stamp [s].

Definition at line 205 of file tsevent.h.

unsigned long TsEvent::m_lSubSecCount

This is the next page time stamp.

The field contains to numbers (see SltTime)!

Definition at line 209 of file tsevent.h.

unsigned long TsEvent::m_lTrigger

Last trigger time stamp.

Definition at line 211 of file tsevent.h.

The time when the page has been released for further use.

Definition at line 246 of file tsevent.h.

Reimplemented in CursesEvent.

Definition at line 279 of file tsevent.h.

float TsEvent::pedestal[20][24]

Pedestal.

Definition at line 276 of file tsevent.h.

List of all pixel recorded with this event.

Definition at line 241 of file tsevent.h.

Reimplemented in CursesEvent.

Definition at line 281 of file tsevent.h.

float TsEvent::pulseHeight[20][24]

Pulse heigth.

Definition at line 270 of file tsevent.h.

float TsEvent::pulseIntegral[20][24]

Pulse integral.

Definition at line 273 of file tsevent.h.

float TsEvent::pulsePos[20][24]

Pulse first bin.

Definition at line 267 of file tsevent.h.

Time of the last event.

Definition at line 261 of file tsevent.h.


The documentation for this class was generated from the following file: