ATLAS Offline Software
MuonSpectrometer
MuonCalib
MuonCalibDbOperations
MuonCalibDbOperations
CalibHeadOperations.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef CalibHeadOperations_h
6
#define CalibHeadOperations_h
7
8
// c - c++
9
#include <string>
10
#include <vector>
11
12
namespace
coral
{
13
class
IQuery;
14
class
AttributeList
;
15
}
// namespace coral
16
17
namespace
MuonCalib
{
18
19
class
CalibDbConnection;
20
21
class
CalibHeadOperations
{
22
public
:
23
//=====================constructor - destructor=================================
24
CalibHeadOperations
(
CalibDbConnection
&db_conn);
25
virtual
~CalibHeadOperations
();
26
//=====================publlic member functions=================================
27
// Get latest HeadId
28
int
GetLatestHeadId
();
29
// Get header information
30
bool
GetHeadInfo
(
int
&
head_id
,
int
&
lowrun
,
int
&
uprun
,
int
&
lowtime
,
int
&
uptime
);
31
// Open data connection for given head_id. head_id=-1 => Get latest header
32
CalibDbConnection
*
GetDataConnection
(
int
head_id
= -1,
bool
write
=
false
,
const
std::string &writer_connection =
""
,
33
const
std::string &writer_user =
""
,
const
std::string &writer_password =
""
);
34
//=====================private data members=====================================
35
private
:
36
// connections
37
CalibDbConnection
*
m_meta_connection
;
38
};
// class
39
40
}
// namespace MuonCalib
41
42
#endif
MuonCalib::CalibHeadOperations::GetHeadInfo
bool GetHeadInfo(int &head_id, int &lowrun, int &uprun, int &lowtime, int &uptime)
Definition:
CalibHeadOperations.cxx:51
calibdata.uptime
uptime
Definition:
calibdata.py:36
python.PyKernel.AttributeList
AttributeList
Definition:
PyKernel.py:36
coral
Definition:
ISecondaryEventSelector.h:19
MuonCalib::CalibHeadOperations::GetDataConnection
CalibDbConnection * GetDataConnection(int head_id=-1, bool write=false, const std::string &writer_connection="", const std::string &writer_user="", const std::string &writer_password="")
Definition:
CalibHeadOperations.cxx:90
MuonCalib::CalibHeadOperations::GetLatestHeadId
int GetLatestHeadId()
Definition:
CalibHeadOperations.cxx:29
calibdata.uprun
uprun
Definition:
calibdata.py:34
python.ByteStreamConfig.write
def write
Definition:
Event/ByteStreamCnvSvc/python/ByteStreamConfig.py:248
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition:
CscCalcPed.cxx:22
MuonCalib::CalibHeadOperations::m_meta_connection
CalibDbConnection * m_meta_connection
Definition:
CalibHeadOperations.h:37
calibdata.head_id
head_id
Definition:
calibdata.py:29
MuonCalib::CalibHeadOperations::CalibHeadOperations
CalibHeadOperations(CalibDbConnection &db_conn)
Definition:
CalibHeadOperations.cxx:27
MuonCalib::CalibHeadOperations
Definition:
CalibHeadOperations.h:21
calibdata.lowrun
lowrun
Definition:
calibdata.py:33
MuonCalib::CalibDbConnection
Definition:
CalibDbConnection.h:22
calibdata.lowtime
lowtime
Definition:
calibdata.py:35
MuonCalib::CalibHeadOperations::~CalibHeadOperations
virtual ~CalibHeadOperations()
Definition:
CalibHeadOperations.cxx:26
Generated on Thu Nov 7 2024 21:11:05 for ATLAS Offline Software by
1.8.18