Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
EventPreamble Class Reference

Interface for event classes. More...

#include <EventPreamble.hh>

Inheritance diagram for EventPreamble:
TObject TimeSlice< AWF_Frame > TimeSlice< CRM_Frame > TimeSlice< DWF_Frame > TimeSlice< ExtendedSummary_Frame > TimeSlice< RTS_Frame > TimeSlice< SPE_Frame > TimeSlice< Status_Frame > TimeSlice< Summary_Frame > PhysicsEvent TimeSlice< T >

Public Member Functions

 EventPreamble ()
 Default constructor.
 
virtual ~EventPreamble ()
 Virtual destructor.
 
 ClassDef (EventPreamble, 2)
 

Public Attributes

unsigned short frameTarget
 Unique code representing the shore station for this frame.
 
unsigned int frameTime1
 Frame 'time stamp' in units of 50ns (MSW)
 
unsigned int frameTime2
 Frame 'time stamp' in units of 50ns (LSW)
 
unsigned int frameIndex
 Number of frames since start of the run.
 
unsigned int runNumber
 Run-number as given by the RunControl.
 

Friends

std::ostream & operator<< (std::ostream &out, const EventPreamble &object)
 Print ASCII.
 

Detailed Description

Interface for event classes.

It holds the information from the 'preamble' of an event object.

Definition at line 17 of file EventPreamble.hh.

Constructor & Destructor Documentation

◆ EventPreamble()

EventPreamble::EventPreamble ( )
inline

Default constructor.

Definition at line 43 of file EventPreamble.hh.

44 {
45 //length_ = 0;
46 //dataType = UNDEFINED_EVENT_TYPE;
47 frameTarget = 0;
48 frameTime1 = 0;
49 frameTime2 = 0;
50 frameIndex = 0;
51 runNumber = 0;
52 }
unsigned int frameTime2
Frame 'time stamp' in units of 50ns (LSW)
unsigned int runNumber
Run-number as given by the RunControl.
unsigned int frameIndex
Number of frames since start of the run.
unsigned short frameTarget
Unique code representing the shore station for this frame.
unsigned int frameTime1
Frame 'time stamp' in units of 50ns (MSW)

◆ ~EventPreamble()

virtual EventPreamble::~EventPreamble ( )
inlinevirtual

Virtual destructor.

Definition at line 57 of file EventPreamble.hh.

57{};

Member Function Documentation

◆ ClassDef()

EventPreamble::ClassDef ( EventPreamble ,
2  )

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & out,
const EventPreamble & object )
friend

Print ASCII.

Parameters
outoutput stream
objectevent preamble
Returns
output stream

Definition at line 66 of file EventPreamble.hh.

67 {
68 using namespace std;
69
70 out << "frameTarget " << object.frameTarget << endl;
71 out << "frameTime1 " << object.frameTime1 << endl;
72 out << "frameTime2 " << object.frameTime2 << endl;
73 out << "frameIndex " << object.frameIndex << endl;
74 out << "runNumber " << object.runNumber << endl;
75
76 return out;
77 }

Member Data Documentation

◆ frameTarget

unsigned short EventPreamble::frameTarget

Unique code representing the shore station for this frame.

Definition at line 26 of file EventPreamble.hh.

◆ frameTime1

unsigned int EventPreamble::frameTime1

Frame 'time stamp' in units of 50ns (MSW)

Definition at line 29 of file EventPreamble.hh.

◆ frameTime2

unsigned int EventPreamble::frameTime2

Frame 'time stamp' in units of 50ns (LSW)

Definition at line 31 of file EventPreamble.hh.

◆ frameIndex

unsigned int EventPreamble::frameIndex

Number of frames since start of the run.

Definition at line 34 of file EventPreamble.hh.

◆ runNumber

unsigned int EventPreamble::runNumber

Run-number as given by the RunControl.

Definition at line 37 of file EventPreamble.hh.


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