00001
00002
00003
00004
00005
00006
00007
00008
00009 #define CNV_MCEVENTCNV_CPP
00010
00011
00012 #include "GaudiKernel/CnvFactory.h"
00013 #include "MCEventCnv.h"
00014
00015
00016 #include "GlastEvent/TopLevel/MCEvent.h"
00017
00018 #include "GaudiKernel/IDataProviderSvc.h"
00019 #include "GaudiKernel/ObjectVector.h"
00020
00021
00022 static const char* rcsid = "$Id: MCEventCnv.cpp,v 1.3 2001/08/27 04:17:43 burnett Exp $";
00023
00024
00025
00026 static CnvFactory<MCEventCnv> s_factory;
00027 const ICnvFactory& MCEventCnvFactory = s_factory;
00028
00029
00031 MCEventCnv::MCEventCnv(ISvcLocator* svc)
00032 : BaseCnv(classID(), svc)
00033 {
00034 declareObject("/Event/MC", objType(), "PASS");
00035 }
00036
00037 StatusCode MCEventCnv::createObj(IOpaqueAddress* pAddress, DataObject*& refpObject)
00038 {
00039
00040 refpObject = new MCEvent;
00041
00042 StatusCode sc=StatusCode::SUCCESS;
00043
00044 return sc;
00045 }
00046
00047
00048 const CLID& MCEventCnv::classID(){ return MCEvent::classID();}
00049
00051 MCEventCnv::~MCEventCnv() { }