ATLAS Offline Software
MuonCalibEventInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //*********************************************************//
6 // Class to store event information in for MuonCalibEvent //
7 //*********************************************************//
8 
9 #ifndef MUONCALIBEVTBASE_MuonCalibEventInfo_h
10 #define MUONCALIBEVTBASE_MuonCalibEventInfo_h
11 
12 #include <iostream>
13 #include <string>
14 #include <vector>
15 
16 namespace MuonCalib {
33  public:
34  MuonCalibEventInfo() = default;
35  MuonCalibEventInfo(const MuonCalibEventInfo& eventInfo) = default;
36  MuonCalibEventInfo& operator=(const MuonCalibEventInfo& eventInfo) = default; // !< assignment operator
37  ~MuonCalibEventInfo() = default;
38 
39  MuonCalibEventInfo(unsigned int run_number, unsigned int event_number);
40  MuonCalibEventInfo(unsigned int run_number, unsigned int event_number,
41  unsigned int time_stamp);
42  MuonCalibEventInfo(unsigned int run_number, unsigned int event_number, unsigned int time_stamp, unsigned int lumi_block,
43  unsigned int bc_id);
44  MuonCalibEventInfo(unsigned int run_number, unsigned int event_number, unsigned int time_stamp,
45  std::string tag);
46  MuonCalibEventInfo(unsigned int run_number, unsigned int event_number, unsigned int time_stamp, unsigned int lumi_block,
47  unsigned int bc_id, std::string tag);
48 
49  std::ostream& dump(std::ostream& stream) const;
50 
51  unsigned int runNumber() const;
52  unsigned int eventNumber() const;
53  unsigned int timeStamp() const;
54  unsigned int lumiBlock() const;
55  unsigned int bcId() const;
56  const std::string& tag() const;
57  const std::vector<bool>& triggerBits() const;
58 
59  void setRunNumber(const unsigned int run_number);
60  void setEventNumber(const unsigned int event_number);
61  void setTimeStamp(const unsigned int time_stamp);
62  void setLumiBlock(const unsigned int lumi_block);
63  void setBcId(const unsigned int bc_id);
64  void setTag(const std::string& tag);
65  void setNumberOfTriggerBits(unsigned int n);
66  void setTriggerBit(unsigned int n, bool bit);
67 
68  private:
69  unsigned int m_runNumber{0};
70  unsigned int m_eventNumber{0};
71  unsigned int m_timeStamp{0};
72  unsigned int m_lumiBlock{0};
73  unsigned int m_bcId{0};
74  std::string m_tag{"none"};
75  std::vector<bool> m_trigger_bits;
76  };
77 
78 } // namespace MuonCalib
79 
80 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibEventInfo& info);
81 
82 #endif // MuonCalibEventInfo_h
grepfile.info
info
Definition: grepfile.py:38
MuonCalib::MuonCalibEventInfo::bcId
unsigned int bcId() const
retrieving bcid of MuonCalibEvent
Definition: MuonCalibEventInfo.cxx:15
MuonCalib::MuonCalibEventInfo::setTag
void setTag(const std::string &tag)
sets reconstruction tag
Definition: MuonCalibEventInfo.cxx:24
plotting.plot_kinematics.run_number
run_number
Definition: plot_kinematics.py:29
MuonCalib::MuonCalibEventInfo::m_timeStamp
unsigned int m_timeStamp
timestamp member
Definition: MuonCalibEventInfo.h:71
MuonCalib::MuonCalibEventInfo::lumiBlock
unsigned int lumiBlock() const
retrieving lumiblock of MuonCalibEvent
Definition: MuonCalibEventInfo.cxx:14
MuonCalib::MuonCalibEventInfo::setEventNumber
void setEventNumber(const unsigned int event_number)
sets eventnumber
Definition: MuonCalibEventInfo.cxx:20
MuonCalib::MuonCalibEventInfo::m_tag
std::string m_tag
reconstruction tag member
Definition: MuonCalibEventInfo.h:74
MuonCalib::MuonCalibEventInfo::m_eventNumber
unsigned int m_eventNumber
eventnumber member
Definition: MuonCalibEventInfo.h:70
MuonCalib::MuonCalibEventInfo::setNumberOfTriggerBits
void setNumberOfTriggerBits(unsigned int n)
Definition: MuonCalibEventInfo.cxx:25
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibEventInfo &info)
Definition: MuonCalibEventInfo.cxx:58
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibEventInfo::operator=
MuonCalibEventInfo & operator=(const MuonCalibEventInfo &eventInfo)=default
MuonCalib::MuonCalibEventInfo::m_lumiBlock
unsigned int m_lumiBlock
lumiBlock member
Definition: MuonCalibEventInfo.h:72
MuonCalib::MuonCalibEventInfo::dump
std::ostream & dump(std::ostream &stream) const
Definition: MuonCalibEventInfo.cxx:45
MuonCalib::MuonCalibEventInfo::setRunNumber
void setRunNumber(const unsigned int run_number)
sets runnumber
Definition: MuonCalibEventInfo.cxx:19
beamspotman.n
n
Definition: beamspotman.py:731
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibEventInfo::setTimeStamp
void setTimeStamp(const unsigned int time_stamp)
sets timestamp
Definition: MuonCalibEventInfo.cxx:21
MuonCalib::MuonCalibEventInfo::tag
const std::string & tag() const
retrieving reconstruction tag of MuonCalibEvent
Definition: MuonCalibEventInfo.cxx:16
MuonCalib::MuonCalibEventInfo::setTriggerBit
void setTriggerBit(unsigned int n, bool bit)
Definition: MuonCalibEventInfo.cxx:26
MuonCalib::MuonCalibEventInfo::m_bcId
unsigned int m_bcId
bcId member
Definition: MuonCalibEventInfo.h:73
MuonCalib::MuonCalibEventInfo::setBcId
void setBcId(const unsigned int bc_id)
sets bcid
Definition: MuonCalibEventInfo.cxx:23
MuonCalib::MuonCalibEventInfo::setLumiBlock
void setLumiBlock(const unsigned int lumi_block)
sets lumiblock
Definition: MuonCalibEventInfo.cxx:22
MuonCalib::MuonCalibEventInfo::~MuonCalibEventInfo
~MuonCalibEventInfo()=default
destructor
MuonCalib::MuonCalibEventInfo
Definition: MuonCalibEventInfo.h:32
MuonCalib::MuonCalibEventInfo::timeStamp
unsigned int timeStamp() const
retrieving timestamp of MuonCalibEvent
Definition: MuonCalibEventInfo.cxx:13
MuonCalib::MuonCalibEventInfo::runNumber
unsigned int runNumber() const
retrieving runnumber of MuonCalibEvent
Definition: MuonCalibEventInfo.cxx:11
MuonCalib::MuonCalibEventInfo::m_trigger_bits
std::vector< bool > m_trigger_bits
Trigger bits.
Definition: MuonCalibEventInfo.h:75
MuonCalib::MuonCalibEventInfo::m_runNumber
unsigned int m_runNumber
runnumber member
Definition: MuonCalibEventInfo.h:69
MuonCalib::MuonCalibEventInfo::MuonCalibEventInfo
MuonCalibEventInfo()=default
Default constructor.
MuonCalib::MuonCalibEventInfo::triggerBits
const std::vector< bool > & triggerBits() const
Definition: MuonCalibEventInfo.cxx:17
MuonCalib::MuonCalibEventInfo::MuonCalibEventInfo
MuonCalibEventInfo(const MuonCalibEventInfo &eventInfo)=default
copyconstructor
MuonCalib::MuonCalibEventInfo::eventNumber
unsigned int eventNumber() const
retrieving eventnumber of MuonCalibevent
Definition: MuonCalibEventInfo.cxx:12