Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4EventProcessor Class Reference

Abstract Factory used by the top level user event to unpack the raw event into subevents or detector information. More...

#include <TGo4EventProcessor.h>

Inheritance diagram for TGo4EventProcessor:

TGo4EventSource TGo4SimpleEventProcessor TMeshB12AnlProc TMeshB1AnlProc TMeshB2AnlProc TMeshB3AnlProc TMeshFinalProc TMeshProviderProc TMeshUnpackProc TXXXAnlProc TXXXProc TXXXProc TXXXUnpackProc TYYYUnpackProc List of all members.

Public Methods

 TGo4EventProcessor (const char *name)
 ~TGo4EventProcessor ()
void SetInputEvent (TGo4EventElement *raw)
 Sets reference to external raw event which is used by the concrete processor to unpack the interesting information. More...

TGo4EventElementGetInputEvent ()
 Access to external raw event which is set as association member. More...

virtual Bool_t CheckInputEvent (const char *classname)
 Check if input event is valid. More...

void SetCalibration (TGo4EventCalibration *cali)
 Sets reference to external raw event which is used by the concrete processor to unpack the interesting information. More...

TGo4EventCalibrationGetCalibration ()
 Access to external calibration object. More...

virtual Bool_t CheckCalibration (const char *classname)
 Check if calibration class is valid. More...

Bool_t AddObject (TNamed *anything, const Text_t *subfolder=0)
 Register user object to go4 framework. More...

Bool_t AddHistogram (TH1 *his, const Text_t *subfolder=0, Bool_t replace=kTRUE)
 Register histogram to go4 framework. More...

Bool_t AddParameter (TGo4Parameter *par, const Text_t *subfolder=0)
 Register paramter to go4 framework. More...

Bool_t AddAnalysisCondition (TGo4Condition *con, const Text_t *subfolder=0)
 Register condition to go4 framework. More...

Bool_t AddPicture (TGo4Picture *pic, const Text_t *subfolder=0)
 Register picture to go4 framework. More...

Bool_t AddCanvas (TCanvas *can, const Text_t *subfolder=0)
 Register TCanvas to go4 framework. More...

Bool_t RemoveHistogram (const Text_t *name)
 UnRegister histogram from go4 framework and delete it. More...

Bool_t RemoveParameter (const Text_t *name)
 UnRegister parameter from go4 framework and delete it. More...

Bool_t RemoveAnalysisCondition (const Text_t *name)
 UnRegister condition from go4 framework and delete it. More...

Bool_t RemovePicture (const Text_t *name)
 UnRegister picture from go4 framework and delete it. More...

Bool_t RemoveCanvas (const Text_t *name)
 UnRegister canvas from go4 framework and delete it. More...

TNamed * GetObject (const Text_t *name, const Text_t *folder=0)
 Get any object from go4 framework. More...

TH1 * GetHistogram (const Text_t *name)
 Get histogram from go4 framework. More...

TGo4ParameterGetParameter (const Text_t *name)
 Get paramter from go4 framework. More...

TGo4ConditionGetAnalysisCondition (const Text_t *name)
 Get condition from go4 framework. More...

TGo4PictureGetPicture (const Text_t *name)
 Get picture from go4 framework. More...

TCanvas * GetCanvas (const Text_t *name)
 Get TCanvas from go4 framework. More...

TGo4EventElementGetInputEvent (const Text_t *stepname)
 Returns the input event structure of analysis step. More...

TGo4EventElementGetOutputEvent (const Text_t *stepname)
 Returns the output event structure of analysis step. More...

void Message (Int_t prio, const Text_t *text,...)
 Display a user message. More...

void SendObjectToGUI (TNamed *ob)
 Send any object as copy to gui. More...

virtual void Clear (Option_t *opt="")

Private Methods

 TGo4EventProcessor ()
 Default ctor for root streamer. More...


Private Attributes

TGo4EventElementfxInputEvent
 @supplierCardinality 1. More...

TGo4EventCalibrationfxCalibration
  More...


Friends

class TGo4EventElement

Detailed Description

Abstract Factory used by the top level user event to unpack the raw event into subevents or detector information.

Factory method implementations are user specific; there might be more than one factory method in this class, each dedicated for one special subevent. Default factory method is CreateSubElement @interface

Author:
J. Adamczewski
Since:
1/2001

Definition at line 39 of file TGo4EventProcessor.h.


Constructor & Destructor Documentation

TGo4EventProcessor::TGo4EventProcessor const char *    name
 

Definition at line 25 of file TGo4EventProcessor.cxx.

References TRACE.

TGo4EventProcessor::~TGo4EventProcessor  
 

Definition at line 31 of file TGo4EventProcessor.cxx.

References TRACE.

TGo4EventProcessor::TGo4EventProcessor   [inline, private]
 

Default ctor for root streamer.

Definition at line 189 of file TGo4EventProcessor.h.


Member Function Documentation

void TGo4EventProcessor::SetInputEvent TGo4EventElement   raw [inline]
 

Sets reference to external raw event which is used by the concrete processor to unpack the interesting information.

Definition at line 54 of file TGo4EventProcessor.h.

References fxInputEvent.

Referenced by main(), TGo4AnalysisStep::NewEventProcessor(), TGo4AnalysisStep::Process(), and TMeshProviderProc::SetRealInput().

TGo4EventElement* TGo4EventProcessor::GetInputEvent   [inline]
 

Access to external raw event which is set as association member.

Definition at line 62 of file TGo4EventProcessor.h.

References fxInputEvent.

Referenced by TMeshFinalProc::Analysis(), TMeshB3AnlProc::Analysis(), TMeshB2AnlProc::Analysis(), TMeshB1AnlProc::Analysis(), TMeshB12AnlProc::Analysis(), TGo4SimpleEventProcessor::BuildSimpleEvent(), TXXXProc::Event(), TGo4AnalysisStepManager::GetInputEvent(), TMeshProviderProc::SetRealInput(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), TXXXAnlProc::XXXEventAnalysis(), TXXXUnpackProc::XXXUnpack(), and TYYYUnpackProc::YYYUnpack().

Bool_t TGo4EventProcessor::CheckInputEvent const char *    classname [virtual]
 

Check if input event is valid.

Tests the pointer for zero, and if not zero, compares classname of the input event with given string. To be used from the Fill method and from the analysis method init event classes.

Definition at line 36 of file TGo4EventProcessor.cxx.

References fxInputEvent, and TRACE.

void TGo4EventProcessor::SetCalibration TGo4EventCalibration   cali [inline]
 

Sets reference to external raw event which is used by the concrete processor to unpack the interesting information.

Definition at line 80 of file TGo4EventProcessor.h.

References fxCalibration.

TGo4EventCalibration* TGo4EventProcessor::GetCalibration   [inline]
 

Access to external calibration object.

Definition at line 88 of file TGo4EventProcessor.h.

References fxCalibration.

Referenced by TGo4AnalysisStep::StoreCalibration().

Bool_t TGo4EventProcessor::CheckCalibration const char *    classname [virtual]
 

Check if calibration class is valid.

Tests the pointer for zero, and if not zero, compares classname of the calibration instance with given string. To be used from the Fill method and from the analysis method init event classes.

Definition at line 58 of file TGo4EventProcessor.cxx.

References fxCalibration, and TRACE.

Bool_t TGo4EventProcessor::AddObject TNamed *    anything,
const Text_t *    subfolder = 0
 

Register user object to go4 framework.

Shortcut forwarded to analysis instance

Definition at line 78 of file TGo4EventProcessor.cxx.

References TGo4Analysis::AddObject(), and TGo4Analysis::Instance().

Referenced by TXXXAnlProc::TXXXAnlProc().

Bool_t TGo4EventProcessor::AddHistogram TH1 *    his,
const Text_t *    subfolder = 0,
Bool_t    replace = kTRUE
 

Register histogram to go4 framework.

Shortcut forwarded to analysis instance

Definition at line 83 of file TGo4EventProcessor.cxx.

References TGo4Analysis::AddHistogram(), and TGo4Analysis::Instance().

Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

Bool_t TGo4EventProcessor::AddParameter TGo4Parameter   par,
const Text_t *    subfolder = 0
 

Register paramter to go4 framework.

Shortcut forwarded to analysis instance

Definition at line 88 of file TGo4EventProcessor.cxx.

References TGo4Analysis::AddParameter(), and TGo4Analysis::Instance().

Referenced by TXXXAnlProc::TXXXAnlProc(), and TXXXProc::TXXXProc().

Bool_t TGo4EventProcessor::AddAnalysisCondition TGo4Condition   con,
const Text_t *    subfolder = 0
 

Register condition to go4 framework.

Shortcut forwarded to analysis instance

Definition at line 104 of file TGo4EventProcessor.cxx.

References TGo4Analysis::AddAnalysisCondition(), and TGo4Analysis::Instance().

Referenced by TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

Bool_t TGo4EventProcessor::AddPicture TGo4Picture   pic,
const Text_t *    subfolder = 0
 

Register picture to go4 framework.

Shortcut forwarded to analysis instance

Definition at line 93 of file TGo4EventProcessor.cxx.

References TGo4Analysis::AddPicture(), and TGo4Analysis::Instance().

Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().

Bool_t TGo4EventProcessor::AddCanvas TCanvas *    can,
const Text_t *    subfolder = 0
 

Register TCanvas to go4 framework.

Shortcut forwarded to analysis instance

Definition at line 98 of file TGo4EventProcessor.cxx.

References TGo4Analysis::AddCanvas(), and TGo4Analysis::Instance().

Bool_t TGo4EventProcessor::RemoveHistogram const Text_t *    name
 

UnRegister histogram from go4 framework and delete it.

Shortcut forwarded to analysis instance

Definition at line 109 of file TGo4EventProcessor.cxx.

References TGo4Analysis::Instance(), and TGo4Analysis::RemoveHistogram().

Bool_t TGo4EventProcessor::RemoveParameter const Text_t *    name
 

UnRegister parameter from go4 framework and delete it.

Shortcut forwarded to analysis instance

Definition at line 114 of file TGo4EventProcessor.cxx.

References TGo4Analysis::Instance(), and TGo4Analysis::RemoveParameter().

Bool_t TGo4EventProcessor::RemoveAnalysisCondition const Text_t *    name
 

UnRegister condition from go4 framework and delete it.

Shortcut forwarded to analysis instance

Definition at line 129 of file TGo4EventProcessor.cxx.

References TGo4Analysis::Instance(), and TGo4Analysis::RemoveAnalysisCondition().

Bool_t TGo4EventProcessor::RemovePicture const Text_t *    name
 

UnRegister picture from go4 framework and delete it.

Shortcut forwarded to analysis instance

Definition at line 119 of file TGo4EventProcessor.cxx.

References TGo4Analysis::Instance(), and TGo4Analysis::RemovePicture().

Bool_t TGo4EventProcessor::RemoveCanvas const Text_t *    name
 

UnRegister canvas from go4 framework and delete it.

Shortcut forwarded to analysis instance

Definition at line 124 of file TGo4EventProcessor.cxx.

References TGo4Analysis::Instance(), and TGo4Analysis::RemoveCanvas().

TNamed * TGo4EventProcessor::GetObject const Text_t *    name,
const Text_t *    folder = 0
 

Get any object from go4 framework.

Shortcut forwarded to analysis instance

Definition at line 134 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetObject(), and TGo4Analysis::Instance().

Referenced by TXXXAnlProc::TXXXAnlProc().

TH1 * TGo4EventProcessor::GetHistogram const Text_t *    name
 

Get histogram from go4 framework.

Shortcut forwarded to analysis instance

Definition at line 140 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetHistogram(), and TGo4Analysis::Instance().

Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

TGo4Parameter * TGo4EventProcessor::GetParameter const Text_t *    name
 

Get paramter from go4 framework.

Shortcut forwarded to analysis instance

Definition at line 145 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetParameter(), and TGo4Analysis::Instance().

Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

TGo4Condition * TGo4EventProcessor::GetAnalysisCondition const Text_t *    name
 

Get condition from go4 framework.

Shortcut forwarded to analysis instance

Definition at line 160 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetAnalysisCondition(), and TGo4Analysis::Instance().

Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().

TGo4Picture * TGo4EventProcessor::GetPicture const Text_t *    name
 

Get picture from go4 framework.

Shortcut forwarded to analysis instance

Definition at line 150 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetPicture(), and TGo4Analysis::Instance().

Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().

TCanvas * TGo4EventProcessor::GetCanvas const Text_t *    name
 

Get TCanvas from go4 framework.

Shortcut forwarded to analysis instance

Definition at line 155 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetCanvas(), and TGo4Analysis::Instance().

TGo4EventElement * TGo4EventProcessor::GetInputEvent const Text_t *    stepname
 

Returns the input event structure of analysis step.

Argument indicates the step by name. Shortcut forwarded to analysis instance

Definition at line 165 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetInputEvent(), and TGo4Analysis::Instance().

TGo4EventElement * TGo4EventProcessor::GetOutputEvent const Text_t *    stepname
 

Returns the output event structure of analysis step.

Argument indicates the step by name. Shortcut forwarded to analysis instance

Definition at line 170 of file TGo4EventProcessor.cxx.

References TGo4Analysis::GetOutputEvent(), and TGo4Analysis::Instance().

void TGo4EventProcessor::Message Int_t    prio,
const Text_t *    text,
...   
 

Display a user message.

Argument pri defines message priority: <0: display raw text on local terminal like plain printf 0: display on local terminal only; if debug output is enabled 1: local terminal and info message in gui log panel (if gui mode) 2: local terminal and warning message in gui log panel (if gui mode) 3: local terminal and error message in gui log panel (if gui mode)

Definition at line 175 of file TGo4EventProcessor.cxx.

References __MESSAGETEXTLENGTH__, TGo4Analysis::Instance(), and TGo4Analysis::Message().

void TGo4EventProcessor::SendObjectToGUI TNamed *    ob
 

Send any object as copy to gui.

Shortcut forwarded to analysis instance

Definition at line 185 of file TGo4EventProcessor.cxx.

References TGo4Analysis::Instance(), and TGo4Analysis::SendObjectToGUI().

void TGo4EventProcessor::Clear Option_t *    opt = "" [virtual]
 

Reimplemented from TGo4EventSource.

Definition at line 191 of file TGo4EventProcessor.cxx.


Friends And Related Function Documentation

friend class TGo4EventElement [friend]
 

Definition at line 40 of file TGo4EventProcessor.h.


Member Data Documentation

TGo4EventElement* TGo4EventProcessor::fxInputEvent [private]
 

@supplierCardinality 1.

Definition at line 192 of file TGo4EventProcessor.h.

Referenced by CheckInputEvent(), GetInputEvent(), and SetInputEvent().

TGo4EventCalibration* TGo4EventProcessor::fxCalibration [private]
 

Definition at line 195 of file TGo4EventProcessor.h.

Referenced by CheckCalibration(), GetCalibration(), and SetCalibration().


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