#include <MuonAGDDToolHelper.h>
Definition at line 19 of file MuonAGDDToolHelper.h.
◆ MuonAGDDToolHelper()
MuonAGDDToolHelper::MuonAGDDToolHelper |
( |
| ) |
|
Definition at line 46 of file MuonAGDDToolHelper.cxx.
55 std::cout<<
"MuonAGDDToolHelper\tunable to access GeoModelSvc "<<std::endl;
60 std::cout<<
"MuonAGDDToolHelper\tunable to access RBDAccessSvc "<<std::endl;
◆ BuildMScomponents()
bool MuonAGDDToolHelper::BuildMScomponents |
( |
| ) |
|
|
static |
Definition at line 135 of file MuonAGDDToolHelper.cxx.
138 ISvcLocator* svcLocator = Gaudi::svcLocator();
139 if (svcLocator->service(
"DetectorStore",pDetStore).isFailure())
return false;
141 if (pDetStore->retrieve(muonMgr).isFailure())
return false;
143 return readoutGeoDone;
◆ GetAGDD()
std::string MuonAGDDToolHelper::GetAGDD |
( |
const bool |
dumpIt, |
|
|
const std::string & |
tableName, |
|
|
const std::string & |
outFileName |
|
) |
| |
Definition at line 93 of file MuonAGDDToolHelper.cxx.
97 if(!geoModel)
return "";
100 if(!accessSvc)
return "";
105 std::string detectorKey = MuonVersion.empty() ?
AtlasVersion : MuonVersion;
106 std::string detectorNode = MuonVersion.empty() ?
"ATLAS" :
"MuonSpectrometer";
107 if ( MuonVersion ==
"CUSTOM"){
109 detectorNode =
"ATLAS" ;
114 if(!recordsetAGDD)
return "";
116 const IRDBRecord *recordAGDD = (*recordsetAGDD)[0];
117 if(!recordAGDD)
return "";
118 std::string AgddString = recordAGDD->
getString(
"DATA");
120 size_t pos=AgddString.find(
"AGDD.dtd");
121 if (
pos!=std::string::npos) AgddString.replace(
pos-21,32,
"-- Reference to AGDD.dtd automatically removed -->");
122 std::ofstream GeneratedFile;
125 std::ofstream GeneratedFile;
127 GeneratedFile<<AgddString;
128 GeneratedFile.close();
◆ ReadAGDDFlags()
std::vector< std::string > MuonAGDDToolHelper::ReadAGDDFlags |
( |
| ) |
|
Definition at line 64 of file MuonAGDDToolHelper.cxx.
66 std::vector<std::string> structuresFromFlags;
69 if(!agdd2geoVersion.empty())
71 std::string TheKEYNAME;
74 for(
unsigned int i=0;
i<pIRDBRecordset->size();
i++)
77 TheKEYNAME = record->
getString(
"KEYNAME");
78 TheKEYVALUE = record->
getInt(
"KEYVALUE");
79 if ( TheKEYVALUE == 1 )
81 structuresFromFlags.push_back(TheKEYNAME);
87 std::cout<<
"MuonAGDDToolHelper\tagdd2geoVersion is empty " <<std::endl;
89 return structuresFromFlags;
◆ setAGDDtoGeoSvcName()
void MuonAGDDToolHelper::setAGDDtoGeoSvcName |
( |
const std::string & |
name | ) |
|
◆ SetNSWComponents()
void MuonAGDDToolHelper::SetNSWComponents |
( |
| ) |
|
Definition at line 146 of file MuonAGDDToolHelper.cxx.
149 if (Gaudi::svcLocator()->service(
m_svcName,agddsvc).isFailure()) {
150 throw std::runtime_error(
"MuonAGDDToolHelper::SetNSWComponents() - Could not retrieve "
◆ m_svcName
std::string MuonAGDDToolHelper::m_svcName |
|
private |
◆ p_GeoModelSvc
◆ p_RDBAccessSvc
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.