ATLAS Offline Software
MuonCalibEventInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include <utility>
6 
8 
9 namespace MuonCalib {
10 
11  unsigned int MuonCalibEventInfo::runNumber() const { return m_runNumber; }
12  unsigned int MuonCalibEventInfo::eventNumber() const { return m_eventNumber; }
13  unsigned int MuonCalibEventInfo::timeStamp() const { return m_timeStamp; }
14  unsigned int MuonCalibEventInfo::lumiBlock() const { return m_lumiBlock; }
15  unsigned int MuonCalibEventInfo::bcId() const { return m_bcId; }
16  const std::string& MuonCalibEventInfo::tag() const { return m_tag; }
17  const std::vector<bool> &MuonCalibEventInfo::triggerBits() const { return m_trigger_bits; }
18 
20  void MuonCalibEventInfo::setEventNumber(const unsigned int event_number) { m_eventNumber = event_number; }
21  void MuonCalibEventInfo::setTimeStamp(const unsigned int time_stamp) { m_timeStamp = time_stamp; }
22  void MuonCalibEventInfo::setLumiBlock(const unsigned int lumi_block) { m_lumiBlock = lumi_block; }
23  void MuonCalibEventInfo::setBcId(const unsigned int bc_id) { m_bcId = bc_id; }
24  void MuonCalibEventInfo::setTag(const std::string &tag) { m_tag = tag; }
26  void MuonCalibEventInfo::setTriggerBit(unsigned int n, bool bit) { m_trigger_bits[n] = bit; }
27 
28  MuonCalibEventInfo::MuonCalibEventInfo(unsigned int run_number, unsigned int event_number) :
29  m_runNumber{run_number}, m_eventNumber{event_number} {}
30 
31  MuonCalibEventInfo::MuonCalibEventInfo(unsigned int run_number, unsigned int event_number, unsigned int time_stamp) :
32  m_runNumber{run_number}, m_eventNumber{event_number}, m_timeStamp{time_stamp} {}
33 
34  MuonCalibEventInfo::MuonCalibEventInfo(unsigned int run_number, unsigned int event_number, unsigned int time_stamp,
35  unsigned int lumi_block, unsigned int bc_id) :
36  m_runNumber{run_number}, m_eventNumber{event_number}, m_timeStamp{time_stamp}, m_lumiBlock{lumi_block}, m_bcId{bc_id} {}
37 
38  MuonCalibEventInfo::MuonCalibEventInfo(unsigned int run_number, unsigned int event_number, unsigned int time_stamp, std::string tag) :
39  m_runNumber(run_number), m_eventNumber(event_number), m_timeStamp(time_stamp), m_lumiBlock(0), m_bcId(0), m_tag(std::move(tag)) {}
40 
41  MuonCalibEventInfo::MuonCalibEventInfo(unsigned int run_number, unsigned int event_number, unsigned int time_stamp,
42  unsigned int lumi_block, unsigned int bc_id, std::string tag) :
43  m_runNumber(run_number), m_eventNumber(event_number), m_timeStamp(time_stamp), m_lumiBlock(lumi_block), m_bcId(bc_id), m_tag(std::move(tag)) {}
44 
45  std::ostream &MuonCalibEventInfo::dump(std::ostream &stream) const {
46  stream << "MuonCalibEventInfo : " << std::endl;
47  stream << " runnumber = " << runNumber() << std::endl;
48  stream << " eventnumber = " << eventNumber() << std::endl;
49  stream << " timestamp = " << timeStamp() << std::endl;
50  stream << " lumiblock = " << lumiBlock() << std::endl;
51  stream << " bcid = " << bcId() << std::endl;
52  stream << " tag = " << tag() << std::endl;
53  return stream;
54  }
55 
56 } // namespace MuonCalib
57 
58 std::ostream &operator<<(std::ostream &stream, const MuonCalib::MuonCalibEventInfo &info) { return info.dump(stream); }
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
MuonCalibEventInfo.h
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
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
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
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibEventInfo &info)
Definition: MuonCalibEventInfo.cxx:58
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
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
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
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::eventNumber
unsigned int eventNumber() const
retrieving eventnumber of MuonCalibevent
Definition: MuonCalibEventInfo.cxx:12