#include <MuonAGDDToolHelper.h>
Definition at line 19 of file MuonAGDDToolHelper.h.
 
◆ MuonAGDDToolHelper()
      
        
          | MuonAGDDToolHelper::MuonAGDDToolHelper | ( |  | ) |  | 
      
 
Definition at line 46 of file MuonAGDDToolHelper.cxx.
   48   SmartIF<IGeoModelSvc> geomodel{Gaudi::svcLocator()->service(
"GeoModelSvc")};
 
   49   if(!geomodel.isValid()) 
throw std::runtime_error(
"MuonAGDDToolHelper failed to access GeoModelSvc");
 
   50   SmartIF<IRDBAccessSvc> rdbaccess{Gaudi::svcLocator()->service(
"RDBAccessSvc")};
 
   51   if(!rdbaccess.isValid()) 
throw std::runtime_error(
"MuonAGDDToolHelper failed to access RDBAccessSvc");
 
 
 
 
◆ BuildMScomponents()
  
  | 
        
          | bool MuonAGDDToolHelper::BuildMScomponents | ( |  | ) |  |  | static | 
 
Definition at line 118 of file MuonAGDDToolHelper.cxx.
  120   SmartIF<StoreGateSvc> pDetStore{Gaudi::svcLocator()->service(
"DetectorStore")};
 
  121   if (!pDetStore.isValid()) 
return false;
 
  123   if (pDetStore->retrieve(muonMgr).isFailure()) 
return false;
 
 
 
 
◆ GetAGDD()
      
        
          | std::string MuonAGDDToolHelper::GetAGDD | ( | const bool | dumpIt, | 
        
          |  |  | const std::string & | tableName, | 
        
          |  |  | const std::string & | outFileName | 
        
          |  | ) |  |  | 
      
 
Definition at line 86 of file MuonAGDDToolHelper.cxx.
   91    std::string detectorKey  = MuonVersion.empty() ? 
AtlasVersion : MuonVersion;
 
   92    std::string detectorNode = MuonVersion.empty() ? 
"ATLAS" : 
"MuonSpectrometer";
 
   93    if ( MuonVersion == 
"CUSTOM"){
 
   95      detectorNode = 
"ATLAS"  ;
 
   99    if(!recordsetAGDD) 
return "";
 
  101    const IRDBRecord *recordAGDD =  (*recordsetAGDD)[0];
 
  102    if(!recordAGDD) 
return "";
 
  103    std::string AgddString = recordAGDD->
getString(
"DATA");
 
  105    size_t pos=AgddString.find(
"AGDD.dtd");
 
  106    if (
pos!=std::string::npos) AgddString.replace(
pos-21,32,
"-- Reference to AGDD.dtd automatically removed -->");
 
  107    std::ofstream  GeneratedFile;
 
  110      std::ofstream GeneratedFile;
 
  112      GeneratedFile<<AgddString;
 
  113      GeneratedFile.close();
 
 
 
 
◆ ReadAGDDFlags()
      
        
          | std::vector< std::string > MuonAGDDToolHelper::ReadAGDDFlags | ( |  | ) |  | 
      
 
Definition at line 57 of file MuonAGDDToolHelper.cxx.
   59    std::vector<std::string> structuresFromFlags;
 
   62    if(!agdd2geoVersion.empty())
 
   64      std::string TheKEYNAME;
 
   67      for(
unsigned int i=0; 
i<pIRDBRecordset->size(); 
i++)
 
   70        TheKEYNAME = record->
getString(
"KEYNAME");
 
   71        TheKEYVALUE = record->
getInt(
"KEYVALUE");
 
   72        if ( TheKEYVALUE == 1 )
 
   74          structuresFromFlags.push_back(TheKEYNAME);
 
   80       std::cout<<
"MuonAGDDToolHelper\tagdd2geoVersion is empty " <<std::endl;
 
   82    return structuresFromFlags;
 
 
 
 
◆ setAGDDtoGeoSvcName()
      
        
          | void MuonAGDDToolHelper::setAGDDtoGeoSvcName | ( | const std::string & | name | ) |  | 
      
 
 
◆ SetNSWComponents()
      
        
          | void MuonAGDDToolHelper::SetNSWComponents | ( |  | ) |  | 
      
 
Definition at line 127 of file MuonAGDDToolHelper.cxx.
  129   SmartIF<IAGDDtoGeoSvc> agddsvc{Gaudi::svcLocator()->service(
m_svcName)};
 
  130   if(!agddsvc.isValid()) {
 
  131     throw std::runtime_error(
"MuonAGDDToolHelper::SetNSWComponents() - Could not retrieve " 
 
 
 
◆ m_geoModelSvc
◆ m_rdbAccessSvc
◆ m_svcName
  
  | 
        
          | std::string MuonAGDDToolHelper::m_svcName {"AGDDtoGeoSvc"} |  | private | 
 
 
The documentation for this class was generated from the following files:
 
virtual IRDBRecordset_ptr getRecordsetPtr(const std::string &node, const std::string &tag, const std::string &tag2node="", const std::string &connName="ATLASDD")=0
Provides access to the Recordset object containing HVS-tagged data.
virtual std::string getChildTag(const std::string &childNode, const std::string &parentTag, const std::string &parentNode, const std::string &connName="ATLASDD")=0
Gets the tag name for the node by giving its parent node tag.