BOSS 6.6.4.p01
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/Kernel.h"
19#include "GaudiKernel/GenericAddress.h"
20
21
22class McAddress : public GenericAddress {
23public:
24 /// Standard Destructor
25 virtual ~McAddress() {}; //doesn't own event
26
27 /// Standard Constructor
28 McAddress(const CLID& clid, const std::string& fname,
29 const std::string& cname);
30
31 McAddress(const CLID& clid, const std::string& fname,
32 const int& run, const int& event, const std::string& cname);
33
34 ///Event accessors
35 inline void setRunEvt(int run, unsigned int evt) {
36 m_runNo = run;
37 m_eventNo = evt;
38 }
39
40 int runNumber() const { return m_runNo; }
41 unsigned int eventNumber() const { return m_eventNo; }
42
43private:
44 int m_runNo;
45 unsigned int m_eventNo;
46};
47#endif // MCEVENTSELECTOR_MCADDRESS_H
48
unsigned int eventNumber() const
Definition: McAddress.h:41
int runNumber() const
Definition: McAddress.h:40
void setRunEvt(int run, unsigned int evt)
Event accessors.
Definition: McAddress.h:35
virtual ~McAddress()
Standard Destructor.
Definition: McAddress.h:25