Public Member Functions | Protected Member Functions | Private Attributes | Friends

TGo4EventProcessor Class Reference

#include <TGo4EventProcessor.h>

Inheritance diagram for TGo4EventProcessor:
TGo4EventSource TGo4CompositeProcessor TGo4PrintProcessor TGo4SimpleEventProcessor TMeshB12AnlProc TMeshB1AnlProc TMeshB2AnlProc TMeshB3AnlProc TMeshFinalProc TMeshProviderProc TMeshUnpackProc TXXXAnlProc TXXXAnlProc TXXXProc TXXXProc TXXXUnpackProc TXXXUnpackProc TYYYUnpackProc

List of all members.

Public Member Functions

 TGo4EventProcessor (const char *name)
virtual ~TGo4EventProcessor ()
void SetInputEvent (TGo4EventElement *raw)
TGo4EventElementGetInputEvent ()
virtual Bool_t CheckInputEvent (const char *classname)
void SetCalibration (TGo4EventCalibration *cali)
TGo4EventCalibrationGetCalibration ()
virtual Bool_t CheckCalibration (const char *classname)
virtual void InitEvent (TGo4EventElement *)
virtual void FinalizeEvent ()
Bool_t AddObject (TNamed *anything, const char *subfolder=0)
Bool_t AddHistogram (TH1 *his, const char *subfolder=0, Bool_t replace=kTRUE)
Bool_t AddParameter (TGo4Parameter *par, const char *subfolder=0)
Bool_t AddAnalysisCondition (TGo4Condition *con, const char *subfolder=0)
Bool_t AddPicture (TGo4Picture *pic, const char *subfolder=0)
Bool_t AddCanvas (TCanvas *can, const char *subfolder=0)
Bool_t RemoveHistogram (const char *name)
Bool_t RemoveParameter (const char *name)
Bool_t RemoveAnalysisCondition (const char *name)
Bool_t RemovePicture (const char *name)
Bool_t RemoveCanvas (const char *name)
TNamed * GetObject (const char *name, const char *folder=0)
TH1 * GetHistogram (const char *name)
TGo4ParameterGetParameter (const char *name, const char *par_class=0)
TGo4ConditionGetAnalysisCondition (const char *name, const char *cond_cl=0)
TGo4PictureGetPicture (const char *name)
TCanvas * GetCanvas (const char *name)
TGo4EventElementGetInputEvent (const char *stepname)
TGo4EventElementGetOutputEvent (const char *stepname)
void Message (Int_t prio, const char *text,...)
void SendObjectToGUI (TNamed *ob)
virtual void Clear (Option_t *opt="")
void SetMakeWithAutosave (Bool_t on=kTRUE)
Bool_t IsObjMade ()
TH1 * MakeTH1 (char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, const char *xtitle=0, const char *ytitle=0)
TH2 * MakeTH2 (char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup, const char *xtitle=0, const char *ytitle=0, const char *ztitle=0)
TGo4WinCondMakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=0)
TGo4WinCondMakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, const char *HistoName=0)
TGo4PolyCondMakePolyCond (const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0)
TGo4ParameterMakeParameter (const char *fullname, const char *classname, const char *newcmd=0)
Long_t ExecuteScript (const char *script_name)
Bool_t IsKeepInputEvent ()
void SetKeepInputEvent (Bool_t val=kTRUE)
Bool_t IsKeepOutputEvent ()
void SetKeepOutputEvent (Bool_t val=kTRUE)
virtual void UserPreLoop ()
virtual void UserPostLoop ()

Protected Member Functions

 TGo4EventProcessor ()

Private Attributes

TGo4EventElementfxInputEvent
TGo4EventCalibrationfxCalibration
Bool_t fbKeepInputEvent
Bool_t fbKeepOutputEvent

Friends

class TGo4EventElement

Detailed Description

Definition at line 58 of file TGo4EventProcessor.h.


Constructor & Destructor Documentation

TGo4EventProcessor::TGo4EventProcessor ( const char *  name  ) 

Definition at line 33 of file TGo4EventProcessor.cxx.

References GO4TRACE.

TGo4EventProcessor::~TGo4EventProcessor (  )  [virtual]

Definition at line 43 of file TGo4EventProcessor.cxx.

References GO4TRACE.

TGo4EventProcessor::TGo4EventProcessor (  )  [inline, protected]

Default ctor for root streamer.

Definition at line 330 of file TGo4EventProcessor.h.


Member Function Documentation

Bool_t TGo4EventProcessor::AddAnalysisCondition ( TGo4Condition con,
const char *  subfolder = 0 
)

Register condition to go4 framework. Shortcut forwarded to analysis instance

Definition at line 89 of file TGo4EventProcessor.cxx.

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

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

Bool_t TGo4EventProcessor::AddCanvas ( TCanvas *  can,
const char *  subfolder = 0 
)

Register TCanvas to go4 framework. Shortcut forwarded to analysis instance

Definition at line 84 of file TGo4EventProcessor.cxx.

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

Referenced by TYYYUnpackProc::TYYYUnpackProc().

Bool_t TGo4EventProcessor::AddHistogram ( TH1 *  his,
const char *  subfolder = 0,
Bool_t  replace = kTRUE 
)

Register histogram to go4 framework. Shortcut forwarded to analysis instance

Definition at line 69 of file TGo4EventProcessor.cxx.

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

Bool_t TGo4EventProcessor::AddObject ( TNamed *  anything,
const char *  subfolder = 0 
)

Register user object to go4 framework. Shortcut forwarded to analysis instance

Definition at line 64 of file TGo4EventProcessor.cxx.

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

Referenced by TXXXUnpackProc::TXXXUnpackProc().

Bool_t TGo4EventProcessor::AddParameter ( TGo4Parameter par,
const char *  subfolder = 0 
)

Register parameter to go4 framework. Shortcut forwarded to analysis instance

Definition at line 74 of file TGo4EventProcessor.cxx.

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

Bool_t TGo4EventProcessor::AddPicture ( TGo4Picture pic,
const char *  subfolder = 0 
)

Register picture to go4 framework. Shortcut forwarded to analysis instance

Definition at line 79 of file TGo4EventProcessor.cxx.

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

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

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 56 of file TGo4EventProcessor.cxx.

References fxCalibration, and GO4TRACE.

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 48 of file TGo4EventProcessor.cxx.

References fxInputEvent, and GO4TRACE.

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

Reimplemented from TGo4EventSource.

Definition at line 174 of file TGo4EventProcessor.cxx.

References TGo4Log::Info().

Long_t TGo4EventProcessor::ExecuteScript ( const char *  script_name  ) 

Executes ROOT script. Returns -1 when script was not found or result of script execution

Definition at line 244 of file TGo4EventProcessor.cxx.

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

Referenced by TXXXProc::TXXXProc().

virtual void TGo4EventProcessor::FinalizeEvent (  )  [inline, virtual]

Reimplemented in TGo4CompositeProcessor.

Definition at line 111 of file TGo4EventProcessor.h.

Referenced by TGo4CompositeProcessor::BuildEvent().

TGo4Condition * TGo4EventProcessor::GetAnalysisCondition ( const char *  name,
const char *  cond_cl = 0 
)

Get condition from go4 framework. Shortcut forwarded to analysis instance

Definition at line 144 of file TGo4EventProcessor.cxx.

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

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

TGo4EventCalibration* TGo4EventProcessor::GetCalibration (  )  [inline]

Access to external calibration object.

Definition at line 97 of file TGo4EventProcessor.h.

References fxCalibration.

Referenced by TGo4AnalysisStep::StoreCalibration().

TCanvas * TGo4EventProcessor::GetCanvas ( const char *  name  ) 

Get TCanvas from go4 framework. Shortcut forwarded to analysis instance

Definition at line 139 of file TGo4EventProcessor.cxx.

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

Referenced by TYYYUnpackProc::TYYYUnpackProc().

TH1 * TGo4EventProcessor::GetHistogram ( const char *  name  ) 

Get histogram from go4 framework. Shortcut forwarded to analysis instance

Definition at line 124 of file TGo4EventProcessor.cxx.

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

TGo4EventElement * TGo4EventProcessor::GetInputEvent ( const char *  stepname  ) 

Returns the input event structure of analysis step. Argument indicates the step by name. Shortcut forwarded to analysis instance

Definition at line 149 of file TGo4EventProcessor.cxx.

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

TNamed * TGo4EventProcessor::GetObject ( const char *  name,
const char *  folder = 0 
)

Get any object from go4 framework. Shortcut forwarded to analysis instance

Definition at line 119 of file TGo4EventProcessor.cxx.

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

TGo4EventElement * TGo4EventProcessor::GetOutputEvent ( const char *  stepname  ) 

Returns the output event structure of analysis step. Argument indicates the step by name. Shortcut forwarded to analysis instance

Definition at line 154 of file TGo4EventProcessor.cxx.

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

TGo4Parameter * TGo4EventProcessor::GetParameter ( const char *  name,
const char *  par_class = 0 
)

Get parameter from go4 framework. Shortcut forwarded to analysis instance

Definition at line 129 of file TGo4EventProcessor.cxx.

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

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

TGo4Picture * TGo4EventProcessor::GetPicture ( const char *  name  ) 

Get picture from go4 framework. Shortcut forwarded to analysis instance

Definition at line 134 of file TGo4EventProcessor.cxx.

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

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

virtual void TGo4EventProcessor::InitEvent ( TGo4EventElement  )  [inline, virtual]

Reimplemented in TGo4CompositeProcessor.

Definition at line 108 of file TGo4EventProcessor.h.

Referenced by TGo4CompositeProcessor::BuildEvent().

Bool_t TGo4EventProcessor::IsKeepInputEvent (  )  [inline]
Bool_t TGo4EventProcessor::IsKeepOutputEvent (  )  [inline]
Bool_t TGo4EventProcessor::IsObjMade (  ) 

Returns kTRUE if object in last Make... call was created, kFALSE when object was retrieved from autosavefile

Definition at line 185 of file TGo4EventProcessor.cxx.

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

Referenced by TYYYUnpackProc::TYYYUnpackProc().

TGo4Parameter * TGo4EventProcessor::MakeParameter ( const char *  fullname,
const char *  classname,
const char *  newcmd = 0 
)

Create parameter of specified class, fullname specifies name of condition (optionally with subfolder name) classname - name of required parameter class, it should be known to ROOT. cmd - optional argument, can be used for two purposes: 1) as new command to create parameter like "new UserParameter(%s, 1000, 2000)", where s is place for parameter name. Should be specified, if parameter constructor contains more parameters as only parameter name. Such argument should be always started with 'new ' command. 2) macro name to set parameter value. Macro executed immediately after parameter creation (or loading from auto-save file) and thus overwrites parameters value. Macro name should be always starting with "set_" like "set_RocPar.C"

Definition at line 237 of file TGo4EventProcessor.cxx.

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

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

TGo4PolyCond * TGo4EventProcessor::MakePolyCond ( const char *  fullname,
Int_t  npoints,
Double_t(*)  points[2],
const char *  HistoName = 0 
)

Create polygon condition. fullname specifies name of condition (optionally with subfolder name) npoints - number of points in in polygon condition points - (X,Y) points HistoName - name of histogram, to which condition is assigned To use method, array should be declared as following: Double_t points[4][2] = { {10, 0}, {10, 10}, {5, 15}, {5, 5} }; cond = MakePolyCond("Folder/CondName", 4, points);

Definition at line 229 of file TGo4EventProcessor.cxx.

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

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

TH1 * TGo4EventProcessor::MakeTH1 ( char  type,
const char *  fullname,
const char *  title,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup,
const char *  xtitle = 0,
const char *  ytitle = 0 
)

Create one dimensional histogram of specified type. Type can be: 'I', 'i' for TH1I - Int_t as bin content (default) 'F', 'f' for TH1F - Float_t as bin content 'D', 'd' for TH1D - Double_t as bin content 'S', 's' for TH1S - Short_t as bin content 'C', 'c' for TH1C - Char_t as bin content fullname specifies name of histogram (optionally with subfolder name) title - histogram title nbinsx, xlow, xup - range arguments for X axis xtitle, ytitle - title for X and Y axis of histogram If histogram exactly with same name and type already exists in autosave file, it will be return. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.

Definition at line 191 of file TGo4EventProcessor.cxx.

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

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

TH2 * TGo4EventProcessor::MakeTH2 ( char  type,
const char *  fullname,
const char *  title,
Int_t  nbinsx,
Double_t  xlow,
Double_t  xup,
Int_t  nbinsy,
Double_t  ylow,
Double_t  yup,
const char *  xtitle = 0,
const char *  ytitle = 0,
const char *  ztitle = 0 
)

Create two dimensional histogram of specified type. Type can be: 'I', 'i' for TH2I - Int_t as bin content (default) 'F', 'f' for TH2F - Float_t as bin content 'D', 'd' for TH2D - Double_t as bin content 'S', 's' for TH2S - Short_t as bin content 'C', 'c' for TH1C - Char_t as bin content fullname specifies name of histogram (optionally with subfolder name) title - histogram title nbinsx, xlow, xup - range arguments for X axis nbinsy, ylow, yup - range arguments for Y axis xtitle, ytitle, ztitle - title for X, Y and Z axis of histogram If histogram exactly with same name and type already exists in autosave file, it will be return. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.

Definition at line 200 of file TGo4EventProcessor.cxx.

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

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

TGo4WinCond * TGo4EventProcessor::MakeWinCond ( const char *  fullname,
Double_t  xmin,
Double_t  xmax,
const char *  HistoName = 0 
)

Create 1D window condition. fullname specifies name of condition (optionally with subfolder name) xmin, xmax - condition range HistoName - name of histogram, to which condition is assigned

Definition at line 211 of file TGo4EventProcessor.cxx.

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

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

TGo4WinCond * TGo4EventProcessor::MakeWinCond ( const char *  fullname,
Double_t  xmin,
Double_t  xmax,
Double_t  ymin,
Double_t  ymax,
const char *  HistoName = 0 
)

Create 2D window condition. fullname specifies name of condition (optionally with subfolder name) xmin, xmax - X condition range ymin, ymax - Y condition range HistoName - name of histogram, to which condition is assigned

Definition at line 218 of file TGo4EventProcessor.cxx.

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

void TGo4EventProcessor::Message ( Int_t  prio,
const char *  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 159 of file TGo4EventProcessor.cxx.

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

Bool_t TGo4EventProcessor::RemoveAnalysisCondition ( const char *  name  ) 

UnRegister condition from go4 framework and delete it. Shortcut forwarded to analysis instance

Definition at line 114 of file TGo4EventProcessor.cxx.

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

Bool_t TGo4EventProcessor::RemoveCanvas ( const char *  name  ) 

UnRegister canvas from go4 framework and delete it. Shortcut forwarded to analysis instance

Definition at line 109 of file TGo4EventProcessor.cxx.

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

Bool_t TGo4EventProcessor::RemoveHistogram ( const char *  name  ) 

UnRegister histogram from go4 framework and delete it. Shortcut forwarded to analysis instance

Definition at line 94 of file TGo4EventProcessor.cxx.

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

Referenced by TXXXUnpackProc::CreateRawHsitograms().

Bool_t TGo4EventProcessor::RemoveParameter ( const char *  name  ) 

UnRegister parameter from go4 framework and delete it. Shortcut forwarded to analysis instance

Definition at line 99 of file TGo4EventProcessor.cxx.

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

Bool_t TGo4EventProcessor::RemovePicture ( const char *  name  ) 

UnRegister picture from go4 framework and delete it. Shortcut forwarded to analysis instance

Definition at line 104 of file TGo4EventProcessor.cxx.

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

void TGo4EventProcessor::SendObjectToGUI ( TNamed *  ob  ) 

Send any object as copy to gui. Shortcut forwarded to analysis instance

Definition at line 169 of file TGo4EventProcessor.cxx.

References TGo4Analysis::Instance().

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 92 of file TGo4EventProcessor.h.

References fxCalibration.

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 72 of file TGo4EventProcessor.h.

References fxInputEvent.

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

void TGo4EventProcessor::SetKeepInputEvent ( Bool_t  val = kTRUE  )  [inline]

Definition at line 302 of file TGo4EventProcessor.h.

References fbKeepInputEvent.

void TGo4EventProcessor::SetKeepOutputEvent ( Bool_t  val = kTRUE  )  [inline]

Definition at line 316 of file TGo4EventProcessor.h.

References fbKeepOutputEvent.

void TGo4EventProcessor::SetMakeWithAutosave ( Bool_t  on = kTRUE  ) 

Set flag to use data from autosave file in Make... methods (default true)

Definition at line 180 of file TGo4EventProcessor.cxx.

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

virtual void TGo4EventProcessor::UserPostLoop (  )  [inline, virtual]

Method called when analysis is stopping

Definition at line 325 of file TGo4EventProcessor.h.

Referenced by TGo4Analysis::PostLoop().

virtual void TGo4EventProcessor::UserPreLoop (  )  [inline, virtual]

Method called when analysis is created

Definition at line 322 of file TGo4EventProcessor.h.

Referenced by TGo4Analysis::PreLoop().


Friends And Related Function Documentation

friend class TGo4EventElement [friend]

Definition at line 59 of file TGo4EventProcessor.h.


Member Data Documentation

flag to steer reprocessing of same input event

Definition at line 341 of file TGo4EventProcessor.h.

Referenced by IsKeepInputEvent(), and SetKeepInputEvent().

flag to steer continue filling of same output event

Definition at line 344 of file TGo4EventProcessor.h.

Referenced by IsKeepOutputEvent(), and SetKeepOutputEvent().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines