ATLAS Offline Software
Loading...
Searching...
No Matches
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
16namespace 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
80std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibEventInfo& info);
81
82#endif // MuonCalibEventInfo_h
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibEventInfo &info)
MuonCalib::MuonCalibEventInfo: a class which stores the following information of an event:
MuonCalibEventInfo(const MuonCalibEventInfo &eventInfo)=default
copyconstructor
std::string m_tag
reconstruction tag member
void setLumiBlock(const unsigned int lumi_block)
sets lumiblock
void setTag(const std::string &tag)
sets reconstruction tag
unsigned int m_bcId
bcId member
unsigned int timeStamp() const
retrieving timestamp of MuonCalibEvent
void setEventNumber(const unsigned int event_number)
sets eventnumber
void setRunNumber(const unsigned int run_number)
sets runnumber
MuonCalibEventInfo & operator=(const MuonCalibEventInfo &eventInfo)=default
void setBcId(const unsigned int bc_id)
sets bcid
unsigned int lumiBlock() const
retrieving lumiblock of MuonCalibEvent
unsigned int runNumber() const
retrieving runnumber of MuonCalibEvent
unsigned int m_runNumber
runnumber member
const std::string & tag() const
retrieving reconstruction tag of MuonCalibEvent
void setNumberOfTriggerBits(unsigned int n)
unsigned int bcId() const
retrieving bcid of MuonCalibEvent
~MuonCalibEventInfo()=default
destructor
const std::vector< bool > & triggerBits() const
unsigned int m_eventNumber
eventnumber member
unsigned int m_timeStamp
timestamp member
void setTriggerBit(unsigned int n, bool bit)
unsigned int eventNumber() const
retrieving eventnumber of MuonCalibevent
unsigned int m_lumiBlock
lumiBlock member
void setTimeStamp(const unsigned int time_stamp)
sets timestamp
std::vector< bool > m_trigger_bits
Trigger bits.
MuonCalibEventInfo()=default
Default constructor.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
-event-from-file