ATLAS Offline Software
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 
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() 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
SourceCompAlg::compareGlobalTags
StatusCode compareGlobalTags(const std::vector< std::string > &globalTags, RDBAccessSvc *rdbAccessSvc, std::ofstream &log)
Definition: SourceCompAlg.cxx:145
SourceCompAlg::m_supportedGeometry
Gaudi::Property< std::string > m_supportedGeometry
Definition: SourceCompAlg.h:31
AthAlgorithm.h
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
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SourceCompAlg::getGlobalTags
std::vector< std::string > getGlobalTags(RDBAccessSvc *rdbAccessSvc, std::ofstream &log)
Definition: SourceCompAlg.cxx:78
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
SourceCompAlg
Definition: SourceCompAlg.h:17
SourceCompAlg::SourceCompAlg
SourceCompAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SourceCompAlg.cxx:12
SourceCompAlg::execute
virtual StatusCode execute() override
Definition: SourceCompAlg.cxx:66
SourceCompAlg::finalize
virtual StatusCode finalize() override
Definition: SourceCompAlg.cxx:72
SourceCompAlg::m_connNames
std::vector< std::string > m_connNames
Definition: SourceCompAlg.h:36
SourceCompAlg::initialize
virtual StatusCode initialize() override
Definition: SourceCompAlg.cxx:17