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

#include <McAddress.h>

Inheritance diagram for McAddress:

Public Member Functions

virtual ~McAddress ()
 Standard Destructor.
 McAddress (const CLID &clid, const std::string &fname, const std::string &cname)
 Standard Constructor.
 McAddress (const CLID &clid, const std::string &fname, const int &run, const int &event, const std::string &cname)
void setRunEvt (int run, unsigned int evt)
 Event accessors.
int runNumber () const
unsigned int eventNumber () const

Detailed Description

Definition at line 21 of file McAddress.h.

Constructor & Destructor Documentation

◆ ~McAddress()

virtual McAddress::~McAddress ( )
inlinevirtual

Standard Destructor.

Definition at line 24 of file McAddress.h.

24{}; // doesn't own event

◆ McAddress() [1/2]

McAddress::McAddress ( const CLID & clid,
const std::string & fname,
const std::string & cname )

Standard Constructor.

Definition at line 25 of file McAddress.cxx.

26 : GenericAddress( McCnvSvc::storageType(), clid, fname, cname )
27 , m_runNo( 0 )
28 , m_eventNo( 0 ) {}
static unsigned char storageType()
storage type
Definition McCnvSvc.cxx:86

◆ McAddress() [2/2]

McAddress::McAddress ( const CLID & clid,
const std::string & fname,
const int & run,
const int & event,
const std::string & cname )

Definition at line 29 of file McAddress.cxx.

31 : GenericAddress( McCnvSvc::storageType(), clid, fname, cname )
32 , m_runNo( run )
33 , m_eventNo( event ) {}

Member Function Documentation

◆ eventNumber()

unsigned int McAddress::eventNumber ( ) const
inline

Definition at line 39 of file McAddress.h.

39{ return m_eventNo; }

Referenced by McEventCnv::createObj().

◆ runNumber()

int McAddress::runNumber ( ) const
inline

Definition at line 38 of file McAddress.h.

38{ return m_runNo; }

Referenced by McEventCnv::createObj().

◆ setRunEvt()

void McAddress::setRunEvt ( int run,
unsigned int evt )
inline

Event accessors.

Definition at line 33 of file McAddress.h.

33 {
34 m_runNo = run;
35 m_eventNo = evt;
36 }

Referenced by McEventSelector::createAddress().


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