00001 00040 #ifndef _QINO_ROOT_FILE_WRITER_H_ 00041 #define _QINO_ROOT_FILE_WRITER_H_ 00042 00043 #include "QCuore.hh" 00044 #include "QFileWriter.hh" 00045 00046 #include <list> 00047 #include <string> 00048 00049 class TFile; 00050 class QiTree; 00051 class QiEventR; 00052 00053 class MQinoRootFileWriter : public QFileWriter { 00054 00055 public: 00056 MQinoRootFileWriter(QSequence *s); 00057 00058 virtual ~MQinoRootFileWriter(); 00059 00060 void Open(const std::string& filename); 00061 00062 void Dump(const QEvent& ev); 00063 00064 void Close(); 00065 private: 00066 TFile *fRootOutput; 00067 QiTree* fTree; 00068 QiEventR* fEvent; 00069 std::string fDescription; 00070 std::map<std::string, std::string> fAliases; 00071 }; 00072 00073 #endif