ATLAS Offline Software
Loading...
Searching...
No Matches
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
14class RDBAccessSvc;
15
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
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
RDBAccessSvc is the implementation of IRDBAccessSvc interface.
Gaudi::Property< std::string > m_globalTag
Gaudi::Property< std::string > m_supportedGeometry
virtual StatusCode execute() override
StatusCode compareGlobalTags(const std::vector< std::string > &globalTags, RDBAccessSvc *rdbAccessSvc, std::ofstream &log)
virtual StatusCode initialize() override
virtual StatusCode finalize() override
SourceCompAlg(const std::string &name, ISvcLocator *pSvcLocator)
std::vector< std::string > getGlobalTags(RDBAccessSvc *rdbAccessSvc, std::ofstream &log)
std::vector< std::string > m_connNames