17 std::string attribute =
"MuStructure";
18 std::string
value =
"MuonBarrelDT";
19 DDValue val(attribute, value, 0.0);
32 parseGeometry(fview, muonConstants, theLayerIdWiresMap);
35 std::cerr <<
"DTGeometryParserFromDDD::build() : DDD Exception: something went wrong during XML parsing!" << std::endl
36 <<
" Message: " << e << std::endl
37 <<
" Terminating execution ... " << std::endl;
41 std::cerr <<
"DTGeometryParserFromDDD::build() : an unexpected exception occured: " << e.what() << std::endl;
45 std::cerr <<
"DTGeometryParserFromDDD::build() : An unexpected exception occured!" << std::endl
46 <<
" Terminating execution ... " << std::endl;
75 buildLayer(fv, muonConstants, theLayerIdWiresMap);
93 map<
DTLayerId,std::pair<unsigned int,unsigned int> > &theLayerIdWiresMap ) {
102 int firstWire=fv.
copyno();
107 theLayerIdWiresMap[layId] = (make_pair(firstWire,WCounter));
bool parent()
set the current node to the parent node ...
void addFilter(const DDFilter &, log_op op=AND)
void parseGeometry(DDFilteredView &fv, const MuonDDDConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
bool nextSibling()
set the current node to the next sibling ...
DTGeometryParserFromDDD(const DDCompactView *cview, const MuonDDDConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
Constructor.
type of data representation of DDCompactView
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.
int getDetId(const MuonBaseNumber num) const
bool firstChild()
set the current node to the first child ...
void setCriteria(const DDValue &nameVal, comp_op, log_op l=AND, bool asString=true, bool merged=true)
MuonBaseNumber geoHistoryToBaseNumber(const DDGeoHistory &history)
void buildLayer(DDFilteredView &fv, const MuonDDDConstants &muonConstants, std::map< DTLayerId, std::pair< unsigned int, unsigned int > > &theLayerIdWiresMap)
~DTGeometryParserFromDDD()
Destructor.
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.