ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
RDBAccessSvc
src
SourceCompAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef RDBACCESSSVC_SOURCECOMPALG_H
6
#define RDBACCESSSVC_SOURCECOMPALG_H
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
10
#include <string>
11
#include <fstream>
12
#include <vector>
13
14
class
RDBAccessSvc
;
15
16
class
SourceCompAlg
:
public
AthAlgorithm
17
{
18
public
:
19
SourceCompAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
20
21
virtual
StatusCode
initialize
()
override
;
22
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
23
virtual
StatusCode
finalize
()
override
;
24
25
private
:
26
Gaudi::Property<std::string>
m_globalTag
{this
27
,
"GlobalTag"
28
,
""
29
,
"Global geometry tag. If empty, all locked and supported tags will be compared"
};
30
31
Gaudi::Property<std::string>
m_supportedGeometry
{this
32
,
"SupportedGeometry"
33
,
""
34
,
"Supported Geometry flag to be set from jobOptions"
};
35
36
std::vector<std::string>
m_connNames
{
"Session1"
,
"Session2"
};
37
38
std::vector<std::string>
getGlobalTags
(
RDBAccessSvc
* rdbAccessSvc
39
, std::ofstream& log);
40
41
StatusCode
compareGlobalTags
(
const
std::vector<std::string>& globalTags
42
,
RDBAccessSvc
* rdbAccessSvc
43
, std::ofstream& log);
44
};
45
46
#endif
AthAlgorithm.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
RDBAccessSvc
RDBAccessSvc is the implementation of IRDBAccessSvc interface.
Definition
RDBAccessSvc.h:59
SourceCompAlg::m_globalTag
Gaudi::Property< std::string > m_globalTag
Definition
SourceCompAlg.h:26
SourceCompAlg::m_supportedGeometry
Gaudi::Property< std::string > m_supportedGeometry
Definition
SourceCompAlg.h:31
SourceCompAlg::compareGlobalTags
StatusCode compareGlobalTags(const std::vector< std::string > &globalTags, RDBAccessSvc *rdbAccessSvc, std::ofstream &log)
Definition
SourceCompAlg.cxx:145
SourceCompAlg::initialize
virtual StatusCode initialize() override
Definition
SourceCompAlg.cxx:17
SourceCompAlg::finalize
virtual StatusCode finalize() override
Definition
SourceCompAlg.cxx:72
SourceCompAlg::SourceCompAlg
SourceCompAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SourceCompAlg.cxx:12
SourceCompAlg::getGlobalTags
std::vector< std::string > getGlobalTags(RDBAccessSvc *rdbAccessSvc, std::ofstream &log)
Definition
SourceCompAlg.cxx:78
SourceCompAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
SourceCompAlg.cxx:66
SourceCompAlg::m_connNames
std::vector< std::string > m_connNames
Definition
SourceCompAlg.h:36
Generated on
for ATLAS Offline Software by
1.17.0