ATLAS Offline Software
Loading...
Searching...
No Matches
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
10// //
11// Trigger pattern for an event.
12// //
14
15#include "GaudiKernel/MsgStream.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),
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;
59 TBEventInfo& operator=(const TBEventInfo&) = default;
61
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
88 unsigned int m_run_num;
90 std::string m_beam_part;
91 float m_cryoX;
93 float m_tableY;
94
95};
96
97CLASS_DEF( TBEventInfo , 168973241 , 1 )
98
99#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
float m_tableY
Definition TBEventInfo.h:93
TBEventInfo & operator=(const TBEventInfo &)=default
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(TBEventInfo &&)=default
TBEventInfo & operator=(TBEventInfo &&)=default
float getBeamMomentum() const
Definition TBEventInfo.h:73
unsigned int m_run_num
Definition TBEventInfo.h:88
float getTableY() const
Definition TBEventInfo.h:77
TBEventInfo(const TBEventInfo &)=default
float getCryoAngle() const
Definition TBEventInfo.h:76
int getEventNum() const
Definition TBEventInfo.h:69
const std::string & getBeamParticle() const
Definition TBEventInfo.h:74
int getEventClock() const
Definition TBEventInfo.h:70
float getCryoX() const
Definition TBEventInfo.h:75
float m_beam_moment
Definition TBEventInfo.h:89
float m_cryoAngle
Definition TBEventInfo.h:92
int getEventType() const
Definition TBEventInfo.h:71
unsigned int getRunNum() const
Definition TBEventInfo.h:72
float m_cryoX
Definition TBEventInfo.h:91
std::string m_beam_part
Definition TBEventInfo.h:90