#include <DDCompareTools.h>
Definition at line 44 of file DDCompareTools.h.
DDCompareCPV::DDCompareCPV |
( |
| ) |
|
Definition at line 80 of file DDCompareTools.cc.
References gather_cfg::cout, ddco_, DDName::fullname(), diffTwoXMLs::g1, diffTwoXMLs::g2, DDCompactView::graph(), mps_fire::i, DDBase< N, C >::name(), p1, and p2.
96 while ( git1 != gend1 && git2 != gend2 && ret ) {
103 }
else if (!git1->empty() && !git2->empty() ) {
104 auto cit1 = git1->begin();
105 auto cend1 = git1->end();
106 auto cit2 = git2->begin();
107 auto cend2 = git2->end();
109 while ( cit1 != cend1 && cit2 != cend2 ) {
112 std::cout << ++i <<
" c1--> " <<
g1.edgeData(cit1->second)->copyno() <<
" " << ddcurLP1.
name().
fullname() << std::endl;
113 std::cout << ++i <<
" c2--> " <<
g2.edgeData(cit2->second)->copyno() <<
" " << ddcurLP2.
name().
fullname() << std::endl;
117 if (
p1->copyno() !=
p2->copyno() ||
119 std::cout <<
"Failed to match node (fullname:copy_no): 1: " 121 << ddcurLP2.
name().
fullname() <<
":" <<
p2->copyno() << std::endl;
125 std::cout <<
"Failed to match translation " << std::endl;
129 std::cout <<
"Failed to match rotation " << std::endl;
136 }
else if ( git1->size() != git2->size() ) {
138 std::cout <<
"DDCompactViews are different because number of children do not match" << std::endl;
139 std::cout <<
"graph1 size of edge_list: " << git1->size() <<
" and graph2 size of edge_list: " << git2->size() << std::endl;
Relative position of a child-volume inside a parent-volume.
std::vector< double >::size_type index_type
const std::string fullname() const
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Graph::const_adj_iterator adjl_iterator
const Graph & graph() const
Provides read-only access to the data structure of the compact-view.
Allows to compare name or not. If not, compares only values of the rotation matrix.
LogicalParts have solids which could be BooleanSolids.
math::Graph< DDLogicalPart, DDPosData * > Graph
adj_list::const_iterator const_adj_iterator