BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
McEventCnv Class Reference

#include <McEventCnv.h>

Inheritance diagram for McEventCnv:

Public Member Functions

 McEventCnv (ISvcLocator *svcloc)
StatusCode createObj (IOpaqueAddress *pAddr, DataObject *&pObj)
virtual long repSvcType () const
Public Member Functions inherited from Converter< Ty1, Ty2 >
destinationoperator (const source &) const
destinationoperator (const source &) const
destinationoperator (const source &) const

Static Public Member Functions

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

Friends

class CnvFactory< McEventCnv >

Additional Inherited Members

Public Types inherited from Converter< Ty1, Ty2 >
typedef Ty1 source
typedef Ty2 destination
typedef Ty1 source
typedef Ty2 destination
typedef Ty1 source
typedef Ty2 destination
Protected Member Functions inherited from Converter< Ty1, Ty2 >
virtual destinationconvert (const source &) const =0
virtual destinationconvert (const source &) const =0
virtual destinationconvert (const source &) const =0

Detailed Description

Definition at line 17 of file McEventCnv.h.

Constructor & Destructor Documentation

◆ McEventCnv()

McEventCnv::McEventCnv ( ISvcLocator * svcloc)

Definition at line 15 of file McEventCnv.cxx.

16 : Converter( McCnvSvc::storageType(), classID(), svcloc ) {}
static unsigned char storageType()
storage type
Definition McCnvSvc.cxx:86
static const CLID & classID()
Definition McEventCnv.h:29

Member Function Documentation

◆ classID()

const CLID & McEventCnv::classID ( )
inlinestatic

Definition at line 29 of file McEventCnv.h.

29{ return CLID_Event; }
const CLID & CLID_Event

Referenced by McEventCnv().

◆ createObj()

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

Definition at line 18 of file McEventCnv.cxx.

18 {
19 McAddress* pMcAddr;
20 pMcAddr = dynamic_cast<McAddress*>( pAddr );
21
22 Event::EventHeader* eventHeader = new Event::EventHeader;
23 eventHeader->setEventNumber( pMcAddr->eventNumber() );
24 eventHeader->setRunNumber( pMcAddr->runNumber() );
25 pObj = eventHeader;
26
27 return StatusCode::SUCCESS;
28}
void setRunNumber(int value)
Update run number.
void setEventNumber(int value)
Update event number.
unsigned int eventNumber() const
Definition McAddress.h:39
int runNumber() const
Definition McAddress.h:38

◆ repSvcType()

long McEventCnv::repSvcType ( ) const
virtual

Definition at line 32 of file McEventCnv.cxx.

32{ return McCnvSvc::storageType(); }

◆ storageType()

unsigned char McEventCnv::storageType ( )
static

Storage type and class ID.

Definition at line 30 of file McEventCnv.cxx.

30{ return McCnvSvc::storageType(); }

Referenced by McEventCnv().

◆ CnvFactory< McEventCnv >

friend class CnvFactory< McEventCnv >
friend

Definition at line 7 of file McEventCnv.h.


The documentation for this class was generated from the following files: