00001 #ifndef _QAEVENTR_HH 00002 #define _QAEVENTR_HH 00003 00009 #define QAEVENTR_NAME "QAEventR" 00010 00011 #include "QBaseEventR.hh" 00012 #include "QRawEventR.hh" 00013 #include <Rtypes.h> 00014 00015 namespace Cuore {class QEvent;} 00016 00017 using namespace std; 00018 00019 class QAEventR : public QBaseEventR { 00020 public: 00021 00022 QAEventR(bool isReading = true); 00023 00024 virtual ~QAEventR (); 00025 00026 QBaseRawEventR* GetBaseRawEvent() { return fRawEvent; } 00027 00028 const QBaseRawEventR* GetBaseRawEvent() const { return fRawEvent; } 00029 00030 QAEventR(const QAEventR&); 00031 00032 const QAEventR& operator=(const QAEventR&); 00033 00034 protected: 00035 00036 void Fill(Cuore::QEvent& ev) const; 00037 00038 void Init(); 00039 00041 QBaseRawEventR* fRawEvent; 00042 00043 friend class MARootFileWriter; 00044 friend class MRootFileReader; 00045 ClassDef (QAEventR, QRAWEVENT_CYCLE + 1) 00046 }; 00047 #endif 00048