24 fname =
"dump" +
fname;
27 if ( dumpHistory || dumpPosInfo) {
29 std::cout <<
"After the GeoHistory in the output file dumpGeoHistoryOnRead you will see x, y, z, r11, r12, r13, r21, r22, r23, r31, r32, r33" << std::endl;
32 typedef std::map<nav_type,int> id_type;
35 std::ofstream
dump(fname.c_str());
36 bool notReachedDepth(
true);
40 nav_type pos = epv.
navPos();
47 size_t s = snprintf(buf, 256,
",%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f",
57 if ( nVols != 0 &&
id > nVols ) notReachedDepth =
false;
58 }
while (epv.
next() && notReachedDepth);
66 std::ofstream
dump(dsname.c_str());
68 DDCompactView::DDCompactView::graph_type gra = cpv.
graph();
69 std::set<DDLogicalPart> lpStore;
71 adjl_iterator git = gra.
begin();
72 adjl_iterator gend = gra.end();
75 for (; git != gend; ++git)
78 if ( lpStore.find(ddLP) != lpStore.end() && ddLP.
attachedSpecifics().size() != 0 ) {
89 DDCompactView::graph_type::edge_list::const_iterator cit = git->begin();
90 DDCompactView::graph_type::edge_list::const_iterator cend = git->end();
91 for (; cit != cend; ++cit)
94 if (lpStore.find(ddcurLP) != lpStore.end() && ddcurLP.
attachedSpecifics().size() != 0 ) {
99 lpStore.insert(ddcurLP);
211 std::vector<std::pair< const DDPartSelection*, const DDsvalues_type*> >::const_iterator bit(attspec.begin()), eit(attspec.end());
212 for ( ; bit != eit; ++bit ) {
214 std::vector<DDPartSelectionLevel>::const_iterator psit(bit->first->begin()), pseit(bit->first->end());
215 for ( ; psit != pseit; ++psit ) {
216 switch ( psit->selectionType_ ) {
218 throw cms::Exception(
"DetectorDescriptionSpecPar") <<
"Can not have an unknown selection type!";
227 dump <<
"//" << psit->lp_.toString();
230 dump <<
"//" << psit->lp_.toString() <<
"[" << psit->copyno_ <<
"]" ;
233 dump <<
"/" << psit->lp_.toString();
236 dump <<
"/" << psit->lp_.toString() <<
"[" << psit->copyno_ <<
"]" ;
239 throw cms::Exception(
"DetectorDescriptionSpecPar") <<
"Can not end up here! default of switch on selectionTyp_";
244 DDsvalues_type::const_iterator bsit(bit->second->begin()), bseit(bit->second->end());
245 for ( ; bsit != bseit; ++bsit ) {
246 dump << bsit->second.name() <<
" ";
247 dump << ( bsit->second.isEvaluated() ?
"eval " :
"NOT eval " );
249 for ( ; sdind != bsit->second.strings().size() ; ++sdind ) {
250 if (bsit->second.isEvaluated()) {
251 dump << bsit->second.doubles()[sdind] ;
253 dump << bsit->second.strings()[sdind] ;
255 if (sdind != bsit->second.strings().size() - 1) dump <<
", ";
257 if ( bsit->second.strings().size() > 0 && bsit + 1 != bseit ) dump <<
" | ";
259 if ( bit->second->size() > 0 && bit + 1 != eit) dump <<
" | ";
bool next()
set current node to the next node in the expanded tree
void dumpInfo(bool dumpHistory, bool dumpSpecs, bool dumpPosInfo, const DDCompactView &cpv, std::string fname="GeoHistory", int nVols=0)
const DDRotationMatrix & rotation() const
The absolute rotation of the current node.
const graph_type & graph() const
Provides read-only access to the data structure of the compact-view.
std::vector< double >::size_type index_type
type of data representation of DDCompactView
nav_type navPos() const
return the stack of sibling numbers which indicates the current position in the DDExpandedView ...
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
const DDTranslation & translation() const
The absolute translation of the current node.
void dumpSpec(const std::vector< std::pair< const DDPartSelection *, const DDsvalues_type * > > &attspec, std::ostream &dump)
std::string toString() const
adj_list::const_iterator const_adj_iterator
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the expanded-view.
const std::vector< std::pair< const DDPartSelection *, const DDsvalues_type * > > & attachedSpecifics(void) const
Provides an exploded view of the detector (tree-view)
std::vector< int > nav_type
std::vector of sibling numbers