ATLAS Offline Software
AGDDToolBase.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 AGDDCONTROL_AGDDToolBase_H
6 #define AGDDCONTROL_AGDDToolBase_H
7 
11 #include "GaudiKernel/ServiceHandle.h"
13 
14 class AGDDController;
15 
16 class AGDDToolBase: public extends<AthAlgTool, IAGDDToolBase>
17 {
18 public:
19  AGDDToolBase(const std::string& type, const std::string& name, const IInterface* parent);
20  ~AGDDToolBase()=default;
22  virtual StatusCode construct ATLAS_NOT_THREAD_SAFE () override {return StatusCode::SUCCESS;}
23 protected:
24  void InitializeAGDD();
25 
26  Gaudi::Property<std::vector<std::string> > m_xmlFiles{this, "XMLFiles", {} };
27  Gaudi::Property<std::vector<std::string> > m_sectionsToBuild{this, "Sections", {} };
28  Gaudi::Property<std::vector<std::string> > m_volumesToBuild{this, "Volumes", {} };
29 
30  Gaudi::Property<int> m_parserVerbosity{this, "ParserVerbosity", 0};
31  Gaudi::Property<int> m_builderVerbosity{this, "BuilderVerbosity", 0};
32 
33  Gaudi::Property<bool> m_printSections{this, "PrintSections", false};
34  Gaudi::Property<bool> m_disableSections{this, "DisableSections", true};
35  Gaudi::Property<bool> m_locked{this, "Locked", false};
36  Gaudi::Property<bool> m_writeDBfile{this, "WriteAGDDFile", false};
37  Gaudi::Property<bool> m_readAGDD{this,"ReadAGDD",true,"read description from DB"};
38  Gaudi::Property<bool> m_dumpAGDD{this,"DumpAGDD",false,"write out parsed XML"};
39 
40  Gaudi::Property<std::string> m_outFileName{this, "OutAGDDXMLName", "mytest.xml"};
41  Gaudi::Property<std::string> m_defaultDetector{this, "DefaultDetector", "NoDetector"};
42  Gaudi::Property<std::string> m_navigateDetector{this, "NavigateDetector", ""};
43  Gaudi::Property<std::string> m_DBFileName{this,"OutputFileName","","specify name for DB text file"};
44  Gaudi::Property<std::string> m_agdd2GeoSvcName{this,"AGDDtoGeoSvcName","AGDDtoGeoSvc","specify name of AGDDtoGeoSvc"};
45 
47  { this, "AGDDtoGeoSvc", "AGDDtoGeoSvc", "" };
48 };
49 
50 #endif
AGDDToolBase::m_parserVerbosity
Gaudi::Property< int > m_parserVerbosity
Definition: AGDDToolBase.h:30
AGDDToolBase::m_dumpAGDD
Gaudi::Property< bool > m_dumpAGDD
Definition: AGDDToolBase.h:38
AGDDToolBase
Definition: AGDDToolBase.h:17
AGDDToolBase::m_sectionsToBuild
Gaudi::Property< std::vector< std::string > > m_sectionsToBuild
Definition: AGDDToolBase.h:27
AGDDToolBase::m_outFileName
Gaudi::Property< std::string > m_outFileName
Definition: AGDDToolBase.h:40
initialize
void initialize()
Definition: run_EoverP.cxx:894
AGDDToolBase::m_readAGDD
Gaudi::Property< bool > m_readAGDD
Definition: AGDDToolBase.h:37
AGDDToolBase::m_disableSections
Gaudi::Property< bool > m_disableSections
Definition: AGDDToolBase.h:34
AGDDToolBase::ATLAS_NOT_THREAD_SAFE
virtual StatusCode construct ATLAS_NOT_THREAD_SAFE() override
Definition: AGDDToolBase.h:22
AGDDController
Definition: AGDDController.h:30
AGDDToolBase::m_navigateDetector
Gaudi::Property< std::string > m_navigateDetector
Definition: AGDDToolBase.h:42
AGDDToolBase::m_defaultDetector
Gaudi::Property< std::string > m_defaultDetector
Definition: AGDDToolBase.h:41
AGDDToolBase::~AGDDToolBase
~AGDDToolBase()=default
AGDDToolBase::m_locked
Gaudi::Property< bool > m_locked
Definition: AGDDToolBase.h:35
AGDDToolBase::m_volumesToBuild
Gaudi::Property< std::vector< std::string > > m_volumesToBuild
Definition: AGDDToolBase.h:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AGDDToolBase::m_DBFileName
Gaudi::Property< std::string > m_DBFileName
Definition: AGDDToolBase.h:43
AGDDToolBase::m_printSections
Gaudi::Property< bool > m_printSections
Definition: AGDDToolBase.h:33
AGDDToolBase::m_writeDBfile
Gaudi::Property< bool > m_writeDBfile
Definition: AGDDToolBase.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AGDDToolBase::m_svc
ServiceHandle< IAGDDtoGeoSvc > m_svc
Definition: AGDDToolBase.h:47
AGDDToolBase::m_xmlFiles
Gaudi::Property< std::vector< std::string > > m_xmlFiles
Definition: AGDDToolBase.h:26
IAGDD2GeoSvc.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
AGDDToolBase::m_agdd2GeoSvcName
Gaudi::Property< std::string > m_agdd2GeoSvcName
Definition: AGDDToolBase.h:44
AGDDToolBase::AGDDToolBase
AGDDToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition: AGDDToolBase.cxx:8
IAGDDToolBase.h
checker_macros.h
Define macros for attributes used to control the static checker.
AGDDToolBase::m_builderVerbosity
Gaudi::Property< int > m_builderVerbosity
Definition: AGDDToolBase.h:31
AGDDToolBase::ATLAS_NOT_THREAD_SAFE
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
AGDDToolBase::InitializeAGDD
void InitializeAGDD()
Definition: AGDDToolBase.cxx:22
ServiceHandle< IAGDDtoGeoSvc >