| v2.10-0 (21000JUN2005) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| Field Summary | |
private Bool_t | fbAutoStartIf true, this slave will initialize and start analysis immediately without waiting for a submit/start command. |
private Bool_t | fbCintModeIf true, this slave runs to control CINT macro. |
private Text_t* | fcMainNameremember name of main thread |
private Text_t* | fcWatchNameremember name of watch thread |
private Double_t | fdBufferUpdateTimeabsoulute time of the last status buffer update. |
const static const Text_t[] | fgcMAINTHREADsuffix for main thread name |
const static const Text_t[] | fgcWATCHTHREADsuffix for watch thread name |
const static const Double_t | fgdSTATUSTIMEOUTMaximum time (in s) between two updates of the client status object. |
const static const UInt_t | fguCINTTIMERPERIODTimer period (in ms) for cint locking timer |
const static const UInt_t | fguSTATUSUPDATENumber of mainloop runs between two updates of the client status object. |
private TGo4Analysis* | fxAnalysisThe analysis the client is working on. |
private TTimer* | fxCintLockTimerFor cintmode, we only allow to release the main lock within a certain time window, triggered by this timer |
private TGo4HistogramServer* | fxHistoServer |
private TGo4InterruptHandler* | fxInterruptHandleruse to treat Ctrl-C interrupts in CINT mode |
private TGo4Ratemeter* | fxRatemeter |
private TStopwatch* | fxUpdateWatchStopwatch controlling the buffer update time. |
| Constructor Summary | |
| TGo4AnalysisClient(const char * name, TGo4Analysis* analysis, const char * host, UInt_t negport, Bool_t histoserver, const char * basename, const char * passwd, Bool_t servermode, Bool_t autorun, Bool_t clientmode) |
| TGo4AnalysisClient(int argc, char * * argv, TGo4Analysis* analysis, Bool_t histoserver, const char * basename, const char * passwd, Bool_t servermode, Bool_t autorun) |
private | TGo4AnalysisClient() |
| Destructor Summary | |
virtual synchronized | ~TGo4AnalysisClient() |
| Method Summary | |
private void | Constructor(Bool_t starthistserv, const char * basename, const char * passwd) |
virtual TGo4TaskStatus* | CreateStatus()create a status object with information on the current client state. this object may be sent to the server or may be used to restore current status by memento mechanism. |
virtual void | ExecuteString(const Text_t* command)Execute string command. |
const TGo4Analysis* | GetAnalysis() |
UInt_t | GetCurrentCount()Number of currently processed events since last start. |
virtual Int_t | Initialization()Override the ClientTask/ThreadManager Initialization used by AppControlTimer to init event classes before the threads are started. |
Bool_t& | IsCintMode() |
virtual void | KillMain()Kill the main thread; method to be called from command, should be overridden in user implementation |
virtual void | RestartMain()Restart the main thread; method to be called from command, should be overridden in user implementation |
void | SendAnalysisClientStatus()Send a complete status object of the analysis client via the status queue. |
void | SendAnalysisObject(const Text_t* name)Fetch object of name from analysis instance and put it into the data queue of the client. |
void | SendAnalysisStatus()Send a complete status object of the analysis via the status queue. |
void | SendNamesList()Send the list of object names (folder structure) as status object to the gui. |
void | SetCintMode(Bool_t on) |
virtual void | Start() |
void | StartObjectServer(const Text_t* basename, const Text_t* passwd)Start the object (histogram) server. |
virtual Int_t | StartWorkThreads()start the working threads of the slave implementation; |
virtual void | Stop() |
void | StopObjectServer()Stop the object (histogram) server. |
virtual Int_t | StopWorkThreads()stop the working threads of the slave implementation; |
virtual void | Terminate()Overwrites the Threadmanager Terminate to shutdown the objectserver properly |
virtual void | TerminateFast()Overwrites the Threadmanager TerminateFast to shutdown the objectserver properly |
Bool_t | TestBufferUpdateConditions()Test if status buffer shall be updated now |
Bool_t | TestRatemeter()Test if ratemeter has been updated. |
void | UpdateRate(Int_t counts)Update ratemeter. |
private void | UpdateStatus(TGo4TaskStatus* state)Method needed by method CreateStatus of any status subclasses to set the values of the clienttask specific part of the status object. |
| Methods inherited from class Go4TaskHandler.TGo4Slave |
GetThreadHandler, MainIsRunning, NextCommand, SendObject, SendStatus, SendStatusBuffer, SendStatusMessage, Terminate, UpdateStatusBuffer |
| Methods inherited from class Go4TaskHandler.TGo4TaskOwner |
GetName, GetTask, IsConnected, IsServer, Quit, SetTask |
| Field Detail |
private Bool_t fbAutoStart
private Bool_t fbCintMode
private Text_t* fcMainName
private Text_t* fcWatchName
private Double_t fdBufferUpdateTime
public const static const Text_t[] fgcMAINTHREAD
public const static const Text_t[] fgcWATCHTHREAD
public const static const Double_t fgdSTATUSTIMEOUT
public const static const UInt_t fguCINTTIMERPERIOD
public const static const UInt_t fguSTATUSUPDATE
private TGo4Analysis* fxAnalysis
private TTimer* fxCintLockTimer
private TGo4HistogramServer* fxHistoServer
private TGo4InterruptHandler* fxInterruptHandler
private TGo4Ratemeter* fxRatemeter
private TStopwatch* fxUpdateWatch
| Constructor Detail |
public TGo4AnalysisClient(const char * name, TGo4Analysis* analysis, const char * host, UInt_t negport, Bool_t histoserver, const char * basename, const char * passwd, Bool_t servermode, Bool_t autorun, Bool_t clientmode)
public TGo4AnalysisClient(int argc, char * * argv, TGo4Analysis* analysis, Bool_t histoserver, const char * basename, const char * passwd, Bool_t servermode, Bool_t autorun)
private TGo4AnalysisClient()
| Method Detail |
public virtual synchronized ~TGo4AnalysisClient()
| Method Detail |
private void Constructor(Bool_t starthistserv, const char * basename, const char * passwd)
public virtual TGo4TaskStatus* CreateStatus()
public virtual void ExecuteString(const Text_t* command)
public const TGo4Analysis* GetAnalysis()
public UInt_t GetCurrentCount()
public virtual Int_t Initialization()
public Bool_t& IsCintMode()
public virtual void KillMain()
public virtual void RestartMain()
public void SendAnalysisClientStatus()
public void SendAnalysisObject(const Text_t* name)
public void SendAnalysisStatus()
public void SendNamesList()
public void SetCintMode(Bool_t on)
public virtual void Start()
public void StartObjectServer(const Text_t* basename, const Text_t* passwd)
public virtual Int_t StartWorkThreads()
public virtual void Stop()
public void StopObjectServer()
public virtual Int_t StopWorkThreads()
public virtual void Terminate()
public virtual void TerminateFast()
public Bool_t TestBufferUpdateConditions()
public Bool_t TestRatemeter()
public void UpdateRate(Int_t counts)
private void UpdateStatus(TGo4TaskStatus* state)
| Association Links |
to Class TStopwatch
to Class TGo4Ratemeter
to Class TGo4HistogramServer
to Class TTimer
to Class TGo4InterruptHandler
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||