ATLAS Offline Software
ASCIICondDbSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHEXHIVE_ASCIICONDDBSVC_H
6 #define ATHEXHIVE_ASCIICONDDBSVC_H 1
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);
25 
26  virtual StatusCode initialize();
27  virtual StatusCode finalize();
28 
29  // from IASCIICondDbSvc
30 public:
31 
32  virtual StatusCode getRange(const std::string&, const EventContext&, EventIDRange&,
34 
35  virtual void dump() const;
36  virtual void dump(std::ostringstream&) const;
37 
38 private:
39 
40  bool parse(EventIDRange& t, const std::string& s);
41  bool parse(IOVEntryT<IASCIICondDbSvc::dbData_t>& t, const std::string& s);
42 
43  StatusCode readDbFile(const std::string&);
44 
45  Gaudi::Property<std::string> m_file{this, "CondFile", "", "cond db file name"};
46  Gaudi::Property<unsigned int> m_lbn{this, "LBN", 1, "explicit lumi block number"};
47 
48  typedef std::map<std::string, std::vector<IOVEntryT<IASCIICondDbSvc::dbData_t>>> registry_t;
50 
51  mutable std::mutex m_lock;
52 
53 };
54 
55 #endif
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
ASCIICondDbSvc::m_file
Gaudi::Property< std::string > m_file
Definition: ASCIICondDbSvc.h:45
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:46
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ASCIICondDbSvc::initialize
virtual StatusCode initialize()
Definition: ASCIICondDbSvc.cxx:38
ASCIICondDbSvc::m_registry
registry_t m_registry
Definition: ASCIICondDbSvc.h:49
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:48
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
ASCIICondDbSvc::getRange
virtual StatusCode getRange(const std::string &, const EventContext &, EventIDRange &, IASCIICondDbSvc::dbData_t &) const
Definition: ASCIICondDbSvc.cxx:246
IASCIICondDbSvc::dbData_t
float dbData_t
Definition: IASCIICondDbSvc.h:19
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ASCIICondDbSvc::m_lock
std::mutex m_lock
Definition: ASCIICondDbSvc.h:51
ASCIICondDbSvc::readDbFile
StatusCode readDbFile(const std::string &)
Definition: ASCIICondDbSvc.cxx:75
ASCIICondDbSvc::~ASCIICondDbSvc
~ASCIICondDbSvc()
Definition: ASCIICondDbSvc.cxx:31
ASCIICondDbSvc::parse
bool parse(EventIDRange &t, const std::string &s)
Definition: ASCIICondDbSvc.cxx:180
AthService.h
ASCIICondDbSvc::dump
virtual void dump() const
Definition: ASCIICondDbSvc.cxx:128
ASCIICondDbSvc::finalize
virtual StatusCode finalize()
Definition: ASCIICondDbSvc.cxx:154