GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4TestRunnable.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGo4TestRunnable_h
15#define TGo4TestRunnable_h
16
17#include "TGo4Runnable.h"
18
19class TH1D;
20
65
66 public:
67 //## Constructors (generated)
69
71
72 TGo4TestRunnable(const char *name, TGo4ThreadManager *man, Int_t mode = 0);
73
74 virtual ~TGo4TestRunnable();
75
76 protected:
77
82 Int_t Run (void *ptr) override;
83
87 void ThreadCatch(TGo4Exception &ex) override;
88
93 void UnexpectedCatch() override;
94
95
96 private:
97
103 Int_t fiMode{0};
104
105 // Additional Private Declarations
106 TH1D* fxHisto{nullptr};
107
108 ClassDefOverride(TGo4TestRunnable,1)
109};
110
111#endif
TGo4Runnable(const TGo4Runnable &right)
Example of a user defined runnable subclass.
void UnexpectedCatch() override
catch for all unexpected exceptions happening in workfunc
void ThreadCatch(TGo4Exception &ex) override
catch for exceptions occurring in workfunc
Int_t Run(void *ptr) override
The working function which runs in the thread.
Int_t fiMode
mode number which can be used to create runnables with different actions in Workfunc; useful for test...
Go4 thread manager.