EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <online_distribution/blob/master/newbasic/testEventiterator.h>
Public Member Functions | |
testEventiterator () | |
The constructor. | |
~testEventiterator () | |
The destructor. | |
const char * | getIdTag () const |
virtual void | identify (std::ostream &os=std::cout) const |
Event * | getNextEvent () |
Public Member Functions inherited from Eventiterator | |
virtual | ~Eventiterator () |
The virtual destructor. | |
virtual int * | getNextEventData () |
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 | |
simpleRandom * | R |
int | current_event |
int * | e_sequence |
int * | e_time |
int * | e_1003values |
int | e_data [256] |
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
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, data, Acts::UnitConstants::e, e_1003values, e_data, e_sequence, e_time, for(), R, Acts::Test::time, and x.
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.
|
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().
|
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, Acts::UnitConstants::e, e_1003values, e_data, e_sequence, e_time, simpleRandom::gauss(), R, and Acts::Test::time.
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().