DABC (Data Acquisition Backbone Core)  2.9.9
TSaftProc.h
Go to the documentation of this file.
1 // $Id: TSaftProc.h 1549 2013-04-11 14:25:03Z linev $
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 für 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 TSAFTPROCESSOR_H
15 #define TSAFTPROCESSOR_H
16 
17 #include "TGo4EventProcessor.h"
18 
19 #include "TH1.h"
20 #include "TH2.h"
21 #include "TGraph.h"
22 
23 #include <inttypes.h>
24 
25 #include "TSaftParam.h"
26 
27 
28 #define GO4_PMODE_NONE 0x0
29 #define GO4_PMODE_DEC 0x1
30 #define GO4_PMODE_HEX 0x2
31 #define GO4_PMODE_VERBOSE 0x4
32 
33 
34 class TSaftProc : public TGo4EventProcessor {
35  protected:
36 
37 
39 
41  TH1* hDeltaT;
42 
45 
48 
51 
53  TH1* hDeltaN;
54 
57 
60 
61 
64 
66  unsigned fLastEventNumber;
67 
69  uint64_t fLastTime;
70 
71 
74 
76  uint64_t fLastFlipTime;
77 
78 
79  public:
80  TSaftProc() ;
81  TSaftProc(const char* name);
82  virtual ~TSaftProc() ;
83 
84  Bool_t BuildEvent(TGo4EventElement*); // event processing function
85 
86 
87  static std::string FormatDate(uint64_t time, uint32_t pmode);
88 
89 
90  ClassDef(TSaftProc,1)
91 };
92 
93 #endif //TUNPACKPROCESSOR_H
TH1 * hDeltaN
sequence number diff of events
Definition: TSaftProc.h:53
TH1 * hDeltaT_deadline_fine
time difference of subsequent events, fine detail of deadline
Definition: TSaftProc.h:50
TH1 * hDeltaT
"executed" time difference of subsequent events
Definition: TSaftProc.h:41
unsigned fLastEventNumber
remember last mbs event number received
Definition: TSaftProc.h:66
static std::string FormatDate(uint64_t time, uint32_t pmode)
stolen from saftlib to check the real time stamp delivered:
Definition: TSaftProc.cxx:345
TH1 * hOverflowScaler
scaler for total overflow counter versus timing events without loss
Definition: TSaftProc.h:63
uint64_t fLastTime
remember last time stamp (executed) received
Definition: TSaftProc.h:69
TH1 * hLostSequence
counts lost events by checking leading/trailing edge alternation
Definition: TSaftProc.h:56
TH1 * hOverflowCounts
histogram of increase of overflow counter as taken from action sink.
Definition: TSaftProc.h:59
TH1 * hDeltaT_deadline
"deadline" time difference of subsequent events
Definition: TSaftProc.h:44
TSaftParam * fPar
Definition: TSaftProc.h:38
TH1 * hDeltaT_coarse
time difference of subsequent events, coarse range overview
Definition: TSaftProc.h:47
virtual ~TSaftProc()
Definition: TSaftProc.cxx:60
Bool_t BuildEvent(TGo4EventElement *)
Definition: TSaftProc.cxx:105
uint64_t fLastFlipTime
remember last time stamp of large deltat
Definition: TSaftProc.h:76
uint64_t fLastTimeDeadline
remember last time stamp (deadling) received
Definition: TSaftProc.h:73