00001
00002
00004 #ifndef __GlitchCoupling__
00005 #define __GlitchCoupling__
00006
00007 #include "Coinc.h"
00008 #include "TriggerSelect.h"
00009 #include "TH2.h"
00010 #include "TGraph.h"
00011
00012 using namespace std;
00013
00030 class GlitchCoupling: public Coinc {
00031
00032 public:
00033
00042 GlitchCoupling(const int aVerbose=0);
00043
00047 virtual ~GlitchCoupling(void);
00058 bool SetTriggers(const int aC, ReadTriggers *aTriggers);
00059
00060 inline bool SetSegments(Segments *aSeg){ return Coinc::SetSegments(aSeg); };
00061 bool WriteMonitors(const string aRootFileName);
00062
00063 private:
00064
00065
00066 ReadTriggers *triggers[2];
00067 string triggertype[2];
00068 TriggerSelect* Tselect[2];
00069
00070
00071 void ResetMonitors(const int aC);
00072 void Monitor(const int aC);
00073 TH2D *h_stat[2], *h_stat_cum[2];
00074 TH2D *h_glitchtime[2], *h_glitchtime_cum[2];
00075
00076
00077
00078 ClassDef(GlitchCoupling,0)
00079 };
00080
00081 #endif
00082
00083