ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
McEventSelector
McEventSelector
McAddress.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//====================================================================
6
// McAddress.h
7
//--------------------------------------------------------------------
8
//
9
// Package : McEventSelector
10
//
11
// Description: Definition of Mc address object
12
//
13
// Author : P. Calafiura
14
//====================================================================
15
#ifndef MCEVENTSELECTOR_MCADDRESS_H
16
#define MCEVENTSELECTOR_MCADDRESS_H
17
18
// C/C++ include files
19
#include <string>
20
#include <cstdint>
21
22
// Framework include files
23
#include "GaudiKernel/GenericAddress.h"
24
25
26
class
McAddress
:
public
GenericAddress {
27
public
:
29
virtual
~McAddress
() {};
//doesn't own event
30
32
McAddress
(
const
CLID
& clid,
const
std::string& fname,
33
const
std::string& cname);
34
McAddress
(
const
CLID
& clid,
const
std::string& fname,
35
const
unsigned
int
&
run
,
const
uint64_t& event,
const
unsigned
int
& LB,
const
unsigned
int
& time);
36
38
inline
void
setRunEvt
(
unsigned
int
run
, uint64_t evt,
39
unsigned
int
LB,
unsigned
int
time) {
40
m_runNo
=
run
;
41
m_eventNo
= evt;
42
m_LBNo
= LB;
43
m_timeStamp
= time;
44
}
45
46
unsigned
int
runNumber
()
const
{
return
m_runNo
; }
47
uint64_t
eventNumber
()
const
{
return
m_eventNo
; }
48
unsigned
int
lumiBlock
()
const
{
return
m_LBNo
; }
49
unsigned
int
timeStamp
()
const
{
return
m_timeStamp
; }
50
51
private
:
52
unsigned
int
m_runNo
;
53
uint64_t
m_eventNo
;
54
unsigned
int
m_LBNo
;
55
unsigned
int
m_timeStamp
;
56
};
57
#endif
// MCEVENTSELECTOR_MCADDRESS_H
58
59
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
McAddress::m_timeStamp
unsigned int m_timeStamp
Definition
McAddress.h:55
McAddress::timeStamp
unsigned int timeStamp() const
Definition
McAddress.h:49
McAddress::eventNumber
uint64_t eventNumber() const
Definition
McAddress.h:47
McAddress::lumiBlock
unsigned int lumiBlock() const
Definition
McAddress.h:48
McAddress::m_LBNo
unsigned int m_LBNo
Definition
McAddress.h:54
McAddress::setRunEvt
void setRunEvt(unsigned int run, uint64_t evt, unsigned int LB, unsigned int time)
Event accessors.
Definition
McAddress.h:38
McAddress::runNumber
unsigned int runNumber() const
Definition
McAddress.h:46
McAddress::m_eventNo
uint64_t m_eventNo
Definition
McAddress.h:53
McAddress::~McAddress
virtual ~McAddress()
Standard Destructor.
Definition
McAddress.h:29
McAddress::m_runNo
unsigned int m_runNo
Definition
McAddress.h:52
McAddress::McAddress
McAddress(const CLID &clid, const std::string &fname, const std::string &cname)
Standard Constructor.
Definition
McAddress.cxx:33
run
int run(int argc, char *argv[])
Definition
ttree2hdf5.cxx:28
Generated on
for ATLAS Offline Software by
1.17.0