stream  0.10.0
stream analysis framework
THookProc.h
1 #ifndef THOOKPROC_H
2 #define THOOKPROC_H
3 
4 #include "base/StreamProc.h"
5 
6 #include "TInterpreter.h"
7 #include "TStopwatch.h"
8 
11 class THookProc : public base::StreamProc {
12 
13  protected:
14  TString fCmd;
15  Double_t fPeriod;
16  TStopwatch fWatch;
17 
18  public:
19  THookProc(const char* cmd, Double_t period = 0.);
20 
21  virtual bool ScanNewBuffers();
22 };
23 
24 #endif
25 
Hook processor to regularly execute code during events processing.
Definition: THookProc.h:11
THookProc(const char *cmd, Double_t period=0.)
constructor
Definition: THookProc.cxx:6
Double_t fPeriod
period
Definition: THookProc.h:15
TStopwatch fWatch
time measuring
Definition: THookProc.h:16
virtual bool ScanNewBuffers()
check if hook command should be executed during data scan
Definition: THookProc.cxx:20
TString fCmd
command to execute
Definition: THookProc.h:14
Abstract processor of data streams.
Definition: StreamProc.h:21