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;
30 std::cerr <<
"DTGeometryParserFromDDD::build() : an unexpected exception occured: " <<
e.what() << std::endl;
33 std::cerr <<
"DTGeometryParserFromDDD::build() : An unexpected exception occured!" << std::endl;
42 map<
DTLayerId, std::pair<unsigned int, unsigned int> >& theLayerIdWiresMap) {
54 buildLayer(fv, muonConstants, theLayerIdWiresMap);
71 map<
DTLayerId, std::pair<unsigned int, unsigned int> >& theLayerIdWiresMap) {
80 int firstWire = fv.
copyno();
85 theLayerIdWiresMap[layId] = (make_pair(firstWire, WCounter));
bool parent()
set the current node to the parent node ...
bool nextSibling()
set the current node to the next sibling ...
Compact representation of the geometrical detector hierarchy.
void buildLayer(DDFilteredView &fv, const MuonGeometryConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
int getDetId(const MuonBaseNumber &num) const
void parseGeometry(DDFilteredView &fv, const MuonGeometryConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
int copyno() const
Copy number associated with the current node.
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
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 ...
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history) const
~DTGeometryParserFromDDD()
Destructor.