Go to the source code of this file.
bool DDCheck |
( |
std::ostream & |
os | ) |
|
Definition at line 156 of file DDCheck.cc.
References DDCheckAll(), and mps_fire::result.
159 os <<
"DDCore: start comprehensive checking" << std::endl;
165 os <<
"DDCore: end of comprehensive checking" << std::endl;
168 edm::LogError(
"DDCheck") << std::endl <<
"DDD:DDCore:DDCheck: found inconsistency problems!" << std::endl;
type of data representation of DDCompactView
bool DDCheckAll(const DDCompactView &cpv, std::ostream &os)
Provides an exploded view of the detector (tree-view)
Definition at line 174 of file DDCheck.cc.
References DDCheckAll(), and mps_fire::result.
177 os <<
"DDCore: start comprehensive checking" << std::endl;
183 os <<
"DDCore: end of comprehensive checking" << std::endl;
186 edm::LogError(
"DDCheck") << std::endl <<
"DDD:DDCore:DDCheck: found inconsistency problems!" << std::endl;
bool DDCheckAll(const DDCompactView &cpv, std::ostream &os)
Provides an exploded view of the detector (tree-view)
Definition at line 115 of file DDCheck.cc.
References DDCheckConnect(), DDCheckLP(), DDCheckPD(), graph< N, E >::edges(), g, DDCompactView::graph(), DDName::name(), DDBase< N, C >::name(), graph< N, E >::nodeData(), DDName::ns(), mps_fire::result, and graph< N, E >::size().
Referenced by DDCheck().
122 std::map< std::pair<std::string,std::string>,
int > lp_names;
125 for(; it < g.
size(); ++it) {
130 for(
const auto& mit : lp_names ) {
132 os <<
"interesting: " << mit.first.first <<
":" << mit.first.second
133 <<
" counted " << mit.second <<
" times!" << std::endl;
134 os <<
" Names of LogicalParts seem not to be unique!" << std::endl << std::endl;
141 for(it=0; it < g.
size(); ++it) {
adj_list::size_type size() const
bool DDCheckLP(const DDLogicalPart &lp, std::ostream &os)
const graph_type & graph() const
Provides read-only access to the data structure of the compact-view.
const std::string & ns() const
Returns the namespace.
const N & nodeData(const edge_type &) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
edge_range edges(index_type nodeIndex)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
bool DDCheckConnect(const DDCompactView &cpv, std::ostream &os)
const std::string & name() const
Returns the name.
bool DDCheckPD(const DDLogicalPart &lp, DDCompactView::graph_type::edge_range nb, const DDCompactView::graph_type &g, std::ostream &os)
bool DDCheckConnect |
( |
const DDCompactView & |
cpv, |
|
|
std::ostream & |
os |
|
) |
| |
Definition at line 65 of file DDCheck.cc.
References graphwalker< N, E >::current(), DDBase< N, C >::ddname(), g, DDCompactView::graph(), graphwalker< N, E >::next(), graph< N, E >::nodeData(), mps_fire::result, DDCompactView::root(), graph< N, E >::size(), class-composition::visited, and DDCompactView::walker().
Referenced by DDCheckAll().
68 os << std::endl <<
"Checking connectivity of CompactView:" << std::endl;
75 std::map<DDLogicalPart,bool>
visited;
78 visited[wkr.
current().first]=
true;
81 visited[wkr.
current().first]=
true;
83 os <<
" CompactView has " << visited.size()
84 <<
" (multiple-)connected LogicalParts with root=" << cpv.
root().
ddname() << std::endl;
92 for(; it < g.
size(); ++it) {
99 os <<
" There were " << uc <<
" unconnected nodes found." << std::endl << std::endl;
102 os <<
" ****************************************************************************" << std::endl;
103 os <<
" WARNING: The geometrical hierarchy may not be complete. " << std::endl
104 <<
" Expect unpredicted behaviour using DDCore/interface (i.e. SEGFAULT)"
106 os <<
" ****************************************************************************" << std::endl;
adj_list::size_type size() const
const graph_type & graph() const
Provides read-only access to the data structure of the compact-view.
const N & nodeData(const edge_type &) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
value_type current() const
walker_type walker() const
dont't use ! Proper implementation missing ...
const DDLogicalPart & root() const
returns the DDLogicalPart representing the root of the geometrical hierarchy
Definition at line 10 of file DDCheck.cc.
References dd_not_init, DDLogicalPart::material(), mps_fire::result, DDSolid::shape(), and DDLogicalPart::solid().
Referenced by DDCheckAll().
15 os <<
"LogicalPart: " << lp <<
" is not defined!" << std::endl;
20 os <<
"LogicalPart: " << lp <<
"| no solid defined, solid="
21 << lp.
solid() << std::endl;
24 os <<
"LogicalPart: " << lp <<
"| solid not init, solid="
25 << lp.
solid() << std::endl;
29 os <<
"LogicalPart: " << lp <<
"| no material defined, material="
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
DDSolidShape shape(void) const
The type of the solid.
const DDMaterial & material(void) const
Returns a reference object of the material this LogicalPart is made of.