Loading [MathJax]/jax/input/TeX/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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"
12 
14 
15 #include <map>
16 #include <set>
17 #include <vector>
18 #include <mutex>
19 
20 class ASCIICondDbSvc: public extends<AthService, IASCIICondDbSvc> {
21 public:
22 
23  ASCIICondDbSvc(const std::string& name, ISvcLocator* svc);
24  ~ASCIICondDbSvc() = default;
25 
26  virtual StatusCode initialize() override;
27  virtual StatusCode finalize() override;
28 
29  // from IASCIICondDbSvc
30 public:
31 
32  virtual StatusCode getRange(const std::string&
33  , const EventContext&
34  , EventIDRange&,
35  IASCIICondDbSvc::dbData_t&) const override;
36 
37  virtual void dump() const override;
38  void dump(std::ostringstream&) const;
39 
40 private:
41 
42  bool parse(EventIDRange& t, const std::string& s);
43  bool parse(IOVEntryT<IASCIICondDbSvc::dbData_t>& t, const std::string& s);
44 
45  StatusCode readDbFile(const std::string&);
46 
47  Gaudi::Property<std::string> m_file{this, "CondFile", "", "cond db file name"};
48  Gaudi::Property<unsigned int> m_lbn{this, "LBN", 1, "explicit lumi block number"};
49 
50  typedef std::map<std::string, std::vector<IOVEntryT<IASCIICondDbSvc::dbData_t>>> registry_t;
52 
53  mutable std::mutex m_lock;
54 
55 };
56 
57 #endif
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
ASCIICondDbSvc::m_file
Gaudi::Property< std::string > m_file
Definition: ASCIICondDbSvc.h:47
IASCIICondDbSvc.h
IOVEntryT< IASCIICondDbSvc::dbData_t >
BeamSpot::mutex
std::mutex mutex
Definition: InDetBeamSpotVertex.cxx:18
ASCIICondDbSvc
Definition: ASCIICondDbSvc.h:20
ASCIICondDbSvc::m_lbn
Gaudi::Property< unsigned int > m_lbn
Definition: ASCIICondDbSvc.h:48
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ASCIICondDbSvc::~ASCIICondDbSvc
~ASCIICondDbSvc()=default
ASCIICondDbSvc::m_registry
registry_t m_registry
Definition: ASCIICondDbSvc.h:51
ASCIICondDbSvc::getRange
virtual StatusCode getRange(const std::string &, const EventContext &, EventIDRange &, IASCIICondDbSvc::dbData_t &) const override
Definition: ASCIICondDbSvc.cxx:240
ASCIICondDbSvc::ASCIICondDbSvc
ASCIICondDbSvc(const std::string &name, ISvcLocator *svc)
Definition: ASCIICondDbSvc.cxx:25
ASCIICondDbSvc::registry_t
std::map< std::string, std::vector< IOVEntryT< IASCIICondDbSvc::dbData_t > > > registry_t
Definition: ASCIICondDbSvc.h:50
ASCIICondDbSvc::initialize
virtual StatusCode initialize() override
Definition: ASCIICondDbSvc.cxx:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
IASCIICondDbSvc::dbData_t
float dbData_t
Definition: IASCIICondDbSvc.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ASCIICondDbSvc::m_lock
std::mutex m_lock
Definition: ASCIICondDbSvc.h:53
ASCIICondDbSvc::readDbFile
StatusCode readDbFile(const std::string &)
Definition: ASCIICondDbSvc.cxx:69
ASCIICondDbSvc::parse
bool parse(EventIDRange &t, const std::string &s)
Definition: ASCIICondDbSvc.cxx:174
AthService.h
ASCIICondDbSvc::dump
virtual void dump() const override
Definition: ASCIICondDbSvc.cxx:122
ASCIICondDbSvc::finalize
virtual StatusCode finalize() override
Definition: ASCIICondDbSvc.cxx:148