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

#include <McEventCnv.h>

+ Inheritance diagram for McEventCnv:

Public Member Functions

StatusCode createObj (IOpaqueAddress *pAddr, DataObject *&pObj)
 
virtual long repSvcType () const
 
- Public Member Functions inherited from Converter< Ty1, Ty2 >
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)
 
- Protected Member Functions inherited from Converter< Ty1, Ty2 >
virtual destinationconvert (const source &) const =0
 

Friends

class CnvFactory< McEventCnv >
 

Additional Inherited Members

- Public Types inherited from Converter< Ty1, Ty2 >
typedef Ty1 source
 
typedef Ty2 destination
 

Detailed Description

Definition at line 17 of file McEventCnv.h.

Constructor & Destructor Documentation

◆ McEventCnv()

McEventCnv::McEventCnv ( ISvcLocator *  svcloc)
protected

Definition at line 13 of file McEventCnv.cxx.

13 :
15}
static unsigned char storageType()
storage type
Definition: McCnvSvc.cxx:90
static const CLID & classID()
Definition: McEventCnv.h:30

Member Function Documentation

◆ classID()

static const CLID & McEventCnv::classID ( )
inlinestatic

Definition at line 30 of file McEventCnv.h.

30 {
31 return CLID_Event;
32 }
const CLID & CLID_Event
Definition: EventModel.cxx:193

◆ 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.
Definition: EventHeader.h:44
void setEventNumber(int value)
Update event number.
Definition: EventHeader.h:39
unsigned int eventNumber() const
Definition: McAddress.h:41
int runNumber() const
Definition: McAddress.h:40

◆ repSvcType()

long McEventCnv::repSvcType ( ) const
virtual

Definition at line 35 of file McEventCnv.cxx.

35 {
36 return McCnvSvc::storageType();
37}

◆ storageType()

unsigned char McEventCnv::storageType ( )
static

Storage type and class ID.

Definition at line 31 of file McEventCnv.cxx.

31 {
32 return McCnvSvc::storageType();
33}

Friends And Related Function Documentation

◆ 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: