14 map<
DTLayerId, std::pair<unsigned int, unsigned int> >& theLayerIdWiresMap) {
23 parseGeometry(fview, muonConstants, theLayerIdWiresMap);
25 std::cerr <<
"DTGeometryParserFromDDD::build() : DDD Exception: something went wrong during XML parsing!"
27 <<
" Message: " << e << std::endl
28 <<
" Terminating execution ... " << std::endl;
31 std::cerr <<
"DTGeometryParserFromDDD::build() : an unexpected exception occured: " << e.what() << std::endl;
34 std::cerr <<
"DTGeometryParserFromDDD::build() : An unexpected exception occured!" << std::endl
35 <<
" Terminating execution ... " << std::endl;
44 map<
DTLayerId, std::pair<unsigned int, unsigned int> >& theLayerIdWiresMap) {
64 buildLayer(fv, muonConstants, theLayerIdWiresMap);
81 map<
DTLayerId, std::pair<unsigned int, unsigned int> >& theLayerIdWiresMap) {
90 int firstWire = fv.
copyno();
95 theLayerIdWiresMap[layId] = (make_pair(firstWire, WCounter));
bool parent()
set the current node to the parent node ...
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history) const
bool nextSibling()
set the current node to the next sibling ...
Compact representation of the geometrical detector hierarchy.
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
int copyno() const
Copy number associated with the current node.
void buildLayer(DDFilteredView &fv, const MuonGeometryConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
void parseGeometry(DDFilteredView &fv, const MuonGeometryConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
int getDetId(const MuonBaseNumber &num) const
DTGeometryParserFromDDD(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
Constructor.
bool firstChild()
set the current node to the first child ...
~DTGeometryParserFromDDD()
Destructor.