/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Event/RootCnvSvc/RootCnvSvc-02-01-12/RootCnvSvc/Mc/McCnv.h

Go to the documentation of this file.
00001 #ifndef McCnv_H
00002 #define McCnv_H 1
00003 
00004 #include "RootCnvSvc/RootEventBaseCnv.h"
00005 
00006 #include "RootEventData/TMcEvent.h"
00007 #include "RootCnvSvc/commonData.h"   //zoujh
00008 
00009 extern const CLID& CLID_McEvent;
00010 
00011 // Abstract factory to create the converter
00012 template <class TYPE> class CnvFactory;
00013 
00020 class McCnv : public RootEventBaseCnv { 
00021 
00022   friend class CnvFactory<McCnv>;
00023 
00024 public: 
00025   static const CLID& classID()   
00026   {
00027     return CLID_McEvent;
00028   }
00029 
00030   virtual ~McCnv() { };
00031 
00032   virtual StatusCode initialize();
00033 
00035   static TMcEvent* getWriteObject() { return m_objWrite;}
00036  
00037  protected:
00038   McCnv(ISvcLocator* svc);
00039 
00041   virtual StatusCode DataObjectToTObject(DataObject* obj, RootAddress* addr);
00042 
00044   virtual StatusCode TObjectToDataObject(DataObject*& refpObject);
00045 
00046 private:
00048   static TMcEvent* m_objWrite;
00049 
00051   Int_t m_runId;  
00053   Int_t m_eventId;
00054 
00055     
00056   commonData m_common;
00057 };
00058 
00059 #endif // McCnv_H

Generated on Tue Nov 29 22:58:37 2016 for BOSS_7.0.2 by  doxygen 1.4.7