ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testEventiterator Class Reference

#include <online_distribution/blob/master/newbasic/testEventiterator.h>

+ Inheritance diagram for testEventiterator:
+ Collaboration diagram for testEventiterator:

Public Member Functions

 testEventiterator ()
 The constructor.
 
 ~testEventiterator ()
 The destructor.
 
const char * getIdTag () const
 
virtual void identify (std::ostream &os=std::cout) const
 
EventgetNextEvent ()
 
- Public Member Functions inherited from Eventiterator
virtual ~Eventiterator ()
 The virtual destructor.
 
virtual intgetNextEventData ()
 
virtual int releaseEventData ()
 
virtual void setBlockingMode (const int mode)
 
virtual int getBlockingMode () const
 
virtual void setSelectMode (const int mode)
 
virtual int getSelectMode () const
 
virtual void setSelectWords (const int i1, const int i2, const int i3, const int i4)
 
virtual void getSelectWords (int val[]) const
 
virtual const char * getCurrentFileName () const
 
virtual int setVerbosity (const int v)
 
virtual int getVerbosity () const
 

Private Attributes

simpleRandomR
 
int current_event
 
inte_sequence
 
inte_time
 
inte_1003values
 
int e_data [256]
 

Detailed Description

The testEventiterator creates Event objects with known properties from scratch. The events contain 1 frame and 3 packets. The first 2 packets with id's 1001 and 1002 look like ADC's whose channel i contains the value i, which can be used to verify that a certain channel actually ends up where it should. The third packet 1003 has four channels which give values according to gaussian distributions with RMS 10,100,1000, and 10000, respectively.

Definition at line 18 of file testEventiterator.h.

View newest version in sPHENIX GitHub at line 18 of file testEventiterator.h

Constructor & Destructor Documentation

testEventiterator::testEventiterator ( )

The constructor.

Definition at line 21 of file testEventiterator.cc.

View newest version in sPHENIX GitHub at line 21 of file testEventiterator.cc

References current_event, e, e_1003values, e_data, e_sequence, e_time, for(), R, Acts::VectorHelpers::time(), and x.

+ Here is the call graph for this function:

testEventiterator::~testEventiterator ( )

The destructor.

Definition at line 16 of file testEventiterator.cc.

View newest version in sPHENIX GitHub at line 16 of file testEventiterator.cc

References R.

Member Function Documentation

const char * testEventiterator::getIdTag ( ) const
virtual

Implements Eventiterator.

Definition at line 134 of file testEventiterator.cc.

View newest version in sPHENIX GitHub at line 134 of file testEventiterator.cc

Referenced by identify().

+ Here is the caller graph for this function:

Event * testEventiterator::getNextEvent ( )
virtual

this member function creates returns a pointer to the Event object (this iterator does not become empty).

Implements Eventiterator.

Definition at line 142 of file testEventiterator.cc.

View newest version in sPHENIX GitHub at line 142 of file testEventiterator.cc

References Event::convert(), current_event, e, e_1003values, e_data, e_sequence, e_time, simpleRandom::gauss(), R, scale, and Acts::VectorHelpers::time().

+ Here is the call graph for this function:

void testEventiterator::identify ( std::ostream &  os = std::cout) const
virtual

Implements Eventiterator.

Definition at line 127 of file testEventiterator.cc.

View newest version in sPHENIX GitHub at line 127 of file testEventiterator.cc

References getIdTag().

+ Here is the call graph for this function:

Member Data Documentation

int testEventiterator::current_event
private

Definition at line 43 of file testEventiterator.h.

View newest version in sPHENIX GitHub at line 43 of file testEventiterator.h

Referenced by getNextEvent(), and testEventiterator().

int* testEventiterator::e_1003values
private

Definition at line 48 of file testEventiterator.h.

View newest version in sPHENIX GitHub at line 48 of file testEventiterator.h

Referenced by getNextEvent(), and testEventiterator().

int testEventiterator::e_data[256]
private

Definition at line 51 of file testEventiterator.h.

View newest version in sPHENIX GitHub at line 51 of file testEventiterator.h

Referenced by getNextEvent(), and testEventiterator().

int* testEventiterator::e_sequence
private

Definition at line 46 of file testEventiterator.h.

View newest version in sPHENIX GitHub at line 46 of file testEventiterator.h

Referenced by getNextEvent(), and testEventiterator().

int* testEventiterator::e_time
private

Definition at line 47 of file testEventiterator.h.

View newest version in sPHENIX GitHub at line 47 of file testEventiterator.h

Referenced by getNextEvent(), and testEventiterator().

simpleRandom* testEventiterator::R
private

Definition at line 41 of file testEventiterator.h.

View newest version in sPHENIX GitHub at line 41 of file testEventiterator.h

Referenced by getNextEvent(), testEventiterator(), and ~testEventiterator().


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