ATLAS Offline Software
TBEventInfo.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef TBEVENT_TBEVENTINFO_H
8 #define TBEVENT_TBEVENTINFO_H
9 // //
11 // Trigger pattern for an event.
12 // //
14 
15 #include "GaudiKernel/MsgStream.h"
16 #include "AthenaKernel/CLASS_DEF.h"
17 
18 #include <string>
19 
20 
21 
22 
23 
24 
25 
27 {
28  public:
29 
30 
32  // Constructors and Destructor //
34 
36  : m_ev_number(0),
37  m_ev_clock(0),
38  m_ev_type(0),
39  m_run_num(0),
40  m_beam_moment(0),
41  m_cryoX(0),
42  m_cryoAngle(0),
43  m_tableY(0)
44  {
45  }
46 
47  TBEventInfo(int ev_number,
48  int ev_clock,
49  int ev_type,
50  unsigned int run_num,
51  float beam_moment,
52  const std::string& beam_part,
53  float cryoX,
54  float cryoAngle,
55  float tableY) : m_ev_number(ev_number), m_ev_clock(ev_clock), m_ev_type(ev_type), m_run_num(run_num), m_beam_moment(beam_moment), m_beam_part(beam_part), m_cryoX(cryoX), m_cryoAngle(cryoAngle), m_tableY(tableY) {};
56 
57  TBEventInfo(const TBEventInfo&) = default;
58  TBEventInfo(TBEventInfo&&) = default;
59  TBEventInfo& operator=(const TBEventInfo&) = default;
61 
62  ~TBEventInfo();
63 
65  // Data Manipulation //
67 
68  // void setBit(int i,bool status){if(i<m_triggers.size()) m_triggers[i]=status;}
69  int getEventNum() const {return m_ev_number;}
70  int getEventClock() const {return m_ev_clock;}
71  int getEventType() const {return m_ev_type;}
72  unsigned int getRunNum() const {return m_run_num;}
73  float getBeamMomentum() const {return m_beam_moment;}
74  const std::string& getBeamParticle() const {return m_beam_part;}
75  float getCryoX() const {return m_cryoX;}
76  float getCryoAngle() const {return m_cryoAngle;}
77  float getTableY() const {return m_tableY;}
78 
79  private:
80 
82  // Private Data //
84 
87  int m_ev_type;
88  unsigned int m_run_num;
90  std::string m_beam_part;
91  float m_cryoX;
92  float m_cryoAngle;
93  float m_tableY;
94 
95 };
96 
97 CLASS_DEF( TBEventInfo , 168973241 , 1 )
98 
99 #endif
TBEventInfo::m_ev_clock
int m_ev_clock
Definition: TBEventInfo.h:86
TBEventInfo::~TBEventInfo
~TBEventInfo()
Definition: TBEventInfo.cxx:13
TBEventInfo::getRunNum
unsigned int getRunNum() const
Definition: TBEventInfo.h:72
TBEventInfo::TBEventInfo
TBEventInfo(const TBEventInfo &)=default
TBEventInfo::TBEventInfo
TBEventInfo()
Definition: TBEventInfo.h:35
TBEventInfo::operator=
TBEventInfo & operator=(TBEventInfo &&)=default
TBEventInfo::getEventType
int getEventType() const
Definition: TBEventInfo.h:71
TBEventInfo::TBEventInfo
TBEventInfo(int ev_number, int ev_clock, int ev_type, unsigned int run_num, float beam_moment, const std::string &beam_part, float cryoX, float cryoAngle, float tableY)
Definition: TBEventInfo.h:47
TBEventInfo::m_run_num
unsigned int m_run_num
Definition: TBEventInfo.h:88
TBEventInfo::getTableY
float getTableY() const
Definition: TBEventInfo.h:77
TBEventInfo::m_cryoAngle
float m_cryoAngle
Definition: TBEventInfo.h:92
TBEventInfo::getCryoAngle
float getCryoAngle() const
Definition: TBEventInfo.h:76
TBEventInfo::getBeamParticle
const std::string & getBeamParticle() const
Definition: TBEventInfo.h:74
TBEventInfo::getEventNum
int getEventNum() const
Definition: TBEventInfo.h:69
TBEventInfo::m_beam_moment
float m_beam_moment
Definition: TBEventInfo.h:89
TBEventInfo::getEventClock
int getEventClock() const
Definition: TBEventInfo.h:70
TBEventInfo::m_ev_type
int m_ev_type
Definition: TBEventInfo.h:87
TBEventInfo::m_beam_part
std::string m_beam_part
Definition: TBEventInfo.h:90
TBEventInfo
Definition: TBEventInfo.h:27
TBEventInfo::m_cryoX
float m_cryoX
Definition: TBEventInfo.h:91
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
TBEventInfo::getBeamMomentum
float getBeamMomentum() const
Definition: TBEventInfo.h:73
TBEventInfo::operator=
TBEventInfo & operator=(const TBEventInfo &)=default
TBEventInfo::getCryoX
float getCryoX() const
Definition: TBEventInfo.h:75
TBEventInfo::TBEventInfo
TBEventInfo(TBEventInfo &&)=default
TBEventInfo::m_tableY
float m_tableY
Definition: TBEventInfo.h:93
CLASS_DEF.h
macros to associate a CLID to a type
TBEventInfo::m_ev_number
int m_ev_number
Definition: TBEventInfo.h:85