Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

MCEventCnv.cpp

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 //
00003 // Implementation of class :  MCEventCnv
00004 //
00005 // Author :                   
00006 //
00007 //------------------------------------------------------------------------------
00008 // $Header: /nfs/slac/g/glast/ground/cvs/GlastSvc/src/EventSelector/MCEventCnv.cpp,v 1.3 2001/08/27 04:17:43 burnett Exp $
00009 #define CNV_MCEVENTCNV_CPP 
00010 
00011 // Include files
00012 #include "GaudiKernel/CnvFactory.h"
00013 #include "MCEventCnv.h"
00014 
00015 // GlastEvent for creating the McEvent stuff
00016 #include "GlastEvent/TopLevel/MCEvent.h"
00017 
00018 #include "GaudiKernel/IDataProviderSvc.h"
00019 #include "GaudiKernel/ObjectVector.h"
00020 
00021 // RCS Id for identification of object version
00022 static const char* rcsid = "$Id: MCEventCnv.cpp,v 1.3 2001/08/27 04:17:43 burnett Exp $";
00023 
00024 // Instantiation of a static factory class used by clients to create
00025 // instances of this service
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()   { }

Generated at Wed Nov 21 12:21:13 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000