ATLAS Offline Software
TBEventInfo.h
Go to the documentation of this file.
1 //Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2024 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();
58 
60  // Data Manipulation //
62 
63  // void setBit(int i,bool status){if(i<m_triggers.size()) m_triggers[i]=status;}
64  int getEventNum() const {return m_ev_number;}
65  int getEventClock() const {return m_ev_clock;}
66  int getEventType() const {return m_ev_type;}
67  unsigned int getRunNum() const {return m_run_num;}
68  float getBeamMomentum() const {return m_beam_moment;}
69  const std::string& getBeamParticle() const {return m_beam_part;}
70  float getCryoX() const {return m_cryoX;}
71  float getCryoAngle() const {return m_cryoAngle;}
72  float getTableY() const {return m_tableY;}
73 
74  private:
75 
77  // Private Data //
79 
82  int m_ev_type;
83  unsigned int m_run_num;
85  std::string m_beam_part;
86  float m_cryoX;
87  float m_cryoAngle;
88  float m_tableY;
89 
90 };
91 
92 CLASS_DEF( TBEventInfo , 168973241 , 1 )
93 
94 #endif
TBEventInfo::m_ev_clock
int m_ev_clock
Definition: TBEventInfo.h:81
TBEventInfo::~TBEventInfo
~TBEventInfo()
Definition: TBEventInfo.cxx:13
TBEventInfo::getRunNum
unsigned int getRunNum() const
Definition: TBEventInfo.h:67
TBEventInfo::TBEventInfo
TBEventInfo()
Definition: TBEventInfo.h:35
TBEventInfo::getEventType
int getEventType() const
Definition: TBEventInfo.h:66
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:83
TBEventInfo::getTableY
float getTableY() const
Definition: TBEventInfo.h:72
TBEventInfo::m_cryoAngle
float m_cryoAngle
Definition: TBEventInfo.h:87
TBEventInfo::getCryoAngle
float getCryoAngle() const
Definition: TBEventInfo.h:71
TBEventInfo::getBeamParticle
const std::string & getBeamParticle() const
Definition: TBEventInfo.h:69
TBEventInfo::getEventNum
int getEventNum() const
Definition: TBEventInfo.h:64
TBEventInfo::m_beam_moment
float m_beam_moment
Definition: TBEventInfo.h:84
TBEventInfo::getEventClock
int getEventClock() const
Definition: TBEventInfo.h:65
TBEventInfo::m_ev_type
int m_ev_type
Definition: TBEventInfo.h:82
TBEventInfo::m_beam_part
std::string m_beam_part
Definition: TBEventInfo.h:85
TBEventInfo
Definition: TBEventInfo.h:27
TBEventInfo::m_cryoX
float m_cryoX
Definition: TBEventInfo.h:86
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:64
TBEventInfo::getBeamMomentum
float getBeamMomentum() const
Definition: TBEventInfo.h:68
TBEventInfo::getCryoX
float getCryoX() const
Definition: TBEventInfo.h:70
TBEventInfo::m_tableY
float m_tableY
Definition: TBEventInfo.h:88
CLASS_DEF.h
macros to associate a CLID to a type
TBEventInfo::m_ev_number
int m_ev_number
Definition: TBEventInfo.h:80