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

EventCnv.cpp

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/GlastSvc/src/EventSelector/EventCnv.cpp,v 1.2 2001/04/19 01:32:29 igable Exp $
00002 #define EVENTCNV_CPP 
00003 
00004 
00005 // Include files
00006 #include "GaudiKernel/CnvFactory.h"
00007 #include "GaudiKernel/RegistryEntry.h"
00008 #include "EventCnv.h"
00009 #include "GaudiKernel/MsgStream.h"
00010 
00011 #include "GlastEvent/TopLevel/Event.h"
00012 
00013 
00014 
00015 // RCS Id for identification of object version
00016 static const char* rcsid = "$Id: EventCnv.cpp,v 1.2 2001/04/19 01:32:29 igable Exp $";
00017 
00018 
00019 //------------------------------------------------------------------------------
00020 //
00021 // Implementation of class :  EventCnv
00022 //
00023 // Modified SicbEventCnv
00024 //
00025 //------------------------------------------------------------------------------
00026 
00027 
00028 // Instantiation of a static factory class used by clients to create
00029 // instances of this service
00030 static CnvFactory<EventCnv> s_factory;
00031 const ICnvFactory& EventCnvFactory = s_factory;
00032 
00033 
00034 StatusCode EventCnv::updateObj(int* iarray, Event* pEvent)             {
00035   MsgStream log(messageService(), "EventCnv");
00036   log << MSG::DEBUG << "EventCnv::updateObj" << endreq;
00037   return StatusCode::SUCCESS;
00038 }
00039 
00040 /*
00041 
00042 StatusCode EventCnv::updateObjRefs(int* iarray, Event* pEvent)         {
00043   MsgStream log(messageService(), "EventCnv");
00044   log << MSG::DEBUG << "EventCnv::updateObjRefs" << endreq;
00045 
00046   RegistryEntry*  ent = dynamic_cast<RegistryEntry*>(pEvent->directory());
00047   if ( 0 != ent )   {
00048     Address* addr = dynamic_cast<Address*>(pEvent->address());
00049     if ( 0 != addr )  {
00050       const std::string& fid = addr->dbName();
00051       int recid = addr->sicbInfo()->entryID();
00052       return StatusCode::SUCCESS;
00053     }
00054   }
00055   return StatusCode::FAILURE;
00056 }
00057 */
00058 
00059 
00061 EventCnv::EventCnv(ISvcLocator* svc)
00062   : ItemCnv<Event>(svc)                                  
00063 {
00064       declareObject("/Event", objType(), "PASS");
00065 }
00066 
00067 
00069 EventCnv::~EventCnv() { }
00070 

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