GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
TYYYAnalysis Class Reference

#include <TYYYAnalysis.h>

+ Inheritance diagram for TYYYAnalysis:

Public Member Functions

 TYYYAnalysis ()
 
 TYYYAnalysis (int argc, char **argv)
 
virtual ~TYYYAnalysis ()
 
virtual Int_t UserPreLoop ()
 
virtual Int_t UserEventFunc ()
 
virtual Int_t UserPostLoop ()
 
- Public Member Functions inherited from TGo4Analysis
virtual ~TGo4Analysis ()
 
virtual const char * GetName () const
 
void SetAnalysisName (const char *name)
 
Int_t MainCycle ()
 
Int_t PreLoop ()
 
Int_t PostLoop ()
 
Int_t Process ()
 
Int_t RunImplicitLoop (Int_t times, Bool_t showrate=kFALSE, Double_t process_event_interval=-1., Bool_t iswebserver=kFALSE)
 
virtual void CloseAnalysis ()
 
virtual Bool_t InitEventClasses ()
 
TGo4AnalysisObjectManagerObjectManager () const
 
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)
 
Bool_t AddDynamicEntry (TGo4DynamicEntry *entry)
 
Bool_t RemoveDynamicEntry (const char *entryname, const char *listname=0)
 
Bool_t AddObject (TNamed *anything, const char *subfolder=0, Bool_t replace=kTRUE)
 
TNamed * GetObject (const char *name, const char *folder=0)
 
Bool_t RemoveObject (const char *name, Bool_t del=kTRUE)
 
Bool_t DeleteObjects (const char *name)
 
Bool_t ClearObjects (const char *name)
 
Bool_t ProtectObjects (const char *name, const Option_t *flags)
 
Bool_t ResetBackStores (Bool_t clearflag=kFALSE)
 
TObject * NextMatchingObject (const char *expr=0, const char *folder=0, Bool_t reset=kFALSE)
 
TGo4TreeStructureCreateTreeStructure (const char *treename)
 
Bool_t AddHistogram (TH1 *his, const char *subfolder=0, Bool_t replace=kTRUE)
 
Bool_t AddTree (TTree *tree, const char *subfolder=0)
 
Bool_t RemoveTree (TTree *tree, const char *stepname=0)
 
Bool_t AddTreeHistogram (const char *hisname, const char *treename, const char *varexp, const char *cutexp)
 
TH1 * GetHistogram (const char *name)
 
TTree * GetTree (const char *name)
 
Bool_t RemoveHistogram (const char *name, Bool_t del=kTRUE)
 
Bool_t AddAnalysisCondition (TGo4Condition *con, const char *subfolder=0)
 
Bool_t SetAnalysisCondition (const char *name, TGo4Condition *con, Bool_t counter=kTRUE)
 
TGo4ConditionGetAnalysisCondition (const char *name, const char *cond_cl=0)
 
Bool_t RemoveAnalysisCondition (const char *name)
 
Bool_t AddParameter (TGo4Parameter *par, const char *subfolder=0)
 
Bool_t SetParameter (const char *name, TGo4Parameter *par)
 
Bool_t SetParameterStatus (const char *name, TGo4ParameterStatus *par)
 
TGo4ParameterGetParameter (const char *name, const char *parameter_class=0)
 
Bool_t RemoveParameter (const char *name)
 
Bool_t AddPicture (TGo4Picture *pic, const char *subfolder=0)
 
Bool_t SetPicture (const char *name, TGo4Picture *pic)
 
TGo4PictureGetPicture (const char *name)
 
Bool_t RemovePicture (const char *name)
 
Bool_t AddCanvas (TCanvas *can, const char *subfolder=0)
 
TCanvas * GetCanvas (const char *name)
 
Bool_t RemoveCanvas (const char *name)
 
TGo4AnalysisStatusCreateStatus ()
 
TGo4AnalysisWebStatusCreateWebStatus ()
 
TGo4ObjectStatusCreateObjectStatus (const char *name, const char *folder=0)
 
TGo4AnalysisObjectNamesCreateNamesList ()
 
TFolder * GetObjectFolder ()
 
void UpdateStatus (TGo4AnalysisStatus *state)
 
void SetStatus (TGo4AnalysisStatus *state)
 
Bool_t LoadStatus (const char *filename=0)
 
Bool_t LoadObjects (const char *filename=0)
 
Bool_t SaveStatus (const char *filename=0)
 
void SetStepChecking (Bool_t on=kTRUE)
 
Bool_t SetFirstStep (const char *name)
 
Bool_t SetLastStep (const char *name)
 
Bool_t SetStepStorage (const char *name, Bool_t on)
 
Bool_t NewStepStore (const char *name, TGo4EventStoreParameter *par)
 
Bool_t NewStepSource (const char *name, TGo4EventSourceParameter *par)
 
Bool_t NewStepProcessor (const char *name, TGo4EventProcessorParameter *par)
 
void SetAutoSaveInterval (Int_t interval=0)
 
void SetAutoSaveFile (const char *filename=0, Bool_t overwrite=kFALSE, Int_t compression=5)
 
Bool_t IsAutoSaveFileName () const
 
Int_t LockAutoSave ()
 
Int_t UnLockAutoSave ()
 
void SetAutoSave (Bool_t on=kTRUE)
 
Bool_t IsAutoSaveOn () const
 
void SetAutoSaveFileChange (Bool_t on=kTRUE)
 
Bool_t IsAutoSaveFileChange () const
 
Bool_t IsInitDone () const
 
Bool_t IsRunning ()
 
void SetRunning (Bool_t on=kTRUE)
 
Int_t WaitForStart ()
 
Int_t IsErrorStopEnabled ()
 
void SetNewInputFile (Bool_t on=kTRUE)
 
Bool_t IsNewInputFile () const
 
void SetInputFileName (const char *fname)
 
const char * GetInputFileName () const
 
const char * GetDefaultTestFileName () const
 
void SetDynListInterval (Int_t val)
 
Int_t GetDynListInterval ()
 
TGo4EventElementGetInputEvent (const char *stepname)
 
TGo4EventElementGetInputEvent (Int_t stepindex)
 
TGo4EventElementGetOutputEvent (const char *stepname)
 
TGo4EventElementGetOutputEvent (Int_t stepindex)
 
TGo4EventElementGetOutputEvent ()
 
TGo4EventElementGetEventStructure (const char *name)
 
void Message (Int_t prio, const char *text,...)
 
void SendObjectToGUI (TObject *ob)
 
void StartObjectServer (const char *basename, const char *passwd)
 
void StopObjectServer ()
 
void SetAdministratorPassword (const char *passwd)
 
void SetControllerPassword (const char *passwd)
 
void SetObserverPassword (const char *passwd)
 
virtual void Print (Option_t *opt="") const
 
void PrintHistograms (const char *expression=0)
 
void PrintConditions (const char *expression=0)
 
void PrintParameters (const char *expression=0)
 
void PrintDynamicList ()
 
void ShowEvent (const char *stepname, Bool_t isoutput=kTRUE)
 
Int_t StoreParameter (const char *name, TGo4Parameter *par)
 
Int_t StoreCondition (const char *name, TGo4Condition *con)
 
Int_t StoreFitter (const char *name, TGo4Fitter *fit)
 
Int_t StoreFolder (const char *stepname, TFolder *folder)
 
Int_t StoreFolder (const char *stepname, const char *foldername)
 
void AutoSave ()
 
Bool_t AddAnalysisStep (TGo4AnalysisStep *next)
 
TGo4AnalysisStepGetAnalysisStep (const char *name)
 
TGo4AnalysisStepGetAnalysisStepNum (Int_t number)
 
void DefineServerPasswords (const char *admin, const char *controller, const char *observer)
 
void SetBatchLoopCount (Int_t cnt=-1)
 
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, Bool_t shapedcond=kFALSE)
 
TGo4ShapedCondMakeEllipseCond (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)
 
TGo4ShapedCondMakeCircleCond (const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t r, const char *HistoName=0)
 
TGo4ShapedCondMakeBoxCond (const char *fullname, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta, const char *HistoName=0)
 
TGo4ShapedCondMakeFreeShapeCond (const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0)
 
TGo4ParameterMakeParameter (const char *fullname, const char *classname, const char *cmd=0)
 
Long_t ExecuteScript (const char *script_name)
 
Long_t ExecutePython (const char *script_name, Int_t *errcode=0)
 
Long_t ExecuteLine (const char *command, Int_t *errcode=0)
 
void ProcessCrtlCSignal ()
 
void SetSniffer (TGo4AnalysisSniffer *sniff)
 
TGo4AnalysisSnifferGetSniffer () const
 
TGo4AnalysisClientGetAnalysisClient () const
 
void StopAnalysis ()
 
void StartAnalysis ()
 
void ProcessEvents ()
 
- Public Member Functions inherited from TGo4CommandReceiver
virtual ~TGo4CommandReceiver ()
 
 TGo4CommandReceiver ()
 

Private Attributes

TYYYRawEventfRawEvent
 
TYYYUnpackEventfUnpackEvent
 
TH1D * fSize
 
TYYYParameterfPar
 
Int_t fEvents
 
Int_t fLastEvent
 

Additional Inherited Members

- Static Public Member Functions inherited from TGo4Analysis
static TGo4AnalysisInstance ()
 
static Bool_t Exists ()
 
static Bool_t IsBatchMode ()
 
static Bool_t IsClientMode ()
 
static Bool_t IsServerMode ()
 
static void SetRunningMode (int mode)
 
- Static Public Attributes inherited from TGo4Analysis
static const Int_t fgiAUTOSAVECOUNTS = 500
 
static const Int_t fgiDYNLISTINTERVAL = 1000
 
static const Int_t fgiMACROSTARTPOLL = 1000
 
static const char * fgcDEFAULTFILENAME ="Go4AutoSave.root"
 
static const char * fgcDEFAULTSTATUSFILENAME ="Go4AnalysisPrefs.root"
 
static const char * fgcDEFAULTFILESUF =".root"
 
static const char * fgcTOPDYNAMICLIST ="Go4DynamicList"
 
static const char fgcPYPROMPT = '$'
 
static const char * fgcPYINIT = "python/go4init.py"
 
- Protected Member Functions inherited from TGo4Analysis
 TGo4Analysis (const char *name=0)
 
 TGo4Analysis (int argc, char **argv)
 
void Constructor ()
 
Int_t ProcessAnalysisSteps ()
 
- Protected Attributes inherited from TGo4Analysis
Bool_t fbInitIsDone
 
Bool_t fbAutoSaveOn
 

Detailed Description

Definition at line 24 of file TYYYAnalysis.h.

Constructor & Destructor Documentation

TYYYAnalysis::TYYYAnalysis ( )

Definition at line 32 of file TYYYAnalysis.cxx.

References TGo4Log::Error().

TYYYAnalysis::TYYYAnalysis ( int  argc,
char **  argv 
)
TYYYAnalysis::~TYYYAnalysis ( )
virtual

Definition at line 100 of file TYYYAnalysis.cxx.

References TGo4Log::Info().

Member Function Documentation

Int_t TYYYAnalysis::UserEventFunc ( )
virtual

User defined function which processes the actual analysis. May be called explicitly from analysis client thread, or may run in an implicit loop provided by method RunImplicit, if analysis works in a non threaded standalone mode. To be overridden in the user analysis class.

Reimplemented from TGo4Analysis.

Definition at line 155 of file TYYYAnalysis.cxx.

References fEvents, fRawEvent, fSize, and TYYYRawEvent::GetColumns().

Int_t TYYYAnalysis::UserPostLoop ( )
virtual

User defined function called once after processing the main event loop. Optionally.

Reimplemented from TGo4Analysis.

Definition at line 128 of file TYYYAnalysis.cxx.

References fEvents, fRawEvent, fUnpackEvent, TGo4Analysis::GetCanvas(), TGo4Analysis::GetHistogram(), and TGo4Log::Info().

Int_t TYYYAnalysis::UserPreLoop ( )
virtual

User defined function called once before processing the main event loop. Optionally.

Reimplemented from TGo4Analysis.

Definition at line 107 of file TYYYAnalysis.cxx.

References TGo4Analysis::AddHistogram(), TGo4Analysis::ClearObjects(), fEvents, fRawEvent, fSize, fUnpackEvent, TGo4Analysis::GetHistogram(), TGo4Analysis::GetInputEvent(), TGo4Analysis::GetOutputEvent(), and TGo4Log::Info().

Member Data Documentation

Int_t TYYYAnalysis::fEvents
private

Definition at line 37 of file TYYYAnalysis.h.

Referenced by UserEventFunc(), UserPostLoop(), and UserPreLoop().

Int_t TYYYAnalysis::fLastEvent
private

Definition at line 38 of file TYYYAnalysis.h.

TYYYParameter* TYYYAnalysis::fPar
private

Definition at line 36 of file TYYYAnalysis.h.

Referenced by TYYYAnalysis().

TYYYRawEvent* TYYYAnalysis::fRawEvent
private

Definition at line 33 of file TYYYAnalysis.h.

Referenced by UserEventFunc(), UserPostLoop(), and UserPreLoop().

TH1D* TYYYAnalysis::fSize
private

Definition at line 35 of file TYYYAnalysis.h.

Referenced by UserEventFunc(), and UserPreLoop().

TYYYUnpackEvent* TYYYAnalysis::fUnpackEvent
private

Definition at line 34 of file TYYYAnalysis.h.

Referenced by UserPostLoop(), and UserPreLoop().


The documentation for this class was generated from the following files: