ATLAS Offline Software
MuonSpectrometer
MuonCalib
MuonCalibStream
MuonCalibStreamCnvSvc
src
MuonCalibRunLumiBlockCoolSvc.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
#include "
MuonCalibStreamCnvSvc/MuonCalibRunLumiBlockCoolSvc.h
"
5
6
// COOL includes
7
#include "CoolKernel/ChannelSelection.h"
8
#include "CoolKernel/IDatabaseSvc.h"
9
#include "CoolKernel/IFolder.h"
10
#include "CoolKernel/IObject.h"
11
#include "CoolKernel/IObjectIterator.h"
12
#include "
CoraCool/CoraCoolDatabase.h
"
13
#include "
CoraCool/CoraCoolDatabaseSvc.h
"
14
#include "
CoraCool/CoraCoolDatabaseSvcFactory.h
"
15
#include "
CoraCool/CoraCoolFolder.h
"
16
#include "
CoraCool/CoraCoolObject.h
"
17
#include "
CoraCool/CoraCoolObjectIter.h
"
18
#include "CoralBase/Blob.h"
19
20
MuonCalibRunLumiBlockCoolSvc::MuonCalibRunLumiBlockCoolSvc
(
const
std::string &
name
, ISvcLocator *svc_locator) :
21
AthService
(
name
, svc_locator) {}
22
23
StatusCode
MuonCalibRunLumiBlockCoolSvc::queryInterface
(
const
InterfaceID &riid,
void
**ppvUnknown) {
24
if
(
IID_IMuonCalibRunLumiBlockCoolSvc
.versionMatch(riid)) {
25
*ppvUnknown = (
MuonCalibRunLumiBlockCoolSvc
*)
this
;
26
}
else
{
27
return
AthService::queryInterface(riid, ppvUnknown);
28
}
29
return
StatusCode::SUCCESS;
30
}
31
32
MuonCalibRunLumiBlockCoolSvc::~MuonCalibRunLumiBlockCoolSvc
() {}
33
34
StatusCode
MuonCalibRunLumiBlockCoolSvc::initialize
() {
return
StatusCode::SUCCESS; }
35
36
StatusCode
MuonCalibRunLumiBlockCoolSvc::finalize
() {
return
StatusCode::SUCCESS; }
37
38
StatusCode
MuonCalibRunLumiBlockCoolSvc::GetRunEventNumber
(
unsigned
int
timestamp,
int
&
run_number
,
int
&lb_nr) {
39
// comment out the implementation of get lb, set lb = 0, to be fixed later
40
lb_nr = 0 ;
41
ATH_MSG_DEBUG
(
"timestamp : "
<<timestamp<<
" runNumber : "
<<
run_number
<<
" lb : "
<<lb_nr);
42
return
StatusCode::SUCCESS;
43
}
// MuonCalibRunLumiBlockCoolSvc::GetRunEventNumber()
MuonCalibRunLumiBlockCoolSvc::queryInterface
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
Definition:
MuonCalibRunLumiBlockCoolSvc.cxx:23
IID_IMuonCalibRunLumiBlockCoolSvc
const InterfaceID IID_IMuonCalibRunLumiBlockCoolSvc("MuonCalibRunLumiBlockCoolSvc", 1, 0)
plotting.plot_kinematics.run_number
run_number
Definition:
plot_kinematics.py:29
CoraCoolDatabaseSvc.h
MuonCalibRunLumiBlockCoolSvc::finalize
virtual StatusCode finalize()
Definition:
MuonCalibRunLumiBlockCoolSvc.cxx:36
MuonCalibRunLumiBlockCoolSvc::initialize
virtual StatusCode initialize()
Definition:
MuonCalibRunLumiBlockCoolSvc.cxx:34
MuonCalibRunLumiBlockCoolSvc::GetRunEventNumber
StatusCode GetRunEventNumber(unsigned int timestamp, int &run_number, int &lb_nr)
Definition:
MuonCalibRunLumiBlockCoolSvc.cxx:38
CoraCoolObject.h
MuonCalibRunLumiBlockCoolSvc.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
AthService
Definition:
AthService.h:32
MuonCalibRunLumiBlockCoolSvc::MuonCalibRunLumiBlockCoolSvc
MuonCalibRunLumiBlockCoolSvc(const std::string &name, ISvcLocator *svc_locator)
Definition:
MuonCalibRunLumiBlockCoolSvc.cxx:20
MuonCalibRunLumiBlockCoolSvc::~MuonCalibRunLumiBlockCoolSvc
virtual ~MuonCalibRunLumiBlockCoolSvc()
Definition:
MuonCalibRunLumiBlockCoolSvc.cxx:32
CoraCoolFolder.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
CoraCoolDatabase.h
CoraCoolObjectIter.h
CoraCoolDatabaseSvcFactory.h
MuonCalibRunLumiBlockCoolSvc
Definition:
MuonCalibRunLumiBlockCoolSvc.h:15
Generated on Fri Jan 10 2025 21:14:38 for ATLAS Offline Software by
1.8.18