Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 Methods

 TYYYRawEvent ()
 TYYYRawEvent (const Text_t *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. More...

virtual Int_t Init ()
 Method called on initialization of event classes. More...

virtual void Clear (Option_t *t="")
 Method called by the event owner (analysis step) to clear the event element. More...

void ReAllocate (Int_t newsize)
 Expand data field if necessary. More...

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

Int_t GetColumns ()

Private Attributes

Int_t fiColumns
Double_t * fdData
TYYYEventSourcefxUserSource
 points to mbssource if exists. More...

TGo4TreeSourcefxTreeSource
 points to treesource if exists. More...

TGo4FileSourcefxFileSource
 points to filesource if exists. More...


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 36 of file TYYYRawEvent.h.


Constructor & Destructor Documentation

TYYYRawEvent::TYYYRawEvent  
 

Definition at line 24 of file TYYYRawEvent.cxx.

References fdData, and fiColumns.

TYYYRawEvent::TYYYRawEvent const Text_t *    name
 

Definition at line 32 of file TYYYRawEvent.cxx.

References fdData, and fiColumns.

TYYYRawEvent::~TYYYRawEvent   [virtual]
 

Definition at line 40 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 47 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 107 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 139 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 148 of file TYYYRawEvent.cxx.

References fdData, fiColumns, and i.

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   [inline]
 

Definition at line 77 of file TYYYRawEvent.h.

References fiColumns.

Referenced by TYYYAnalysis::UserEventFunc().


Friends And Related Function Documentation

friend class TYYYEventSource [friend]
 

Definition at line 38 of file TYYYRawEvent.h.

friend class TYYYUnpackProc [friend]
 

Definition at line 39 of file TYYYRawEvent.h.


Member Data Documentation

Int_t TYYYRawEvent::fiColumns [private]
 

Definition at line 86 of file TYYYRawEvent.h.

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

Double_t* TYYYRawEvent::fdData [private]
 

Definition at line 88 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 92 of file TYYYRawEvent.h.

Referenced by Fill(), and Init().

TGo4TreeSource* TYYYRawEvent::fxTreeSource [private]
 

points to treesource if exists.

Definition at line 97 of file TYYYRawEvent.h.

Referenced by Fill(), and Init().

TGo4FileSource* TYYYRawEvent::fxFileSource [private]
 

points to filesource if exists.

Definition at line 102 of file TYYYRawEvent.h.

Referenced by Fill(), and Init().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:57:01 2005 for Go4-v2.10-5 by doxygen1.2.15