ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18 public:
19
20
21 // Constructor:
23
24 // Destructor:
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:
37
38 // Internals:
39
40 class Clockwork;
42
43
44
45};
46
47
48#endif
DatabaseAccessTool & operator=(const DatabaseAccessTool &)
DatabaseAccessTool(const DatabaseAccessTool &)
double getDouble(const std::string &TableName, const std::string &FallbackVersion, const std::string &ColumnName) const