GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
Abstract event processor. More...
#include <TGo4EventProcessor.h>
Public Member Functions | |
TGo4EventProcessor (const char *name) | |
virtual | ~TGo4EventProcessor () |
Bool_t | AddAnalysisCondition (TGo4Condition *con, const char *subfolder=nullptr) |
Register condition to go4 framework. | |
Bool_t | AddCanvas (TCanvas *can, const char *subfolder=nullptr) |
Register TCanvas to go4 framework. | |
Bool_t | AddHistogram (TH1 *his, const char *subfolder=nullptr, Bool_t replace=kTRUE) |
Register histogram to go4 framework. | |
Bool_t | AddObject (TNamed *anything, const char *subfolder=nullptr) |
Register user object to go4 framework. | |
Bool_t | AddParameter (TGo4Parameter *par, const char *subfolder=nullptr) |
Register parameter to go4 framework. | |
Bool_t | AddPicture (TGo4Picture *pic, const char *subfolder=nullptr) |
Register picture to go4 framework. | |
virtual Bool_t | CheckCalibration (const char *classname) |
Check if calibration class is valid. | |
virtual Bool_t | CheckInputEvent (const char *classname) |
Check if input event is valid. | |
void | Clear (Option_t *opt="") override |
Long64_t | ExecuteLine (const char *command, Int_t *errcode=nullptr) |
Process ROOT command line. | |
Long64_t | ExecutePython (const char *macro_name, Int_t *errcode=nullptr) |
Executes Python script in ROOT interpreter. | |
Long64_t | ExecuteScript (const char *script_name) |
Executes ROOT script. | |
virtual void | FinalizeEvent () |
implemented by subclass to do actual processing. | |
TGo4Condition * | GetAnalysisCondition (const char *name, const char *cond_cl=nullptr) |
Get condition from go4 framework. | |
TGo4EventCalibration * | GetCalibration () const |
Access to external calibration object. | |
TCanvas * | GetCanvas (const char *name) |
Get TCanvas from go4 framework. | |
TH1 * | GetHistogram (const char *name) |
Get histogram from go4 framework. | |
TGo4EventElement * | GetInputEvent () |
Access to external raw event which is set as association member. | |
TGo4EventElement * | GetInputEvent (const char *stepname) |
Returns the input event structure of analysis step. | |
TNamed * | GetObject (const char *name, const char *folder=nullptr) |
Get any object from go4 framework. | |
TGo4EventElement * | GetOutputEvent (const char *stepname) |
Returns the output event structure of analysis step. | |
TGo4Parameter * | GetParameter (const char *name, const char *par_class=nullptr) |
Get parameter from go4 framework. | |
TGo4Picture * | GetPicture (const char *name) |
Get picture from go4 framework. | |
virtual void | InitEvent (TGo4EventElement *) |
implemented by subclass to assign correct event structures | |
Bool_t | IsKeepInputEvent () const |
Is marked to keep input event. | |
Bool_t | IsKeepOutputEvent () const |
Is marked to keep output event. | |
Bool_t | IsObjMade () const |
Returns kTRUE if object in last Make... call was created, kFALSE when object was retrieved from autosavefile. | |
TGo4ShapedCond * | MakeBoxCond (const char *fullname, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta, const char *HistoName=nullptr) |
Create tilted rectangular box shaped polygon condition. | |
TGo4ShapedCond * | MakeCircleCond (const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t r, const char *HistoName=nullptr) |
Create circular shaped polygon condition. | |
TGo4ShapedCond * | MakeEllipseCond (const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0, const char *HistoName=nullptr) |
Create ellipse shaped polygon condition. | |
TGo4ShapedCond * | MakeFreeShapeCond (const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=nullptr) |
Create free shaped (polygon) condition. | |
TGraph * | MakeGraph (const char *fullname, const char *title, Int_t points=0, Double_t *xvalues=nullptr, Double_t *yvalues=nullptr) |
Create a TGraph with initial values as specified by points, xvalues and yvalues. | |
TGraph * | MakeGraph (const char *fullname, const char *title, TF1 *function) |
Create a TGraph with values initialized by a function object TF1l. | |
TGo4ListCond * | MakeListCond (const char *fullname, const char *title, const char *HistoName=nullptr) |
Create "whitlelist" condition with separate values to tes against condition is true if any of the values matches. | |
TGo4ListCond * | MakeListCond (const char *fullname, const Int_t num, const Int_t *values, const char *HistoName=nullptr) |
Create "whitlelist" condition with separate values to test against condition is true if any of the values matches. | |
TGo4ListCond * | MakeListCond (const char *fullname, const Int_t start, const Int_t stop, const Int_t step=1, const char *HistoName=nullptr) |
Create "whitlelist" condition with separate values to test against condition is true if any of the values matches. | |
TGo4Parameter * | MakeParameter (const char *fullname, const char *classname, const char *newcmd=nullptr) |
Create parameter of specified class,. | |
TGo4PolyCond * | MakePolyCond (const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=nullptr) |
Create polygon condition. | |
TGo4RollingGraph * | MakeRollingGraph (const char *fullname, const char *title, Int_t points=0, Int_t average=1) |
Create a go4 rolling graph (generic trending plot) with properties points and average. | |
TH1 * | MakeTH1 (char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, const char *xtitle=nullptr, const char *ytitle=nullptr) |
Create one dimensional histogram of specified type. | |
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=nullptr, const char *ytitle=nullptr, const char *ztitle=nullptr) |
Create two dimensional histogram of specified type. | |
TGo4WinCond * | MakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=nullptr) |
Create 1D window condition. | |
TGo4WinCond * | MakeWinCond (const char *fullname, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, const char *HistoName=nullptr) |
Create 2D window condition. | |
void | Message (Int_t prio, const char *text,...) |
Display a user message. | |
Bool_t | RemoveAnalysisCondition (const char *name) |
UnRegister condition from go4 framework and delete it. | |
Bool_t | RemoveCanvas (const char *name) |
UnRegister canvas from go4 framework and delete it. | |
Bool_t | RemoveHistogram (const char *name) |
UnRegister histogram from go4 framework and delete it. | |
Bool_t | RemoveParameter (const char *name) |
UnRegister parameter from go4 framework and delete it. | |
Bool_t | RemovePicture (const char *name) |
UnRegister picture from go4 framework and delete it. | |
void | SendObjectToGUI (TNamed *ob) |
Send any object as copy to gui. | |
void | SetCalibration (TGo4EventCalibration *cali) |
Sets reference to external raw event which is used by the concrete processor to unpack the interesting information. | |
void | SetInputEvent (TGo4EventElement *raw) |
Sets reference to external raw event which is used by the concrete processor to unpack the interesting information. | |
void | SetKeepInputEvent (Bool_t val=kTRUE) |
Mark current input event for reprocessing in next cycle. | |
void | SetKeepOutputEvent (Bool_t val=kTRUE) |
Mark current input event for reprocessing in next cycle. | |
void | SetMakeWithAutosave (Bool_t on=kTRUE) |
Set flag to use data from autosave file in Make... methods (default true) | |
virtual void | UserPostLoop () |
Method called when analysis is stopping. | |
virtual void | UserPreLoop () |
Method called when analysis is created. | |
![]() | |
TGo4EventSource () | |
TGo4EventSource (const char *name) | |
virtual | ~TGo4EventSource () |
virtual Bool_t | BuildEvent (TGo4EventElement *dest) |
Fill the destination event dest. | |
virtual Bool_t | CheckEventClass (TClass *cl) |
Check that event class is supported by event source. | |
void | Clear (Option_t *opt="") override |
virtual const char * | GetActiveName () const |
Access to the name of the currently active source. | |
Int_t | GetCreateStatus () const |
Status value of server/file open. | |
const char * | GetErrMess () const |
Status/ error message of the last event. | |
Int_t | GetEventStatus () const |
Status of the last event. | |
Protected Member Functions | |
TGo4EventProcessor () | |
![]() | |
void | SetCreateStatus (Int_t status) |
Status value of event source init (file/server open). | |
void | SetErrMess (const char *txt) |
To be used for modification of the message by the event source implementation. | |
void | SetEventStatus (Int_t status) |
Status of the last event. | |
void | ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...) |
EOF thrower. | |
void | ThrowError (Int_t creastat, Int_t errstat, const char *message,...) |
Exception thrower. | |
Private Attributes | |
Bool_t | fbKeepInputEvent {kFALSE} |
flag to steer re-processing of same input event | |
Bool_t | fbKeepOutputEvent {kFALSE} |
flag to steer continue filling of same output event | |
TGo4EventCalibration * | fxCalibration {nullptr} |
aggregation | |
TGo4EventElement * | fxInputEvent {nullptr} |
1 | |
Friends | |
class | TGo4EventElement |
Additional Inherited Members | |
![]() | |
static const Int_t | fgiTIMEOUTDEFAULT =1 |
Default timeout in seconds for event input. | |
![]() | |
enum | { fguTXTLEN = 256 } |
text length More... | |
Abstract event processor.
Also provides number of methods to create histograms and conditions
Definition at line 64 of file TGo4EventProcessor.h.
TGo4EventProcessor::TGo4EventProcessor | ( | const char * | name | ) |
Definition at line 24 of file TGo4EventProcessor.cxx.
References TGo4EventSource::TGo4EventSource(), and GO4TRACE.
Referenced by TGo4CompositeProcessor::TGo4CompositeProcessor(), TGo4CompositeProcessor::TGo4CompositeProcessor(), TGo4PrintProcessor::TGo4PrintProcessor(), TGo4SimpleEventProcessor::TGo4SimpleEventProcessor(), TMeshB12AnlProc::TMeshB12AnlProc(), TMeshB12AnlProc::TMeshB12AnlProc(), TMeshB1AnlProc::TMeshB1AnlProc(), TMeshB1AnlProc::TMeshB1AnlProc(), TMeshB2AnlProc::TMeshB2AnlProc(), TMeshB2AnlProc::TMeshB2AnlProc(), TMeshB3AnlProc::TMeshB3AnlProc(), TMeshB3AnlProc::TMeshB3AnlProc(), TMeshFinalProc::TMeshFinalProc(), TMeshFinalProc::TMeshFinalProc(), TMeshProviderProc::TMeshProviderProc(), TMeshProviderProc::TMeshProviderProc(), TMeshUnpackProc::TMeshUnpackProc(), TMeshUnpackProc::TMeshUnpackProc(), TXXXAnlProc::TXXXAnlProc(), TXXXAnlProc::TXXXAnlProc(), TXXXProc::TXXXProc(), TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), TXXXUnpackProc::TXXXUnpackProc(), TYYYUnpackProc::TYYYUnpackProc(), TYYYUnpackProc::TYYYUnpackProc(), TGo4CompositeProcessor::AddSubProcessor(), and TGo4CompositeProcessor::BuildEvent().
|
virtual |
Definition at line 29 of file TGo4EventProcessor.cxx.
References GO4TRACE.
|
inlineprotected |
Definition at line 470 of file TGo4EventProcessor.h.
Bool_t TGo4EventProcessor::AddAnalysisCondition | ( | TGo4Condition * | con, |
const char * | subfolder = nullptr ) |
Register condition to go4 framework.
Shortcut forwarded to analysis instance
Definition at line 75 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 = nullptr ) |
Register TCanvas to go4 framework.
Shortcut forwarded to analysis instance
Definition at line 70 of file TGo4EventProcessor.cxx.
References TGo4Analysis::AddCanvas(), and TGo4Analysis::Instance().
Referenced by TYYYUnpackProc::TYYYUnpackProc().
Bool_t TGo4EventProcessor::AddHistogram | ( | TH1 * | his, |
const char * | subfolder = nullptr, | ||
Bool_t | replace = kTRUE ) |
Register histogram to go4 framework.
Shortcut forwarded to analysis instance
Definition at line 55 of file TGo4EventProcessor.cxx.
References TGo4Analysis::AddHistogram(), and TGo4Analysis::Instance().
Bool_t TGo4EventProcessor::AddObject | ( | TNamed * | anything, |
const char * | subfolder = nullptr ) |
Register user object to go4 framework.
Shortcut forwarded to analysis instance
Definition at line 50 of file TGo4EventProcessor.cxx.
References TGo4Analysis::AddObject(), and TGo4Analysis::Instance().
Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().
Bool_t TGo4EventProcessor::AddParameter | ( | TGo4Parameter * | par, |
const char * | subfolder = nullptr ) |
Register parameter to go4 framework.
Shortcut forwarded to analysis instance
Definition at line 60 of file TGo4EventProcessor.cxx.
References TGo4Analysis::AddParameter(), and TGo4Analysis::Instance().
Bool_t TGo4EventProcessor::AddPicture | ( | TGo4Picture * | pic, |
const char * | subfolder = nullptr ) |
Register picture to go4 framework.
Shortcut forwarded to analysis instance
Definition at line 65 of file TGo4EventProcessor.cxx.
References TGo4Analysis::AddPicture(), and TGo4Analysis::Instance().
Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().
|
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 42 of file TGo4EventProcessor.cxx.
References fxCalibration, and GO4TRACE.
|
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 34 of file TGo4EventProcessor.cxx.
References fxInputEvent, and GO4TRACE.
|
override |
Definition at line 160 of file TGo4EventProcessor.cxx.
References TGo4Log::Info().
Long64_t TGo4EventProcessor::ExecuteLine | ( | const char * | command, |
Int_t * | errcode = nullptr ) |
Process ROOT command line.
Optionally provide pyroot binding: a leading '$' will try to load and execute python script. Errcode may be used to check ROOT interpreter error code. Return value is result of command execution
Definition at line 303 of file TGo4EventProcessor.cxx.
References TGo4Analysis::ExecuteLine(), and TGo4Analysis::Instance().
Long64_t TGo4EventProcessor::ExecutePython | ( | const char * | macro_name, |
Int_t * | errcode = nullptr ) |
Executes Python script in ROOT interpreter.
Will bind TGo4Analysis object to python go4 Symbol Errcode may be used to check ROOT interpreter error code.
Definition at line 298 of file TGo4EventProcessor.cxx.
References TGo4Analysis::ExecutePython(), and TGo4Analysis::Instance().
Long64_t TGo4EventProcessor::ExecuteScript | ( | const char * | script_name | ) |
Executes ROOT script.
Definition at line 293 of file TGo4EventProcessor.cxx.
References TGo4Analysis::ExecuteScript(), and TGo4Analysis::Instance().
Referenced by TXXXProc::TXXXProc().
|
inlinevirtual |
implemented by subclass to do actual processing.
For second step processors!
Reimplemented in TGo4CompositeProcessor.
Definition at line 119 of file TGo4EventProcessor.h.
Referenced by TGo4CompositeProcessor::BuildEvent().
TGo4Condition * TGo4EventProcessor::GetAnalysisCondition | ( | const char * | name, |
const char * | cond_cl = nullptr ) |
Get condition from go4 framework.
Shortcut forwarded to analysis instance
Definition at line 130 of file TGo4EventProcessor.cxx.
References TGo4Analysis::GetAnalysisCondition(), and TGo4Analysis::Instance().
Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().
|
inline |
Access to external calibration object.
Definition at line 104 of file TGo4EventProcessor.h.
References fxCalibration.
TCanvas * TGo4EventProcessor::GetCanvas | ( | const char * | name | ) |
Get TCanvas from go4 framework.
Shortcut forwarded to analysis instance
Definition at line 125 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 110 of file TGo4EventProcessor.cxx.
References TGo4Analysis::GetHistogram(), and TGo4Analysis::Instance().
|
inline |
Access to external raw event which is set as association member.
Definition at line 83 of file TGo4EventProcessor.h.
References fxInputEvent, and TGo4EventElement.
Referenced by TMeshB12AnlProc::Analysis(), TMeshB1AnlProc::Analysis(), TMeshB2AnlProc::Analysis(), TMeshB3AnlProc::Analysis(), TMeshFinalProc::Analysis(), TGo4CompositeProcessor::BuildEvent(), TGo4PrintProcessor::BuildEvent(), TXXXAnlProc::BuildEvent(), TXXXProc::BuildEvent(), TXXXUnpackProc::BuildEvent(), TYYYUnpackProc::BuildEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), TGo4AnalysisStepManager::GetInputEvent(), TGo4AnalysisStepManager::GetInputEvent(), TMeshProviderProc::SetRealInput(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), and TMeshUnpackProc::UnpackBranch3().
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 135 of file TGo4EventProcessor.cxx.
References TGo4Analysis::GetInputEvent(), TGo4Analysis::Instance(), and TGo4EventElement.
TNamed * TGo4EventProcessor::GetObject | ( | const char * | name, |
const char * | folder = nullptr ) |
Get any object from go4 framework.
Shortcut forwarded to analysis instance
Definition at line 105 of file TGo4EventProcessor.cxx.
References TGo4Analysis::GetObject(), and TGo4Analysis::Instance().
Referenced by TXXXProc::TXXXProc().
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 140 of file TGo4EventProcessor.cxx.
References TGo4Analysis::GetOutputEvent(), TGo4Analysis::Instance(), and TGo4EventElement.
TGo4Parameter * TGo4EventProcessor::GetParameter | ( | const char * | name, |
const char * | par_class = nullptr ) |
Get parameter from go4 framework.
Shortcut forwarded to analysis instance
Definition at line 115 of file TGo4EventProcessor.cxx.
References TGo4Analysis::GetParameter(), and TGo4Analysis::Instance().
Referenced by TXXXProc::TXXXProc(), TYYYUnpackProc::TYYYUnpackProc(), and TXXXUnpackProc::CreateRawHistograms().
TGo4Picture * TGo4EventProcessor::GetPicture | ( | const char * | name | ) |
Get picture from go4 framework.
Shortcut forwarded to analysis instance
Definition at line 120 of file TGo4EventProcessor.cxx.
References TGo4Analysis::GetPicture(), and TGo4Analysis::Instance().
Referenced by TXXXProc::TXXXProc(), and TXXXUnpackProc::TXXXUnpackProc().
|
inlinevirtual |
implemented by subclass to assign correct event structures
Reimplemented in TGo4CompositeProcessor.
Definition at line 116 of file TGo4EventProcessor.h.
References TGo4EventElement.
Referenced by TGo4CompositeProcessor::BuildEvent().
|
inline |
Is marked to keep input event.
if true, processor wants to continue with current content of input event event is not refilled from event source, and all previous analysis steps are suspended
Definition at line 447 of file TGo4EventProcessor.h.
References fbKeepInputEvent.
|
inline |
Is marked to keep output event.
if true, processor wants to continue filling current output event Event is not stored, and all subsequent analysis steps are skipped
Definition at line 456 of file TGo4EventProcessor.h.
References fbKeepOutputEvent.
Bool_t TGo4EventProcessor::IsObjMade | ( | ) | const |
Returns kTRUE if object in last Make... call was created, kFALSE when object was retrieved from autosavefile.
Definition at line 171 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::IsObjMade().
Referenced by TYYYUnpackProc::TYYYUnpackProc().
TGo4ShapedCond * TGo4EventProcessor::MakeBoxCond | ( | const char * | fullname, |
Double_t | cx, | ||
Double_t | cy, | ||
Double_t | a1, | ||
Double_t | a2, | ||
Double_t | theta, | ||
const char * | HistoName = nullptr ) |
Create tilted rectangular box shaped polygon condition.
fullname | specifies name of condition (optionally with subfolder name) |
cx | - center X coordinates of box |
cy | - center Y coordinates of box |
a1 | - width of box half axes |
a2 | - height of box half axes |
theta | - tilt angle |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 252 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeBoxCond().
Referenced by TXXXUnpackProc::TXXXUnpackProc().
TGo4ShapedCond * TGo4EventProcessor::MakeCircleCond | ( | const char * | fullname, |
Int_t | npoints, | ||
Double_t | cx, | ||
Double_t | cy, | ||
Double_t | r, | ||
const char * | HistoName = nullptr ) |
Create circular shaped polygon condition.
fullname | specifies name of condition (optionally with subfolder name) |
npoints | - number of points in shaped condition, 0 for default resolution |
cx | - circle center X coordinate |
cy | - circle center Y coordinate |
r | - circle radius |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 246 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeCircleCond().
Referenced by TXXXUnpackProc::TXXXUnpackProc().
TGo4ShapedCond * TGo4EventProcessor::MakeEllipseCond | ( | const char * | fullname, |
Int_t | npoints, | ||
Double_t | cx, | ||
Double_t | cy, | ||
Double_t | a1, | ||
Double_t | a2, | ||
Double_t | theta = 0, | ||
const char * | HistoName = nullptr ) |
Create ellipse shaped polygon condition.
fullname | specifies name of condition (optionally with subfolder name) |
npoints | - number of points in ellipse condition, 0 for default resolution |
cx | - center X coordinate of ellipse |
cy | - center Y coordinate of ellipse |
a1 | - width of ellipse X half axes |
a2 | - width of ellipse Y half axes |
theta | - ellipse tilt angle |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 240 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeEllipseCond().
Referenced by TXXXUnpackProc::TXXXUnpackProc().
TGo4ShapedCond * TGo4EventProcessor::MakeFreeShapeCond | ( | const char * | fullname, |
Int_t | npoints, | ||
Double_t(*) | points[2], | ||
const char * | HistoName = nullptr ) |
Create free shaped (polygon) condition.
in contrast to plain TGo4PolyCond, this one can be converted later to different dedicated shape types (ellipse, box, etc.) To use method, array should be declared as following:
fullname | specifies name of condition (optionally with subfolder name) |
npoints | - number of points in polygon condition |
points | - (X,Y) points |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 259 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeFreeShapeCond().
Referenced by TXXXUnpackProc::TXXXUnpackProc().
TGraph * TGo4EventProcessor::MakeGraph | ( | const char * | fullname, |
const char * | title, | ||
Int_t | points = 0, | ||
Double_t * | xvalues = nullptr, | ||
Double_t * | yvalues = nullptr ) |
Create a TGraph with initial values as specified by points, xvalues and yvalues.
If theses parameters are missing, an empty graph is created to be specified by the user. If a graph of this name already exists in the autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.
Definition at line 196 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeGraph().
TGraph * TGo4EventProcessor::MakeGraph | ( | const char * | fullname, |
const char * | title, | ||
TF1 * | function ) |
Create a TGraph with values initialized by a function object TF1l.
If a graph of this name already exists in the autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.
Definition at line 202 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeGraph().
TGo4ListCond * TGo4EventProcessor::MakeListCond | ( | const char * | fullname, |
const char * | title, | ||
const char * | HistoName = nullptr ) |
Create "whitlelist" condition with separate values to tes against condition is true if any of the values matches.
This method creates empty list condition of specified name and title to be set by the user, or already defined condition from previous autosave
Definition at line 280 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeListCond().
TGo4ListCond * TGo4EventProcessor::MakeListCond | ( | const char * | fullname, |
const Int_t | num, | ||
const Int_t * | values, | ||
const char * | HistoName = nullptr ) |
Create "whitlelist" condition with separate values to test against condition is true if any of the values matches.
fullname | specifies name of condition (optionally with subfolder name) |
num | - number of values in array |
values | - 1d array with values |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 268 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeListCond().
Referenced by TXXXUnpackProc::TXXXUnpackProc().
TGo4ListCond * TGo4EventProcessor::MakeListCond | ( | const char * | fullname, |
const Int_t | start, | ||
const Int_t | stop, | ||
const Int_t | step = 1, | ||
const char * | HistoName = nullptr ) |
Create "whitlelist" condition with separate values to test against condition is true if any of the values matches.
fullname | specifies name of condition (optionally with subfolder name) |
start | - first value in list |
stop | - last value in list |
step | - distance between list entries |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 274 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeListCond().
TGo4Parameter * TGo4EventProcessor::MakeParameter | ( | const char * | fullname, |
const char * | classname, | ||
const char * | newcmd = nullptr ) |
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. |
newcmd | - optional argument, can be used for two purposes:
|
Definition at line 286 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 = nullptr ) |
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 231 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakePolyCond().
Referenced by TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), and TYYYUnpackProc::TYYYUnpackProc().
TGo4RollingGraph * TGo4EventProcessor::MakeRollingGraph | ( | const char * | fullname, |
const char * | title, | ||
Int_t | points = 0, | ||
Int_t | average = 1 ) |
Create a go4 rolling graph (generic trending plot) with properties points and average.
If theses parameters are missing, an empty graph is created to be specified by the user. If a rolling graph of this name already exists in the autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.
Definition at line 207 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeRollingGraph().
Referenced by TXXXUnpackProc::TXXXUnpackProc().
TH1 * TGo4EventProcessor::MakeTH1 | ( | char | type, |
const char * | fullname, | ||
const char * | title, | ||
Int_t | nbinsx, | ||
Double_t | xlow, | ||
Double_t | xup, | ||
const char * | xtitle = nullptr, | ||
const char * | ytitle = nullptr ) |
Create one dimensional histogram of specified type.
If histogram exactly with same name and type already exists in autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.
type | can be:
|
fullname | specifies name of histogram (optionally with subfolder name) |
title | - histogram title |
nbinsx | - number of X bins |
xlow | - minimum value for X axis |
xup | - maximum value for X axis |
xtitle | - title for X axis of histogram |
ytitle | - title for Y axis of histogram |
Definition at line 176 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeTH1().
Referenced by TXXXAnlProc::TXXXAnlProc(), TXXXProc::TXXXProc(), TXXXUnpackProc::TXXXUnpackProc(), TYYYUnpackProc::TYYYUnpackProc(), and TXXXUnpackProc::CreateRawHistograms().
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 = nullptr, | ||
const char * | ytitle = nullptr, | ||
const char * | ztitle = nullptr ) |
Create two dimensional histogram of specified type.
If histogram exactly with same name and type already exists in autosave file, it will be returned. With SetMakeWithAutosave(kFALSE) one can exclude data from autosave.
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 TH2C - Char_t as bin content 'L', 'l' for TH2L - Long64_t as bin content |
fullname | specifies name of histogram (optionally with subfolder name) |
title | - histogram title |
nbinsx | - number of X bins |
xlow | - minimum value for X axis |
xup | - maximum value for X axis |
nbinsy | - number of Y bins |
ylow | - minimum value for Y axis |
yup | - maximum value for Y axis |
xtitle | - title for X axis of histogram |
ytitle | - title for Y axis of histogram |
ztitle | - title for Z axis of histogram |
Definition at line 185 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 = nullptr ) |
Create 1D window condition.
fullname | specifies name of condition (optionally with subfolder name) |
xmin | - X min condition range |
xmax | - X max condition range |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 213 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 = nullptr ) |
Create 2D window condition.
fullname | specifies name of condition (optionally with subfolder name) |
xmin | - X min condition range |
xmax | - X max condition range |
ymin | - Y min condition range |
ymax | - Y max condition range |
HistoName | - name of histogram, to which condition is assigned |
Definition at line 220 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::MakeWinCond().
void TGo4EventProcessor::Message | ( | Int_t | prio, |
const char * | text, | ||
... ) |
Display a user message.
prio | defines message priority:
|
text | - message with optional formating |
Definition at line 145 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 100 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 95 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 80 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::RemoveHistogram().
Referenced by TXXXUnpackProc::CreateRawHistograms().
Bool_t TGo4EventProcessor::RemoveParameter | ( | const char * | name | ) |
UnRegister parameter from go4 framework and delete it.
Shortcut forwarded to analysis instance
Definition at line 85 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 90 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 155 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::SendObjectToGUI().
|
inline |
Sets reference to external raw event which is used by the concrete processor to unpack the interesting information.
Definition at line 99 of file TGo4EventProcessor.h.
References fxCalibration.
|
inline |
Sets reference to external raw event which is used by the concrete processor to unpack the interesting information.
Definition at line 78 of file TGo4EventProcessor.h.
References fxInputEvent, and TGo4EventElement.
Referenced by TGo4CompositeProcessor::BuildEvent(), main(), and TMeshProviderProc::SetRealInput().
|
inline |
Mark current input event for reprocessing in next cycle.
In this case, all previous analysis steps are skipped until this is done
Definition at line 451 of file TGo4EventProcessor.h.
References fbKeepInputEvent.
|
inline |
Mark current input event for reprocessing in next cycle.
In this case, all previous analysis steps are skipped until this is done
Definition at line 460 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 166 of file TGo4EventProcessor.cxx.
References TGo4Analysis::Instance(), and TGo4Analysis::SetMakeWithAutosave().
|
inlinevirtual |
Method called when analysis is stopping.
Definition at line 466 of file TGo4EventProcessor.h.
Referenced by TGo4Analysis::PostLoop().
|
inlinevirtual |
Method called when analysis is created.
Definition at line 463 of file TGo4EventProcessor.h.
Referenced by TGo4Analysis::PreLoop().
|
friend |
Definition at line 65 of file TGo4EventProcessor.h.
References TGo4EventElement.
Referenced by TMeshB12AnlProc::Analysis(), TMeshB1AnlProc::Analysis(), TMeshB2AnlProc::Analysis(), TMeshB3AnlProc::Analysis(), TGo4CompositeProcessor::BuildEvent(), TGo4PrintProcessor::BuildEvent(), TXXXAnlProc::BuildEvent(), TXXXProc::BuildEvent(), TXXXProc::BuildEvent(), TXXXUnpackProc::BuildEvent(), TYYYUnpackProc::BuildEvent(), GetInputEvent(), GetInputEvent(), GetOutputEvent(), TGo4CompositeProcessor::InitEvent(), InitEvent(), SetInputEvent(), TMeshProviderProc::SetRealInput(), and TGo4EventElement.
|
private |
flag to steer re-processing of same input event
Definition at line 481 of file TGo4EventProcessor.h.
Referenced by IsKeepInputEvent(), and SetKeepInputEvent().
|
private |
flag to steer continue filling of same output event
Definition at line 484 of file TGo4EventProcessor.h.
Referenced by IsKeepOutputEvent(), and SetKeepOutputEvent().
|
private |
aggregation
Definition at line 478 of file TGo4EventProcessor.h.
Referenced by CheckCalibration(), GetCalibration(), and SetCalibration().
|
private |
1
Definition at line 475 of file TGo4EventProcessor.h.
Referenced by CheckInputEvent(), GetInputEvent(), and SetInputEvent().