ATLAS Offline Software
SCT_CalibEventInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef SCT_CalibEventInfo_h
12 #define SCT_CalibEventInfo_h
13 
15 
17 
18 #include "GaudiKernel/ToolHandle.h"
19 
20 #include <limits>
21 #include <string>
22 
23 class StatusCode;
24 class ISvcLocator;
25 class InterfaceID;
26 
27 class SCT_CalibEventInfo: public extends<AthAlgTool, ISCT_CalibEvtInfo>
28 {
29  public:
30  //@name Service methods, reimplemented
32  SCT_CalibEventInfo(const std::string&, const std::string&, const IInterface*);
33  virtual ~SCT_CalibEventInfo() = default;
34  virtual StatusCode initialize();
35  virtual StatusCode finalize();
37  //@name ISCT_CalibEvtinfo interface methods, implemented
39  virtual void setTimeStamp(const int begin, const int end);
40  virtual void setTimeStamp(const std::string& begin, const std::string& end);
41  virtual void setTimeStamp(const int ts);
42  virtual void getTimeStamps(int& begin, int& end) const;
43  virtual void getTimeStamps(std::string& begin, std::string& end) const;
44  virtual int timeStamp() const;
45  virtual int duration() const;
46 
47  virtual void setSource(const std::string & source);
48 
49  virtual void setLumiBlock(const int begin, const int end);
50  virtual void setLumiBlock(const int lb);
51  virtual void getLumiBlock(int& begin, int& end) const;
52  virtual int lumiBlock() const;
53  virtual int numLumiBlocks() const;
54 
55  virtual void setRunNumber(const int rn);
56  virtual void setEventNumber(const int en);
57  virtual int runNumber() const;
58  virtual int eventNumber() const;
59 
60  virtual void setCounter(const int counterVal);
61  virtual void incrementCounter();
62  virtual int counter() const;
63 
64  virtual void setBunchCrossing(const int bc);
66 
67  private:
68 
69  std::string m_tsBeginString{""};
70  std::string m_tsEndString{""};
73  int m_duration{0};
76  int m_numLB{0};
77  std::string m_source{"UNKNOWN"};
78 
79  //
80  int m_runNumber{0};
81  int m_eventNumber{0};
82  int m_lumiBlock{0};
83  int m_timeStamp{0};
85  int m_counter{0};
86  std::string toUtc(const int timestamp) const;
87 };
88 
89 #endif
SCT_CalibEventInfo::setRunNumber
virtual void setRunNumber(const int rn)
Definition: SCT_CalibEventInfo.cxx:111
SCT_CalibEventInfo::m_bunchCrossing
int m_bunchCrossing
Definition: SCT_CalibEventInfo.h:84
SCT_CalibEventInfo::~SCT_CalibEventInfo
virtual ~SCT_CalibEventInfo()=default
SCT_CalibEventInfo::SCT_CalibEventInfo
SCT_CalibEventInfo(const std::string &, const std::string &, const IInterface *)
Definition: SCT_CalibEventInfo.cxx:20
SCT_CalibEventInfo::setCounter
virtual void setCounter(const int counterVal)
Definition: SCT_CalibEventInfo.cxx:131
SCT_CalibEventInfo::m_source
std::string m_source
Definition: SCT_CalibEventInfo.h:77
SCT_CalibEventInfo::m_counter
int m_counter
Definition: SCT_CalibEventInfo.h:85
SCT_CalibEventInfo::lumiBlock
virtual int lumiBlock() const
Definition: SCT_CalibEventInfo.cxx:101
SCT_CalibEventInfo::duration
virtual int duration() const
Definition: SCT_CalibEventInfo.cxx:74
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
SCT_CalibEventInfo::m_eventNumber
int m_eventNumber
Definition: SCT_CalibEventInfo.h:81
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
SCT_CalibEventInfo::incrementCounter
virtual void incrementCounter()
Definition: SCT_CalibEventInfo.cxx:136
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
SCT_CalibEventInfo::m_LBEnd
int m_LBEnd
Definition: SCT_CalibEventInfo.h:75
SCT_CalibEventInfo
Definition: SCT_CalibEventInfo.h:28
SCT_CalibEventInfo::timeStamp
virtual int timeStamp() const
Definition: SCT_CalibEventInfo.cxx:70
SCT_CalibEventInfo::finalize
virtual StatusCode finalize()
Definition: SCT_CalibEventInfo.cxx:32
SCT_CalibEventInfo::runNumber
virtual int runNumber() const
Definition: SCT_CalibEventInfo.cxx:121
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
SCT_CalibEventInfo::m_timeStamp
int m_timeStamp
Definition: SCT_CalibEventInfo.h:83
SCT_CalibEventInfo::m_tsBeginString
std::string m_tsBeginString
Definition: SCT_CalibEventInfo.h:69
SCT_CalibEventInfo::m_numLB
int m_numLB
Definition: SCT_CalibEventInfo.h:76
SCT_CalibEventInfo::m_duration
int m_duration
Definition: SCT_CalibEventInfo.h:73
SCT_CalibEventInfo::setLumiBlock
virtual void setLumiBlock(const int begin, const int end)
Definition: SCT_CalibEventInfo.cxx:84
python.BunchSpacingUtils.lb
lb
Definition: BunchSpacingUtils.py:88
SCT_CalibEventInfo::toUtc
std::string toUtc(const int timestamp) const
Definition: SCT_CalibEventInfo.cxx:151
SCT_CalibEventInfo::m_lumiBlock
int m_lumiBlock
Definition: SCT_CalibEventInfo.h:82
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
python.BunchSpacingUtils.rn
rn
Definition: BunchSpacingUtils.py:87
SCT_CalibEventInfo::setTimeStamp
virtual void setTimeStamp(const int begin, const int end)
Definition: SCT_CalibEventInfo.cxx:37
SCT_CalibEventInfo::m_LBBegin
int m_LBBegin
Definition: SCT_CalibEventInfo.h:74
SCT_CalibEventInfo::m_tsEndString
std::string m_tsEndString
Definition: SCT_CalibEventInfo.h:70
SCT_CalibEventInfo::numLumiBlocks
virtual int numLumiBlocks() const
Definition: SCT_CalibEventInfo.cxx:106
SCT_CalibEventInfo::setEventNumber
virtual void setEventNumber(const int en)
Definition: SCT_CalibEventInfo.cxx:116
ISCT_CalibEvtInfo.h
PlotCalibFromCool.en
en
Definition: PlotCalibFromCool.py:399
SCT_CalibEventInfo::getLumiBlock
virtual void getLumiBlock(int &begin, int &end) const
Definition: SCT_CalibEventInfo.cxx:96
SCT_CalibEventInfo::getTimeStamps
virtual void getTimeStamps(int &begin, int &end) const
Definition: SCT_CalibEventInfo.cxx:58
SCT_CalibEventInfo::setBunchCrossing
virtual void setBunchCrossing(const int bc)
Definition: SCT_CalibEventInfo.cxx:146
SCT_CalibEventInfo::eventNumber
virtual int eventNumber() const
Definition: SCT_CalibEventInfo.cxx:126
SCT_CalibEventInfo::m_timeStampBegin
int m_timeStampBegin
Definition: SCT_CalibEventInfo.h:71
copySelective.source
string source
Definition: copySelective.py:32
SCT_CalibEventInfo::initialize
virtual StatusCode initialize()
Definition: SCT_CalibEventInfo.cxx:26
SCT_CalibEventInfo::counter
virtual int counter() const
Definition: SCT_CalibEventInfo.cxx:141
python.CaloScaleNoiseConfig.ts
ts
Definition: CaloScaleNoiseConfig.py:86
SCT_CalibEventInfo::setSource
virtual void setSource(const std::string &source)
Definition: SCT_CalibEventInfo.cxx:79
SCT_CalibEventInfo::m_timeStampEnd
int m_timeStampEnd
Definition: SCT_CalibEventInfo.h:72
SCT_CalibEventInfo::m_runNumber
int m_runNumber
Definition: SCT_CalibEventInfo.h:80