14 #ifndef TGO4ANALYSISIMP_H
15 #define TGO4ANALYSISIMP_H
176 Int_t
RunImplicitLoop(Int_t times, Bool_t showrate = kFALSE, Double_t process_event_interval = -1., Bool_t iswebserver=kFALSE);
201 const char* hevx,
const char* hmemx,
202 const char* hevy=0,
const char* hmemy=0,
203 const char* hevz=0,
const char* hmemz=0,
204 const char* condition=0,
205 const char* cevx=0,
const char* cmemx=0,
206 const char* cevy=0,
const char* cmemy=0);
225 Bool_t
AddObject(TNamed * anything,
const char* subfolder=0, Bool_t replace=kTRUE);
231 TNamed *
GetObject(
const char* name,
const char* folder=0);
236 Bool_t
RemoveObject(
const char* name, Bool_t del=kTRUE);
271 const char* folder=0,
272 Bool_t reset=kFALSE);
279 Bool_t
AddHistogram(TH1* his ,
const char* subfolder=0, Bool_t replace=kTRUE);
286 Bool_t
AddTree(TTree* tree,
const char* subfolder=0);
292 Bool_t
RemoveTree(TTree * tree,
const char* stepname=0);
298 Bool_t
AddTreeHistogram(
const char* hisname,
const char* treename,
const char* varexp,
const char* cutexp);
304 TTree *
GetTree(
const char* name);
379 Bool_t
AddCanvas(TCanvas * can,
const char* subfolder=0);
480 Bool_t overwrite=kFALSE,
481 Int_t compression=5);
585 void Message(Int_t prio,
const char* text,...);
612 virtual void Print(Option_t* opt=
"")
const;
631 void ShowEvent(
const char* stepname, Bool_t isoutput=kTRUE);
655 Int_t
StoreFolder(
const char * stepname, TFolder* folder);
660 Int_t
StoreFolder(
const char * stepname,
const char* foldername);
708 TH1*
MakeTH1(
char type,
const char* fullname,
const char* title,
709 Int_t nbinsx, Double_t xlow, Double_t xup,
710 const char* xtitle = 0,
const char* ytitle = 0);
726 TH2*
MakeTH2(
char type,
const char* fullname,
const char* title,
727 Int_t nbinsx, Double_t xlow, Double_t xup,
728 Int_t nbinsy, Double_t ylow, Double_t yup,
729 const char* xtitle = 0,
const char* ytitle = 0,
const char* ztitle = 0);
737 Double_t xmin, Double_t xmax,
738 const char* HistoName = 0);
747 Double_t xmin, Double_t xmax,
748 Double_t ymin, Double_t ymax,
749 const char* HistoName = 0);
763 Double_t (*points) [2],
764 const char* HistoName = 0,
765 Bool_t shapedcond=kFALSE);
779 Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0,
780 const char* HistoName = 0);
790 Int_t npoints, Double_t cx, Double_t cy, Double_t r,
791 const char* HistoName = 0);
801 const char* HistoName = 0);
816 Double_t (*points) [2],
817 const char* HistoName = 0);
832 const char* classname,
833 const char* cmd = 0);
842 Long_t
ExecutePython(
const char* script_name, Int_t* errcode=0);
849 Long_t
ExecuteLine(
const char* command, Int_t* errcode=0);
Bool_t AddTreeHistogram(const char *hisname, const char *treename, const char *varexp, const char *cutexp)
Bool_t IsInitDone() const
void SetRunning(Bool_t on=kTRUE)
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)
void PrintParameters(const char *expression=0)
static const Int_t fgiMACROSTARTPOLL
void SetMakeWithAutosave(Bool_t on=kTRUE)
TGo4Analysis(const char *name=0)
static Bool_t IsServerMode()
Bool_t IsAutoSaveFileChange() const
static const char * fgcPYINIT
void SetAutoSaveFileChange(Bool_t on=kTRUE)
Bool_t NewStepProcessor(const char *name, TGo4EventProcessorParameter *par)
TGo4ShapedCond * MakeFreeShapeCond(const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0)
Bool_t SetStepStorage(const char *name, Bool_t on)
Bool_t LoadStatus(const char *filename=0)
Bool_t AddCanvas(TCanvas *can, const char *subfolder=0)
TGo4ShapedCond * MakeCircleCond(const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t r, const char *HistoName=0)
virtual Int_t UserPreLoop()
TGo4AnalysisClient * fxAnalysisSlave
Bool_t IsAutoSaveOn() const
void SetAnalysisName(const char *name)
void SetOutputEvent(TGo4EventElement *event)
void DefineServerPasswords(const char *admin, const char *controller, const char *observer)
Bool_t RemoveParameter(const char *name)
Bool_t AddParameter(TGo4Parameter *par, const char *subfolder=0)
void UpdateStatus(TGo4AnalysisStatus *state)
Bool_t SetParameter(const char *name, TGo4Parameter *par)
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=0)
virtual void CloseAnalysis()
TGo4AnalysisSniffer * GetSniffer() const
Int_t StoreFolder(const char *stepname, TFolder *folder)
Bool_t LoadObjects(const char *filename=0)
TGo4TreeStructure * CreateTreeStructure(const char *treename)
void SetObserverPassword(const char *passwd)
Int_t StoreParameter(const char *name, TGo4Parameter *par)
TGo4InterruptHandler * fxInterruptHandler
Bool_t AddDynamicHistogram(const char *name, const char *histo, const char *hevx, const char *hmemx, const char *hevy=0, const char *hmemy=0, const char *hevz=0, const char *hmemz=0, const char *condition=0, const char *cevx=0, const char *cmemx=0, const char *cevy=0, const char *cmemy=0)
void SetControllerPassword(const char *passwd)
static const char * fgcDEFAULTSTATUSFILENAME
Int_t IsErrorStopEnabled()
void SendMessageToGUI(Int_t level, Bool_t printout, const char *text)
void SetStepChecking(Bool_t on=kTRUE)
static Bool_t IsClientMode()
TGo4AnalysisObjectNames * fxObjectNames
Int_t StoreFitter(const char *name, TGo4Fitter *fit)
void SetSniffer(TGo4AnalysisSniffer *sniff)
Bool_t RemoveEventSource(TGo4EventSource *source)
void ShowEvent(const char *stepname, Bool_t isoutput=kTRUE)
TString fxDefaultTestFileName
Bool_t SetParameterStatus(const char *name, TGo4ParameterStatus *par)
Bool_t RemoveAnalysisCondition(const char *name)
TGo4AnalysisClient * GetAnalysisClient() const
TGo4AnalysisObjectManager * fxObjectManager
virtual Int_t UserEventFunc()
Bool_t SetFirstStep(const char *name)
Bool_t IsStopWorking() const
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)
TGo4AnalysisStepManager * fxStepManager
void PrintHistograms(const char *expression=0)
void SetDynListInterval(Int_t val)
TGo4AnalysisObjectNames * CreateNamesList()
TGo4EventElement * GetOutputEvent()
TTree * CreateSingleEventTree(const char *name, Bool_t isoutput=kTRUE)
Bool_t fbMakeWithAutosave
Bool_t RemoveEventStructure(TGo4EventElement *ev)
TGo4Condition * GetAnalysisCondition(const char *name, const char *cond_cl=0)
TGo4AnalysisStep * GetAnalysisStep(const char *name)
static const char * fgcTOPDYNAMICLIST
void SetAdministratorPassword(const char *passwd)
Bool_t AddHistogram(TH1 *his, const char *subfolder=0, Bool_t replace=kTRUE)
Long_t ExecutePython(const char *script_name, Int_t *errcode=0)
static const char fgcPYPROMPT
void SetNewInputFile(Bool_t on=kTRUE)
void ProcessCrtlCSignal()
Bool_t SetAnalysisCondition(const char *name, TGo4Condition *con, Bool_t counter=kTRUE)
Bool_t IsNewInputFile() const
Bool_t ResetBackStores(Bool_t clearflag=kFALSE)
static const char * fgcDEFAULTFILENAME
TGo4Parameter * MakeParameter(const char *fullname, const char *classname, const char *cmd=0)
TGo4EventElement * GetEventStructure(const char *name)
static const char * fgcDEFAULTFILESUF
TH1 * GetHistogram(const char *name)
Int_t RunImplicitLoop(Int_t times, Bool_t showrate=kFALSE, Double_t process_event_interval=-1., Bool_t iswebserver=kFALSE)
TGo4EventElement * GetInputEvent(const char *stepname)
TCanvas * GetCanvas(const char *name)
TStopwatch * fxAutoSaveClock
const char * GetInputFileName() const
void SetAutoSave(Bool_t on=kTRUE)
Bool_t AddObject(TNamed *anything, const char *subfolder=0, Bool_t replace=kTRUE)
Bool_t RemoveEventStore(TGo4EventStore *store)
void SendObjectToGUI(TObject *ob)
TString fServerObserverPass
Bool_t AddEventStructure(TGo4EventElement *ev)
void Message(Int_t prio, const char *text,...)
Bool_t AddEventSource(TGo4EventSource *source)
Bool_t AddPicture(TGo4Picture *pic, const char *subfolder=0)
void OpenAutoSaveFile(bool for_writing=false)
Bool_t AddAnalysisCondition(TGo4Condition *con, const char *subfolder=0)
Int_t StoreCondition(const char *name, TGo4Condition *con)
Bool_t AddEventProcessor(TGo4EventProcessor *pro)
TGo4Parameter * GetParameter(const char *name, const char *parameter_class=0)
Long_t ExecuteScript(const char *script_name)
TTree * GetTree(const char *name)
static Bool_t IsBatchMode()
Bool_t DeleteObjects(const char *name)
Bool_t RemoveCanvas(const char *name)
Bool_t RemoveEventProcessor(TGo4EventProcessor *pro)
virtual Int_t UserPostLoop()
void StartObjectServer(const char *basename, const char *passwd)
Bool_t ClearObjects(const char *name)
TGo4Picture * GetPicture(const char *name)
Int_t fiAutoSaveCompression
void SetInputFileName(const char *fname)
virtual const char * GetName() const
static TGo4Analysis * fxInstance
Bool_t AddTree(TTree *tree, const char *subfolder=0)
TGo4AnalysisObjectManager * ObjectManager() const
Bool_t RemoveTree(TTree *tree, const char *stepname=0)
TGo4ShapedCond * MakeBoxCond(const char *fullname, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta, const char *HistoName=0)
TGo4AnalysisSniffer * fSniffer
TGo4ObjectStatus * CreateObjectStatus(const char *name, const char *folder=0)
virtual Bool_t InitEventClasses()
virtual void Print(Option_t *opt="") const
Bool_t NewStepStore(const char *name, TGo4EventStoreParameter *par)
TObject * NextMatchingObject(const char *expr=0, const char *folder=0, Bool_t reset=kFALSE)
void SetAnalysisClient(TGo4AnalysisClient *cli)
static Int_t fiRunningMode
Bool_t RemoveObject(const char *name, Bool_t del=kTRUE)
Bool_t IsAutoSaveFileName() const
Long_t ExecuteLine(const char *command, Int_t *errcode=0)
void SetAutoSaveFile(const char *filename=0, Bool_t overwrite=kFALSE, Int_t compression=5)
const char * GetDefaultTestFileName() const
TGo4AnalysisStep * GetAnalysisStepNum(Int_t number)
Bool_t AddAnalysisStep(TGo4AnalysisStep *next)
Bool_t ProtectObjects(const char *name, const Option_t *flags)
Bool_t SetPicture(const char *name, TGo4Picture *pic)
Bool_t SaveStatus(const char *filename=0)
TGo4AnalysisObjectNames * GetNamesList() const
Bool_t RemoveDynamicEntry(const char *entryname, const char *listname=0)
Bool_t fbAutoSaveOverwrite
void SetBatchLoopCount(Int_t cnt=-1)
TString fxCurrentInputFileName
TNamed * GetObject(const char *name, const char *folder=0)
Bool_t AddDynamicEntry(TGo4DynamicEntry *entry)
TGo4AnalysisStatus * CreateStatus()
Bool_t RemoveHistogram(const char *name, Bool_t del=kTRUE)
Int_t ProcessAnalysisSteps()
enum TGo4Analysis::@0 fxDoWorkingFlag
Bool_t AddEventStore(TGo4EventStore *store)
static const Int_t fgiDYNLISTINTERVAL
static void SetRunningMode(int mode)
static TGo4Analysis * Instance()
TGo4EventElement * fxSampleEvent
static const Int_t fgiAUTOSAVECOUNTS
Int_t GetDynListInterval()
TGo4AnalysisWebStatus * CreateWebStatus()
TGo4PolyCond * MakePolyCond(const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0, Bool_t shapedcond=kFALSE)
Bool_t NewStepSource(const char *name, TGo4EventSourceParameter *par)
Bool_t fbAutoSaveFileChange
void PrintConditions(const char *expression=0)
TFolder * GetObjectFolder()
Bool_t RemovePicture(const char *name)
Bool_t SetLastStep(const char *name)
void SetAutoSaveInterval(Int_t interval=0)
TGo4WinCond * MakeWinCond(const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=0)
void SetStatus(TGo4AnalysisStatus *state)