14 #ifndef TGO4EVENTPROCESSOR_H 15 #define TGO4EVENTPROCESSOR_H 45 #ifndef TGo4EllipseCond 46 #define TGo4EllipseCond TGo4ShapedCond 123 Bool_t
AddObject(TNamed *anything,
const char *subfolder =
nullptr);
126 Bool_t
AddHistogram(TH1 *his,
const char *subfolder =
nullptr, Bool_t replace = kTRUE);
138 Bool_t
AddCanvas(TCanvas *can,
const char *subfolder =
nullptr);
156 TNamed *
GetObject(
const char *name,
const char *folder =
nullptr);
193 void Message(Int_t prio,
const char *text, ...)
194 #if defined(__GNUC__) && !defined(__CINT__) 195 __attribute__((format(printf, 3, 4)))
207 void Clear(Option_t *opt =
"")
override;
229 TH1 *
MakeTH1(
char type,
const char *fullname,
const char *title,
230 Int_t nbinsx, Double_t xlow, Double_t xup,
231 const char *xtitle =
nullptr,
const char *ytitle =
nullptr);
247 TH2 *
MakeTH2(
char type,
const char *fullname,
const char *title,
248 Int_t nbinsx, Double_t xlow, Double_t xup,
249 Int_t nbinsy, Double_t ylow, Double_t yup,
250 const char *xtitle =
nullptr,
const char *ytitle =
nullptr,
const char *ztitle =
nullptr);
256 TGraph *
MakeGraph(
const char *fullname,
const char *title, Int_t points = 0, Double_t *xvalues =
nullptr,
257 Double_t *yvalues =
nullptr);
262 TGraph *
MakeGraph(
const char *fullname,
const char *title, TF1 *
function);
275 Double_t xmin, Double_t xmax,
276 const char *HistoName =
nullptr);
284 Double_t xmin, Double_t xmax,
285 Double_t ymin, Double_t ymax,
286 const char *HistoName =
nullptr);
299 Double_t (*points) [2],
300 const char *HistoName =
nullptr);
312 Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta = 0,
313 const char *HistoName =
nullptr);
322 Int_t npoints, Double_t cx, Double_t cy, Double_t r,
323 const char *HistoName =
nullptr);
334 const char *HistoName =
nullptr);
349 Double_t (*points) [2],
350 const char *HistoName =
nullptr);
359 TGo4ListCond *
MakeListCond(
const char *fullname,
const Int_t num,
const Int_t * values,
const char *HistoName =
nullptr);
368 TGo4ListCond *
MakeListCond(
const char *fullname,
const Int_t start,
const Int_t stop,
const Int_t step = 1,
const char *HistoName =
nullptr);
389 const char *classname,
390 const char *newcmd =
nullptr);
399 Long64_t
ExecutePython(
const char *macro_name, Int_t *errcode =
nullptr);
405 Long64_t
ExecuteLine(
const char *command, Int_t *errcode =
nullptr);
450 #endif //TGO4EVENTPROCESSOR_H
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)
TGo4ShapedCond * MakeFreeShapeCond(const char *fullname, Int_t npoints, Double_t(*points) [2], const char *HistoName=nullptr)
void SetKeepOutputEvent(Bool_t val=kTRUE)
Graphs that renew themselves iteratively to monitor a value.
Long64_t ExecuteScript(const char *script_name)
Bool_t RemoveParameter(const char *name)
Bool_t IsKeepInputEvent() const
TNamed * GetObject(const char *name, const char *folder=nullptr)
virtual ~TGo4EventProcessor()
Bool_t RemovePicture(const char *name)
TGo4Picture * GetPicture(const char *name)
virtual void UserPreLoop()
TGo4RollingGraph * MakeRollingGraph(const char *fullname, const char *title, Int_t points=0, Int_t average=1)
virtual Bool_t CheckInputEvent(const char *classname)
Bool_t AddPicture(TGo4Picture *pic, const char *subfolder=nullptr)
Bool_t AddHistogram(TH1 *his, const char *subfolder=nullptr, Bool_t replace=kTRUE)
Bool_t AddParameter(TGo4Parameter *par, const char *subfolder=nullptr)
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)
TGo4EventCalibration * GetCalibration() const
TGo4EventCalibration * fxCalibration
Bool_t RemoveCanvas(const char *name)
virtual void UserPostLoop()
virtual void InitEvent(TGo4EventElement *)
TCanvas * GetCanvas(const char *name)
void Clear(Option_t *opt="") override
TGo4Parameter * MakeParameter(const char *fullname, const char *classname, const char *newcmd=nullptr)
Long64_t ExecuteLine(const char *command, Int_t *errcode=nullptr)
void SetKeepInputEvent(Bool_t val=kTRUE)
void SetInputEvent(TGo4EventElement *raw)
Bool_t IsKeepOutputEvent() const
TGo4ShapedCond * MakeBoxCond(const char *fullname, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta, const char *HistoName=nullptr)
TGo4Condition * GetAnalysisCondition(const char *name, const char *cond_cl=nullptr)
Long64_t ExecutePython(const char *macro_name, Int_t *errcode=nullptr)
virtual Bool_t CheckCalibration(const char *classname)
TGo4EventElement * GetInputEvent()
void SetCalibration(TGo4EventCalibration *cali)
TGo4Parameter * GetParameter(const char *name, const char *par_class=nullptr)
virtual void FinalizeEvent()
void Message(Int_t prio, const char *text,...)
Bool_t AddAnalysisCondition(TGo4Condition *con, const char *subfolder=nullptr)
Bool_t AddCanvas(TCanvas *can, const char *subfolder=nullptr)
TGo4EventElement * fxInputEvent
void SendObjectToGUI(TNamed *ob)
TGo4EventElement * GetOutputEvent(const char *stepname)
Bool_t RemoveAnalysisCondition(const char *name)
TGo4WinCond * MakeWinCond(const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=nullptr)
Bool_t AddObject(TNamed *anything, const char *subfolder=nullptr)
TGo4ShapedCond * MakeCircleCond(const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t r, const char *HistoName=nullptr)
TH1 * GetHistogram(const char *name)
void SetMakeWithAutosave(Bool_t on=kTRUE)
TGo4ListCond * MakeListCond(const char *fullname, const Int_t num, const Int_t *values, const char *HistoName=nullptr)
TGraph * MakeGraph(const char *fullname, const char *title, Int_t points=0, Double_t *xvalues=nullptr, Double_t *yvalues=nullptr)
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)
TGo4PolyCond * MakePolyCond(const char *fullname, Int_t npoints, Double_t(*points) [2], const char *HistoName=nullptr)
Bool_t RemoveHistogram(const char *name)