BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
McAddress.h
Go to the documentation of this file.
1//====================================================================
2// McAddress.h
3//--------------------------------------------------------------------
4//
5// Package : McEventSelector
6//
7// Description: Definition of Mc address object
8//
9// Author : P. Calafiura
10//====================================================================
11#ifndef MCEVENTSELECTOR_MCADDRESS_H
12#define MCEVENTSELECTOR_MCADDRESS_H
13
14// C/C++ include files
15#include <string>
16
17// Framework include files
18#include "GaudiKernel/GenericAddress.h"
19#include "GaudiKernel/Kernel.h"
20
21class McAddress : public GenericAddress {
22public:
23 /// Standard Destructor
24 virtual ~McAddress(){}; // doesn't own event
25
26 /// Standard Constructor
27 McAddress( const CLID& clid, const std::string& fname, const std::string& cname );
28
29 McAddress( const CLID& clid, const std::string& fname, const int& run, const int& event,
30 const std::string& cname );
31
32 /// Event accessors
33 inline void setRunEvt( int run, unsigned int evt ) {
34 m_runNo = run;
35 m_eventNo = evt;
36 }
37
38 int runNumber() const { return m_runNo; }
39 unsigned int eventNumber() const { return m_eventNo; }
40
41private:
42 int m_runNo;
43 unsigned int m_eventNo;
44};
45#endif // MCEVENTSELECTOR_MCADDRESS_H
unsigned int eventNumber() const
Definition McAddress.h:39
int runNumber() const
Definition McAddress.h:38
void setRunEvt(int run, unsigned int evt)
Event accessors.
Definition McAddress.h:33
virtual ~McAddress()
Standard Destructor.
Definition McAddress.h:24
McAddress(const CLID &clid, const std::string &fname, const std::string &cname)
Standard Constructor.
Definition McAddress.cxx:25