McEventCnv Class Reference

#include <McEventCnv.h>

Inheritance diagram for McEventCnv:

Converter< Ty1, Ty2 > List of all members.

Public Types

typedef Ty1 source
typedef Ty2 destination

Public Member Functions

StatusCode createObj (IOpaqueAddress *pAddr, DataObject *&pObj)
virtual long repSvcType () const
destinationoperator (const source &) const

Static Public Member Functions

static unsigned char storageType ()
 Storage type and class ID.
static const CLID & classID ()

Protected Member Functions

 McEventCnv (ISvcLocator *svcloc)
virtual destinationconvert (const source &) const =0

Friends

class CnvFactory< McEventCnv >

Detailed Description

Definition at line 17 of file McEventCnv.h.


Member Typedef Documentation

template<class Ty1, class Ty2>
typedef Ty2 Converter< Ty1, Ty2 >::destination [inherited]

Definition at line 19 of file Converter.h.

template<class Ty1, class Ty2>
typedef Ty1 Converter< Ty1, Ty2 >::source [inherited]

Definition at line 18 of file Converter.h.


Constructor & Destructor Documentation

McEventCnv::McEventCnv ( ISvcLocator *  svcloc  )  [protected]

Definition at line 13 of file McEventCnv.cxx.

00013                                           :
00014   Converter(McCnvSvc::storageType(), classID(), svcloc) { 
00015 }


Member Function Documentation

static const CLID& McEventCnv::classID (  )  [inline, static]

Definition at line 30 of file McEventCnv.h.

References CLID_Event.

00030                                {
00031     return CLID_Event;
00032   }                 

template<class Ty1, class Ty2>
virtual destination* Converter< Ty1, Ty2 >::convert ( const source  )  const [protected, pure virtual, inherited]

StatusCode McEventCnv::createObj ( IOpaqueAddress *  pAddr,
DataObject *&  pObj 
)

Definition at line 18 of file McEventCnv.cxx.

References McAddress::eventNumber(), and McAddress::runNumber().

00018                                                               {
00019   McAddress *pMcAddr;
00020   pMcAddr = dynamic_cast<McAddress*>(pAddr);
00021  
00022   Event::EventHeader *eventHeader = new Event::EventHeader;
00023   eventHeader->setEventNumber(pMcAddr->eventNumber());
00024   eventHeader->setRunNumber(pMcAddr->runNumber());
00025   pObj = eventHeader;
00026 
00027   return StatusCode::SUCCESS;    
00028 }

template<class Ty1, class Ty2>
destination* Converter< Ty1, Ty2 >::operator ( const source  )  const [inline, inherited]

long McEventCnv::repSvcType (  )  const [virtual]

Definition at line 35 of file McEventCnv.cxx.

References McCnvSvc::storageType().

00035                                   {
00036   return McCnvSvc::storageType();
00037 }

unsigned char McEventCnv::storageType (  )  [static]

Storage type and class ID.

Definition at line 31 of file McEventCnv.cxx.

References McCnvSvc::storageType().

00031                                       {
00032   return McCnvSvc::storageType();
00033 }    


Friends And Related Function Documentation

friend class CnvFactory< McEventCnv > [friend]

Definition at line 18 of file McEventCnv.h.


Generated on Tue Nov 29 23:20:05 2016 for BOSS_7.0.2 by  doxygen 1.4.7