57 TString parname = TString::Format(
"%sOutput", argv[0]);
81 TCanvas *mycan =
new TCanvas(
"TestCanvas",
"Does this work?");
107 fSize =
new TH1D (
"Eventsize",
"Read columns",160,1,160);
#define __GO4BUILDVERSION__
void SetErrorStopEnabled(Bool_t on)
Enables or disables the stop-on-error mode.
void SetProcessEnabled(Bool_t on=kTRUE)
Enables or disables the event processing.
void SetStoreEnabled(Bool_t on=kTRUE)
Enables or disables the event store.
void SetSourceEnabled(Bool_t on=kTRUE)
Enables or disables the event source.
TGo4EventElement * GetInputEvent(const char *stepname) const
Returns the input event structure of analysis step.
TGo4Analysis(const char *name=nullptr)
Protected constructor for singleton instance.
TCanvas * GetCanvas(const char *name)
Retrieves a TCanvas by name from the Canvases folder.
Bool_t ClearObjects(const char *name)
Clear (reset) the specified objects.
TGo4EventElement * GetOutputEvent() const
Returns the output event (detector) structure of analysis step.
friend class TGo4AnalysisStep
Bool_t AddParameter(TGo4Parameter *par, const char *subfolder=nullptr)
Puts a new parameter object in corresponding folder.
TH1 * GetHistogram(const char *name)
Search histogram in histogram list (directory).
Bool_t AddAnalysisStep(TGo4AnalysisStep *next)
Method for user analysis constructor to setup the list of analysis steps.
Bool_t AddHistogram(TH1 *his, const char *subfolder=nullptr, Bool_t replace=kTRUE)
Add external histogram to go4 histogram directory.
const char * GetName() const override
Return analysis name.
Bool_t AddCanvas(TCanvas *can, const char *subfolder=nullptr)
Puts a new TCanvas in corresponding folder.
void SetOverwriteMode(Bool_t over=kTRUE)
static void Info(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 1.
static void Error(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 3.
Ready to use step factory.
void DefUserEventSource(const char *Sclass)
Configure class name for event source.
void DefEventProcessor(const char *Pname, const char *Pclass)
Configure name and class name for event processor.
void DefInputEvent(const char *Iname, const char *Iclass)
Configure name and class name for input event.
void DefOutputEvent(const char *Oname, const char *Oclass)
Configure name and class name for output event.
static Bool_t CheckVersion(Int_t version)
Returns true if Version number matches the argument of the Method.
Int_t UserPreLoop() override
User defined function called once before processing the main event loop.
Int_t UserPostLoop() override
User defined function called once after processing the main event loop.
TYYYUnpackEvent * fUnpackEvent
Int_t UserEventFunc() override
User defined function which processes the actual analysis.
Example for user defined raw event class.