#include "DetectorDescription/RegressionTest/interface/DDCompareTools.h"
#include <cstddef>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDExpandedView.h"
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDPosData.h"
#include "DetectorDescription/Core/interface/DDSolidShapes.h"
#include "Math/GenVector/Rotation3D.h"
Go to the source code of this file.
Functions | |
bool | DDCompareBoolSol (const DDBooleanSolid &lhs, const DDBooleanSolid &rhs, const DDCompOptions &ddco) |
Needs to know because of Rotation Matrix of Boolean Relationship. More... | |
bool | DDCompareCPV (const DDCompactView &lhs, const DDCompactView &rhs, const DDCompOptions &ddco) |
bool | DDCompareDBLVEC (const std::vector< double > &lhs, const std::vector< double > &rhs, double tol) |
bool | DDCompareDDRot (const DDRotation &lhs, const DDRotation &rhs, const DDCompOptions &ddco) |
Allows to compare name or not. If not, compares only values of the rotation matrix. More... | |
bool | DDCompareDDRotMat (const DDRotationMatrix &lhs, const DDRotationMatrix &rhs, double tol) |
bool | DDCompareDDTrans (const DDTranslation &lhs, const DDTranslation &rhs, double tol) |
bool | DDCompareEPV (DDExpandedView &lhs, DDExpandedView &rhs, const DDCompOptions &ddco) |
bool | DDCompareLP (const DDLogicalPart &lhs, const DDLogicalPart &rhs, const DDCompOptions &ddco) |
LogicalParts have solids which could be BooleanSolids. More... | |
bool | DDCompareSolid (const DDSolid &lhs, const DDSolid &rhs, const DDCompOptions &ddco) |
Needs to know about rotmat because of BooleanSolid. More... | |
bool DDCompareBoolSol | ( | const DDBooleanSolid & | lhs, |
const DDBooleanSolid & | rhs, | ||
const DDCompOptions & | ddco | ||
) |
Needs to know because of Rotation Matrix of Boolean Relationship.
Definition at line 221 of file DDCompareTools.cc.
References gather_cfg::cout, DDCompareDBLVEC(), DDCompareDDRot(), DDCompareDDTrans(), DDCompareSolid(), DDCompOptions::distTol_, DDName::fullname(), DDBase< N, C >::name(), DDSolid::parameters(), runTheMatrix::ret, DDBooleanSolid::rotation(), DDSolid::shape(), DDBooleanSolid::solidA(), DDBooleanSolid::solidB(), and DDBooleanSolid::translation().
Referenced by DDCompareSolid().
bool DDCompareCPV | ( | const DDCompactView & | lhs, |
const DDCompactView & | rhs, | ||
const DDCompOptions & | ddco | ||
) |
Definition at line 63 of file DDCompareTools.cc.
References gather_cfg::cout, DDCompareDDRot(), DDCompareDDTrans(), DDCompareLP(), DDName::fullname(), diffTwoXMLs::g1, diffTwoXMLs::g2, DDCompactView::graph(), mps_fire::i, DDBase< N, C >::name(), fireworks::p1, fireworks::p2, and runTheMatrix::ret.
Referenced by CompareDDCompactViews::beginRun().
bool DDCompareDBLVEC | ( | const std::vector< double > & | lhs, |
const std::vector< double > & | rhs, | ||
double | tol | ||
) |
Definition at line 198 of file DDCompareTools.cc.
References gather_cfg::cout, mps_fire::i, and runTheMatrix::ret.
Referenced by DDCompareBoolSol(), and DDCompareSolid().
bool DDCompareDDRot | ( | const DDRotation & | lhs, |
const DDRotation & | rhs, | ||
const DDCompOptions & | ddco | ||
) |
Allows to compare name or not. If not, compares only values of the rotation matrix.
Definition at line 260 of file DDCompareTools.cc.
References DDCompOptions::compRotName_, gather_cfg::cout, DDCompareDDRotMat(), DDName::fullname(), DDBase< N, C >::name(), runTheMatrix::ret, and DDRotation::rotation().
Referenced by DDCompareBoolSol(), and DDCompareCPV().
bool DDCompareDDRotMat | ( | const DDRotationMatrix & | lhs, |
const DDRotationMatrix & | rhs, | ||
double | tol | ||
) |
Definition at line 275 of file DDCompareTools.cc.
References gather_cfg::cout, runTheMatrix::ret, gpuClustering::x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by DDCompareDDRot().
bool DDCompareDDTrans | ( | const DDTranslation & | lhs, |
const DDTranslation & | rhs, | ||
double | tol | ||
) |
Definition at line 252 of file DDCompareTools.cc.
References runTheMatrix::ret.
Referenced by DDCompareBoolSol(), and DDCompareCPV().
bool DDCompareEPV | ( | DDExpandedView & | lhs, |
DDExpandedView & | rhs, | ||
const DDCompOptions & | ddco | ||
) |
Definition at line 17 of file DDCompareTools.cc.
References DDExpandedView::copyno(), gather_cfg::cout, DDExpandedView::depth(), DDExpandedView::firstChild(), DDExpandedView::logicalPart(), DDName::name(), DDBase< N, C >::name(), DDExpandedView::next(), DDExpandedView::nextSibling(), DDExpandedView::parent(), and runTheMatrix::ret.
bool DDCompareLP | ( | const DDLogicalPart & | lhs, |
const DDLogicalPart & | rhs, | ||
const DDCompOptions & | ddco | ||
) |
LogicalParts have solids which could be BooleanSolids.
This means they need to know if the DDRotation naems matter.
Definition at line 132 of file DDCompareTools.cc.
References gather_cfg::cout, DDCompareSolid(), DDName::fullname(), DDBase< N, C >::name(), runTheMatrix::ret, and DDLogicalPart::solid().
Referenced by DDCompareCPV().
bool DDCompareSolid | ( | const DDSolid & | lhs, |
const DDSolid & | rhs, | ||
const DDCompOptions & | ddco | ||
) |
Needs to know about rotmat because of BooleanSolid.
Definition at line 147 of file DDCompareTools.cc.
References gather_cfg::cout, dd_not_init, ddbox, DDCompareBoolSol(), DDCompareDBLVEC(), ddcons, ddcuttubs, ddellipticaltube, ddextrudedpolygon, ddintersection, ddpolycone_rrz, ddpolycone_rz, ddpolyhedra_rrz, ddpolyhedra_rz, ddpseudotrap, ddshapeless, ddsphere, ddsubtraction, ddtorus, ddtrap, ddtrunctubs, ddtubs, ddunion, DDName::fullname(), DDBase< N, C >::name(), DDSolid::parameters(), runTheMatrix::ret, and DDSolid::shape().
Referenced by DDCompareBoolSol(), and DDCompareLP().