ATLAS Offline Software
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/Kernel.h"
24 #include "GaudiKernel/GenericAddress.h"
25 
26 
27 class McAddress : public GenericAddress {
28 public:
30  virtual ~McAddress() {}; //doesn't own event
31 
33  McAddress(const CLID& clid, const std::string& fname,
34  const std::string& cname);
35  McAddress(const CLID& clid, const std::string& fname,
36  const unsigned int& run, const uint64_t& event, const unsigned int& LB, const unsigned int& time);
37 
39  inline void setRunEvt(unsigned int run, uint64_t evt,
40  unsigned int LB, unsigned int time) {
41  m_runNo = run;
42  m_eventNo = evt;
43  m_LBNo = LB;
44  m_timeStamp = time;
45  }
46 
47  unsigned int runNumber() const { return m_runNo; }
48  uint64_t eventNumber() const { return m_eventNo; }
49  unsigned int lumiBlock() const { return m_LBNo; }
50  unsigned int timeStamp() const { return m_timeStamp; }
51 
52 private:
53  unsigned int m_runNo;
55  unsigned int m_LBNo;
56  unsigned int m_timeStamp;
57 };
58 #endif // MCEVENTSELECTOR_MCADDRESS_H
59 
60 
McAddress::timeStamp
unsigned int timeStamp() const
Definition: McAddress.h:50
CaloCellTimeCorrFiller.LB
LB
Definition: CaloCellTimeCorrFiller.py:37
McAddress::m_eventNo
uint64_t m_eventNo
Definition: McAddress.h:54
McAddress::runNumber
unsigned int runNumber() const
Definition: McAddress.h:47
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
McAddress::m_LBNo
unsigned int m_LBNo
Definition: McAddress.h:55
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
McAddress::McAddress
McAddress(const CLID &clid, const std::string &fname, const std::string &cname)
Standard Constructor.
Definition: McAddress.cxx:33
McAddress
Definition: McAddress.h:27
McAddress::setRunEvt
void setRunEvt(unsigned int run, uint64_t evt, unsigned int LB, unsigned int time)
Event accessors.
Definition: McAddress.h:39
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
McAddress::lumiBlock
unsigned int lumiBlock() const
Definition: McAddress.h:49
McAddress::eventNumber
uint64_t eventNumber() const
Definition: McAddress.h:48
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
run
Definition: run.py:1
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:56
McAddress::m_runNo
unsigned int m_runNo
Definition: McAddress.h:53
python.AthDsoLogger.fname
string fname
Definition: AthDsoLogger.py:67
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
McAddress::~McAddress
virtual ~McAddress()
Standard Destructor.
Definition: McAddress.h:30