10 os <<
"DDD in memory stats:" << std::endl
11 <<
"====================" << std::endl << std::endl;
22 int noLog(0), noSol(0), noMat(0), noRot(0);
25 int noCLog(0), noCSol(0), noCMat(0), noCRot(0);
33 while (exv.next()) ++noExpNodes;
37 for(; it != g.
end(); ++it) {
39 noEdges += it->size();
44 lpst_type::iterator lpstit = lpst.begin();
45 for(; lpstit != lpst.end(); ++lpstit) {
46 noCLog += lpstit->first.name().size();
52 mast_type::iterator mastit = mast.begin();
53 for(; mastit != mast.end(); ++mastit) {
54 noCMat += mastit->first.name().size();
60 sost_type::iterator sostit = sost.begin();
61 for(; sostit != sost.end(); ++sostit) {
62 noCSol += sostit->first.name().size();
64 noSolidP +=
s.parameters().size();
70 rost_type::iterator rostit = rost.begin();
71 for(; rostit != rost.end(); ++rostit) {
72 noCRot += rostit->first.name().size();
77 std::cout <<
"sizeof(void*)=" <<
sizeof(
void*) << std::endl;
81 int store = 4*
sizeof(
void*);
83 int bySol = noSolidP *
sizeof(double) + noSol*store;
84 int byMat = noMat * (5*
sizeof(double) + store);
86 int byNam = noCLog + noCSol + noCMat + noCRot;
88 int byGra = (noEdges + noNodes)*store;
89 int bytes = byRot + bySol + byMat + byPos + byNam + byLog + byGra;
91 double mb = 1024.*1024.;
93 os <<
"noNodes=" << noNodes << std::endl
94 <<
"noEdges=" << noEdges << std::endl
95 <<
"noExNod=" << noExpNodes << std::endl << std::endl;
96 os <<
"noLog=" << noLog << std::endl
97 <<
"noSol=" << noSol <<
" noSolidP=" << noSolidP << std::endl
98 <<
"noMat=" << noMat << std::endl
99 <<
"noRot=" << noRot << std::endl << std::endl;
100 os <<
"noCLog=" << noCLog << std::endl
101 <<
"noCSol=" << noCSol << std::endl
102 <<
"noCMat=" << noCMat << std::endl
103 <<
"noCRot=" << noCRot << std::endl
104 <<
" --------" << std::endl
106 <<
" chars used for naming." << std::endl << std::endl;
107 os <<
"byLog = " << byLog/mb <<
" logicalparts " << std::endl
108 <<
"byNam = " << byNam/mb <<
" string for names " << std::endl
109 <<
"byRot = " << byRot/mb <<
" rotations " << std::endl
110 <<
"bySol = " << bySol/mb <<
" solids " << std::endl
111 <<
"byMat = " << byMat/mb <<
" materials " << std::endl
112 <<
"byPos = " << byPos/mb <<
" posparts " << std::endl
113 <<
"byGra = " << byGra/mb <<
" graph-struct " << std::endl
114 <<
"-----------------------" << std::endl
115 <<
"OVERALL: " << bytes / mb <<
" MByte" << std::endl;
Relative position of a child-volume inside a parent-volume.
DDMaterial is used to define and access material information.
const graph_type & graph() const
Provides read-only access to the data structure of the compact-view.
type of data representation of DDCompactView
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
A DDSolid represents the shape of a part.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
static value_type & instance()
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
adj_list::const_iterator const_adj_iterator
Provides an exploded view of the detector (tree-view)
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.