#include <GeometryInfoDump.h>
Definition at line 12 of file GeometryInfoDump.h.
◆ GeometryInfoDump()
GeometryInfoDump::GeometryInfoDump |
( |
| ) |
|
◆ ~GeometryInfoDump()
GeometryInfoDump::~GeometryInfoDump |
( |
| ) |
|
◆ dumpInfo()
void GeometryInfoDump::dumpInfo |
( |
bool |
dumpHistory, |
|
|
bool |
dumpSpecs, |
|
|
bool |
dumpPosInfo, |
|
|
const DDCompactView & |
cpv, |
|
|
std::string |
fname = "GeoHistory" , |
|
|
int |
nVols = 0 |
|
) |
| |
Definition at line 25 of file GeometryInfoDump.cc.
29 std::cout <<
"Top Most LogicalPart =" << epv.logicalPart() << std::endl;
30 if (dumpHistory || dumpPosInfo) {
32 std::cout <<
"After the GeoHistory in the output file dumpGeoHistoryOnRead you will see x, y, z, r11, r12, r13, "
33 "r21, r22, r23, r31, r32, r33"
37 typedef std::map<nav_type, int> id_type;
41 bool notReachedDepth(
true);
45 nav_type
pos = epv.navPos();
48 dump <<
" - " << epv.geoHistory();
50 epv.rotation().GetComponents(
x,
y,
z);
52 size_t s = snprintf(
buf,
54 ",%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f,%12.4f",
55 epv.translation().x(),
56 epv.translation().y(),
57 epv.translation().z(),
73 if (nVols != 0 &&
id > nVols)
74 notReachedDepth =
false;
75 }
while (epv.next() && notReachedDepth);
83 std::ofstream
dump(dsname.c_str());
84 const auto& gra = cpv.
graph();
85 std::set<DDLogicalPart> lpStore;
89 for (; git != gend; ++git) {
100 for (
const auto& cit : *git) {
102 if (lpStore.find(ddcurLP) != lpStore.end() && !ddcurLP.
attachedSpecifics().empty()) {
106 lpStore.insert(ddcurLP);
References cms::cuda::assert(), DDLogicalPart::attachedSpecifics(), math::Graph< N, E >::begin(), visDQMUpload::buf, gather_cfg::cout, FrontierConditions_GlobalTag_cff::dump, dumpSpec(), alignmentValidation::fname, DDExpandedView::geoHistory(), DDCompactView::graph(), mps_fire::i, triggerObjects_cff::id, DDExpandedView::logicalPart(), DDExpandedView::navPos(), DDExpandedView::next(), DDExpandedView::rotation(), alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, DDBase< N, C >::toString(), DDExpandedView::translation(), x, y, and z.
◆ dumpSpec()
void GeometryInfoDump::dumpSpec |
( |
const std::vector< std::pair< const DDPartSelection *, const DDsvalues_type * > > & |
attspec, |
|
|
std::ostream & |
dump |
|
) |
| |
|
private |
Definition at line 114 of file GeometryInfoDump.cc.
116 std::vector<std::pair<const DDPartSelection*, const DDsvalues_type*> >::const_iterator bit(attspec.begin()),
118 for (; bit != eit; ++bit) {
120 std::vector<DDPartSelectionLevel>::const_iterator psit(bit->first->begin()), pseit(bit->first->end());
121 for (; psit != pseit; ++psit) {
122 switch (psit->selectionType_) {
124 throw cms::Exception(
"DetectorDescriptionSpecPar") <<
"Can not have an unknown selection type!";
133 dump <<
"//" << psit->lp_.toString();
136 dump <<
"//" << psit->lp_.toString() <<
"[" << psit->copyno_ <<
"]";
139 dump <<
"/" << psit->lp_.toString();
142 dump <<
"/" << psit->lp_.toString() <<
"[" << psit->copyno_ <<
"]";
146 <<
"Can not end up here! default of switch on selectionTyp_";
151 DDsvalues_type::const_iterator bsit(bit->second->begin()), bseit(bit->second->end());
152 for (; bsit != bseit; ++bsit) {
153 dump << bsit->second.name() <<
" ";
154 dump << (bsit->second.isEvaluated() ?
"eval " :
"NOT eval ");
156 for (; sdind != bsit->second.strings().size(); ++sdind) {
157 if (bsit->second.isEvaluated()) {
158 dump << bsit->second.doubles()[sdind];
160 dump << bsit->second.strings()[sdind];
162 if (sdind != bsit->second.strings().size() - 1)
165 if (!bsit->second.strings().empty() && bsit + 1 != bseit)
168 if (!bit->second->empty() && bit + 1 != eit)
References ddanychild, ddanylogp, ddanynode, ddanyposp, ddchildlogp, ddchildposp, ddunknown, FrontierConditions_GlobalTag_cff::dump, and Exception.
Referenced by dumpInfo().