Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TYYYRawEvent Class Reference

Example for user defined raw event class. More...

#include <TYYYRawEvent.h>

Inheritance diagram for TYYYRawEvent:

TGo4EventElement List of all members.

Public Member Functions

 TYYYRawEvent ()
 TYYYRawEvent (const char *name)
virtual ~TYYYRawEvent ()
virtual Int_t Fill ()
 Method called by the event owner (analysis step) to fill the event element from the set event source.
virtual Int_t Init ()
 Method called on initialization of event classes.
virtual void Clear (Option_t *t="")
 Method called by the event owner (analysis step) to clear the event element.
void ReAllocate (Int_t newsize)
 Expand data field if necessary.
void PrintEvent ()
 Method called by the event owner (analysis step) to clear the event element.
Int_t GetColumns () const

Private Attributes

Int_t fiColumns
Double_t * fdData
TYYYEventSourcefxUserSource
 points to mbssource if exists
TGo4TreeSourcefxTreeSource
 points to treesource if exists
TGo4FileSourcefxFileSource
 points to filesource if exists

Friends

class TYYYEventSource
class TYYYUnpackProc

Detailed Description

Example for user defined raw event class.

This event structure corresponds to the user event source.

Definition at line 31 of file TYYYRawEvent.h.


Constructor & Destructor Documentation

TYYYRawEvent::TYYYRawEvent  ) 
 

Definition at line 26 of file TYYYRawEvent.cxx.

References fdData, and fiColumns.

TYYYRawEvent::TYYYRawEvent const char *  name  ) 
 

Definition at line 34 of file TYYYRawEvent.cxx.

References fdData, and fiColumns.

TYYYRawEvent::~TYYYRawEvent  )  [virtual]
 

Definition at line 42 of file TYYYRawEvent.cxx.

References fdData.


Member Function Documentation

Int_t TYYYRawEvent::Fill  )  [virtual]
 

Method called by the event owner (analysis step) to fill the event element from the set event source.

Event source can be the source of the analysis step (if this is a raw event) or the event processor (if this is a reduced event). Fill method has to specify how the event source writes to the members of this event structure. Either by calling methods of the source (like myevent.a=GetEventSource()->GetA(); etc ), or by direct copy to the member (like GetEventSource()->FillMemoryAt(&myevent.a);)

Reimplemented from TGo4EventElement.

Definition at line 49 of file TYYYRawEvent.cxx.

References TGo4FileSource::BuildEvent(), TGo4TreeSource::BuildEvent(), TYYYEventSource::BuildYYYEvent(), Clear(), TGo4Log::Debug(), fxFileSource, fxTreeSource, fxUserSource, TGo4EventSource::GetErrMess(), and TYYYEventSource::NextEvent().

Int_t TYYYRawEvent::Init  )  [virtual]
 

Method called on initialization of event classes.

User might check the correct type of the eventsource here and assign this to a subclass pointer.

Reimplemented from TGo4EventElement.

Definition at line 109 of file TYYYRawEvent.cxx.

References TGo4EventElement::CheckEventSource(), fxFileSource, fxTreeSource, fxUserSource, and TGo4EventElement::GetEventSource().

void TYYYRawEvent::Clear Option_t *  t = ""  )  [virtual]
 

Method called by the event owner (analysis step) to clear the event element.

Reimplemented from TGo4EventElement.

Definition at line 141 of file TYYYRawEvent.cxx.

References fdData, and fiColumns.

Referenced by Fill().

void TYYYRawEvent::ReAllocate Int_t  newsize  ) 
 

Expand data field if necessary.

Definition at line 150 of file TYYYRawEvent.cxx.

References fdData, and fiColumns.

Referenced by TYYYEventSource::BuildYYYEvent().

void TYYYRawEvent::PrintEvent  )  [virtual]
 

Method called by the event owner (analysis step) to clear the event element.

Reimplemented from TGo4EventElement.

Definition at line 171 of file TYYYRawEvent.cxx.

References fdData, fiColumns, and TGo4EventElement::PrintEvent().

Int_t TYYYRawEvent::GetColumns  )  const [inline]
 

Definition at line 68 of file TYYYRawEvent.h.

References fiColumns.

Referenced by TYYYAnalysis::UserEventFunc().


Friends And Related Function Documentation

friend class TYYYEventSource [friend]
 

Definition at line 33 of file TYYYRawEvent.h.

friend class TYYYUnpackProc [friend]
 

Definition at line 34 of file TYYYRawEvent.h.


Member Data Documentation

Int_t TYYYRawEvent::fiColumns [private]
 

Definition at line 73 of file TYYYRawEvent.h.

Referenced by Clear(), GetColumns(), PrintEvent(), ReAllocate(), and TYYYRawEvent().

Double_t* TYYYRawEvent::fdData [private]
 

Definition at line 75 of file TYYYRawEvent.h.

Referenced by TYYYEventSource::BuildYYYEvent(), Clear(), PrintEvent(), ReAllocate(), TYYYRawEvent(), TYYYUnpackProc::YYYUnpack(), and ~TYYYRawEvent().

TYYYEventSource* TYYYRawEvent::fxUserSource [private]
 

points to mbssource if exists

Definition at line 78 of file TYYYRawEvent.h.

Referenced by Fill(), and Init().

TGo4TreeSource* TYYYRawEvent::fxTreeSource [private]
 

points to treesource if exists

Definition at line 81 of file TYYYRawEvent.h.

Referenced by Fill(), and Init().

TGo4FileSource* TYYYRawEvent::fxFileSource [private]
 

points to filesource if exists

Definition at line 84 of file TYYYRawEvent.h.

Referenced by Fill(), and Init().


The documentation for this class was generated from the following files:
Generated on Fri Nov 28 13:01:28 2008 for Go4-v3.04-1 by  doxygen 1.4.2