00001 #ifndef MQINO_NTP_WRITER
00002 #define MQINO_NTP_WRITER
00003
00004 #include "QFileWriter.hh"
00005
00006 class TFile;
00007 class TTree;
00008 class TBranch;
00009
00010
00011 struct ntpw_t{
00012 short ch;
00013 short part;
00014 int ev;
00015 int meas;
00016 unsigned int utime;
00017 unsigned int ftime;
00018 float tdamp;
00019 float fdamp;
00020 float secpeakamp;
00021 float tvl;
00022 float tvr;
00023 float delay;
00024 float spdelay;
00025 float baseline;
00026 float baselineRMS;
00027 float maxmin;
00028 float rt;
00029 float dt;
00030 float afamp;
00031 float aftv;
00032 int type;
00033 };
00034
00035
00036 class MQinoNtpWriter : public QFileWriter {
00037
00038 public:
00039 MQinoNtpWriter(QSequence *s);
00040
00041 virtual ~MQinoNtpWriter();
00042
00043 void Open (const std::string& filename);
00044
00045
00046 void Dump(const QEvent& ev);
00047
00048
00049 void Close();
00050
00051 private:
00052 TFile *fRootOutputFile;
00053 TTree* fTree;
00054 struct ntpw_t fNtp;
00055
00056
00057 };
00058
00059 #endif