ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHive
src
condEx
ASCIICondDbSvc.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ATHEXHIVE_CONDEX_ASCIICONDDBSVC_H
6
#define ATHEXHIVE_CONDEX_ASCIICONDDBSVC_H
7
8
#include "GaudiKernel/Service.h"
9
#include "GaudiKernel/EventIDBase.h"
10
#include "GaudiKernel/EventIDRange.h"
11
#include "
AthenaBaseComps/AthService.h
"
12
#include "
AthenaKernel/IOVEntryT.h
"
13
14
#include "
AthExHive/IASCIICondDbSvc.h
"
15
16
#include <map>
17
#include <set>
18
#include <vector>
19
#include <mutex>
20
21
class
ASCIICondDbSvc
:
public
extends<AthService, IASCIICondDbSvc> {
22
public
:
23
24
ASCIICondDbSvc
(
const
std::string& name, ISvcLocator* svc);
25
~ASCIICondDbSvc
() =
default
;
26
27
virtual
StatusCode
initialize
()
override
;
28
virtual
StatusCode
finalize
()
override
;
29
30
// from IASCIICondDbSvc
31
public
:
32
33
virtual
StatusCode
getRange
(
const
std::string&
34
,
const
EventContext&
35
, EventIDRange&,
36
IASCIICondDbSvc::dbData_t
&)
const override
;
37
38
virtual
void
dump
()
const override
;
39
void
dump
(std::ostringstream&)
const
;
40
41
private
:
42
43
bool
parse
(EventIDRange& t,
const
std::string& s);
44
bool
parse
(
IOVEntryT<IASCIICondDbSvc::dbData_t>
& t,
const
std::string& s);
45
46
StatusCode
readDbFile
(
const
std::string&);
47
48
Gaudi::Property<std::string>
m_file
{
this
,
"CondFile"
,
""
,
"cond db file name"
};
49
Gaudi::Property<unsigned int>
m_lbn
{
this
,
"LBN"
, 1,
"explicit lumi block number"
};
50
51
typedef
std::map<std::string, std::vector<IOVEntryT<IASCIICondDbSvc::dbData_t>>>
registry_t
;
52
registry_t
m_registry
;
53
54
mutable
std::mutex
m_lock
;
55
56
};
57
58
#endif
AthService.h
IASCIICondDbSvc.h
IOVEntryT.h
ASCIICondDbSvc::getRange
virtual StatusCode getRange(const std::string &, const EventContext &, EventIDRange &, IASCIICondDbSvc::dbData_t &) const override
Definition
ASCIICondDbSvc.cxx:237
ASCIICondDbSvc::m_lbn
Gaudi::Property< unsigned int > m_lbn
Definition
ASCIICondDbSvc.h:49
ASCIICondDbSvc::finalize
virtual StatusCode finalize() override
Definition
ASCIICondDbSvc.cxx:145
ASCIICondDbSvc::m_file
Gaudi::Property< std::string > m_file
Definition
ASCIICondDbSvc.h:48
ASCIICondDbSvc::initialize
virtual StatusCode initialize() override
Definition
ASCIICondDbSvc.cxx:31
ASCIICondDbSvc::ASCIICondDbSvc
ASCIICondDbSvc(const std::string &name, ISvcLocator *svc)
Definition
ASCIICondDbSvc.cxx:24
ASCIICondDbSvc::m_registry
registry_t m_registry
Definition
ASCIICondDbSvc.h:52
ASCIICondDbSvc::registry_t
std::map< std::string, std::vector< IOVEntryT< IASCIICondDbSvc::dbData_t > > > registry_t
Definition
ASCIICondDbSvc.h:51
ASCIICondDbSvc::m_lock
std::mutex m_lock
Definition
ASCIICondDbSvc.h:54
ASCIICondDbSvc::parse
bool parse(EventIDRange &t, const std::string &s)
Definition
ASCIICondDbSvc.cxx:171
ASCIICondDbSvc::~ASCIICondDbSvc
~ASCIICondDbSvc()=default
ASCIICondDbSvc::readDbFile
StatusCode readDbFile(const std::string &)
Definition
ASCIICondDbSvc.cxx:68
ASCIICondDbSvc::dump
virtual void dump() const override
Definition
ASCIICondDbSvc.cxx:119
IASCIICondDbSvc::dbData_t
float dbData_t
Definition
IASCIICondDbSvc.h:19
IOVEntryT
Definition
IOVEntryT.h:26
Generated on
for ATLAS Offline Software by
1.17.0