GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KeyWatchers.h
Go to the documentation of this file.
1 #ifndef KeyWatcher_H
2 #define KeyWatcher_H
3 
4 #include "Rtypes.h"
5 #include "CanvasVisu.h"
6 #include "Watchers.h"
7 #include "BufferIO.h"
8 
9 class TH2;
10 class BashColor;
11 
12 using namespace ADF;
13 using namespace Gw;
14 
15 
16 class KeyWatcher : public Watcher, public CanvasVisu
17 {
18 private:
19  BashColor *fBashColor;
20 
21 private:
22  unsigned int fNevts;
23  unsigned int fNBackwardTS;
24  unsigned int fNBackwardInBackwardTS;
25  unsigned int fNRepeatedEvts;
26 
27 protected:
28 
31 
33 
34  TH1F *fHistInSec;
35  TH1F *fHistInMin;
36  TH1F *fHistInH;
37 
38  UInt_t fNNullTS;
39  TH1F *fHistInSec0;
40  TH1F *fHistInMin0;
41  TH1F *fHistInH0;
42 
46 
47  double NextCycleSec;
48  double NextCycleMin;
49  double NextCycleH;
50 
52  TH1 *fHistFold;
53  TH1 *fHistDTPSA;
57 
58  ULong64_t FirstTimeStamp;
59  ULong64_t FirstEventNumber;
60  ULong64_t LastTimeStamp;
61  ULong64_t LastGoodTimeStamp;
62  ULong64_t lastEventNumber;
63 
64  double fLastFillSec;
65  double fLastFillMin;
66  double fLastFillH;
67 
68 protected:
69  FILE *fDumpKeyFile;
71  TString fFileName;
72 
73 public:
74  KeyWatcher(const char * name, const char * title, TDirectory *sp_dir = 0x0, TDirectory *tag_dir = 0x0);
75  virtual ~KeyWatcher() {;}
76 
77  virtual Bool_t SetTrigger( ADF::DFTrigger */*trigger*/ = 0x0 );
78 
79  virtual void ShowTSDist(const char *option="hist"); //*MENU*
80 
81  virtual void Exec(Option_t * option="");
82 
83  virtual void ResetTo(const char *option = "all"); //*MENU*
84 
85  void ShowMessageType(); //*MENU*
86 
87  virtual void ShowCanvas(Option_t){;}
88 
89  ULong64_t GetFirstTS(){return FirstTimeStamp;}
90  ULong64_t GetFirstEN(){return FirstEventNumber;}
91 
92  void DumpKeys(bool ActiveDump = false); //*MENU*;
93 
94  virtual void Print(const char *option="") const; //*MENU*
95  void ResetStats(); //*MENU*
96 
97 
98  ClassDef(KeyWatcher,0) // To get a 3D map of hits in a particular crystal
99 };
100 
101 #endif
102 
double NextCycleMin
Definition: KeyWatchers.h:48
TString fFileName
Definition: KeyWatchers.h:71
double NextCycleSec
Definition: KeyWatchers.h:47
ULong64_t LastTimeStamp
Definition: KeyWatchers.h:60
double NextCycleH
Definition: KeyWatchers.h:49
TH1F * fHistInSec
Definition: KeyWatchers.h:34
TH1F * fHistInMin0
Definition: KeyWatchers.h:40
bool IsDumpKeysActive
Definition: KeyWatchers.h:70
TH2 * fHistDTEventPerCrystal
Definition: KeyWatchers.h:56
TH1F * fHistInMinMetaSync
Definition: KeyWatchers.h:44
Base class for a Watcher.
Definition: Watchers.h:60
ULong64_t GetFirstTS()
Definition: KeyWatchers.h:89
TH2 * fHistDTPerCrystal
Definition: KeyWatchers.h:55
SharedFP * fPSAFrame
Definition: KeyWatchers.h:30
header file for BufferIO.cpp
ULong64_t FirstEventNumber
Definition: KeyWatchers.h:59
BufferIO * fBufferToRead
Definition: KeyWatchers.h:32
virtual void ShowCanvas(Option_t)
Definition: KeyWatchers.h:87
TH1F * fHistInH0
Definition: KeyWatchers.h:41
ULong64_t FirstTimeStamp
Definition: KeyWatchers.h:58
ULong64_t lastEventNumber
Definition: KeyWatchers.h:62
TH1F * fHistInHMetaSync
Definition: KeyWatchers.h:45
A Shared Frame Pointer.
Definition: Frame.h:597
TH1F * fHistInH
Definition: KeyWatchers.h:36
double fLastFillSec
Definition: KeyWatchers.h:64
TH1 * fHistMessageType
Definition: KeyWatchers.h:51
Base class for a trigger on a data flow.
Definition: Trigger.h:155
double fLastFillMin
Definition: KeyWatchers.h:65
double fLastFillH
Definition: KeyWatchers.h:66
ULong64_t GetFirstEN()
Definition: KeyWatchers.h:90
TH1F * fHistInSec0
Definition: KeyWatchers.h:39
TH1 * fHistFold
Definition: KeyWatchers.h:52
TH1F * fHistInMin
Definition: KeyWatchers.h:35
TH1F * fHistInSecMetaSync
Definition: KeyWatchers.h:43
TH1 * fHistDTEvent
Definition: KeyWatchers.h:54
ULong64_t LastGoodTimeStamp
Definition: KeyWatchers.h:61
SharedFP * fFrame
Definition: KeyWatchers.h:29
FILE * fDumpKeyFile
Definition: KeyWatchers.h:69
virtual ~KeyWatcher()
Definition: KeyWatchers.h:75
TH1 * fHistDTPSA
Definition: KeyWatchers.h:53
UInt_t fNNullTS
Definition: KeyWatchers.h:38