ATLAS Offline Software
LArCalorimeter
LArGeoModel
LArGeoCode
LArGeoCode
DatabaseAccessTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DATABASEACCESSTOOL_H_
6
#define DATABASEACCESSTOOL_H_
7
#include <string>
8
//---------------------------------------------------------------------
9
//
10
// This class gets data from the detector description database. If no
11
// connection is open we create one. We drop it when the object goes
12
// out of scope.
13
//
14
//---------------------------------------------------------------------
15
16
class
DatabaseAccessTool
{
17
18
public
:
19
20
21
// Constructor:
22
DatabaseAccessTool
();
23
24
// Destructor:
25
~DatabaseAccessTool
();
26
27
// Access the data. The table will be taken from the current tagged ATLAS
28
// version. If a fallback version name is provided then the value will be
29
// taken from the fallback name.
30
double
getDouble
(
const
std::string & TableName,
const
std::string & FallbackVersion,
const
std::string & ColumnName)
const
;
31
32
private
:
33
34
// It is illegal to copy or clone:
35
DatabaseAccessTool
&
operator=
(
const
DatabaseAccessTool
& );
36
DatabaseAccessTool
(
const
DatabaseAccessTool
& );
37
38
// Internals:
39
40
class
Clockwork
;
41
Clockwork
*
m_cw
;
42
43
44
45
};
46
47
48
#endif
DatabaseAccessTool::DatabaseAccessTool
DatabaseAccessTool(const DatabaseAccessTool &)
DatabaseAccessTool::getDouble
double getDouble(const std::string &TableName, const std::string &FallbackVersion, const std::string &ColumnName) const
Definition:
DatabaseAccessTool.cxx:55
DatabaseAccessTool
Definition:
DatabaseAccessTool.h:16
DatabaseAccessTool::DatabaseAccessTool
DatabaseAccessTool()
Definition:
DatabaseAccessTool.cxx:25
DatabaseAccessTool::operator=
DatabaseAccessTool & operator=(const DatabaseAccessTool &)
DatabaseAccessTool::~DatabaseAccessTool
~DatabaseAccessTool()
Definition:
DatabaseAccessTool.cxx:50
DatabaseAccessTool::Clockwork
Definition:
DatabaseAccessTool.cxx:14
DatabaseAccessTool::m_cw
Clockwork * m_cw
Definition:
DatabaseAccessTool.h:40
Generated on Fri Jan 10 2025 21:08:55 for ATLAS Offline Software by
1.8.18