#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 242 of file DDCompareTools.cc.
References gather_cfg::cout, DDCompareDBLVEC(), DDCompareDDRot(), DDCompareDDTrans(), DDCompareSolid(), DDCompOptions::distTol_, DDName::fullname(), DDBase< N, C >::name(), DDSolid::parameters(), 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 73 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(), p1, and p2.
Referenced by CompareDDCompactViews::beginRun().
bool DDCompareDBLVEC | ( | const std::vector< double > & | lhs, |
const std::vector< double > & | rhs, | ||
double | tol | ||
) |
Definition at line 213 of file DDCompareTools.cc.
References gather_cfg::cout, alignBH_cfg::fixed, and mps_fire::i.
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 287 of file DDCompareTools.cc.
References DDCompOptions::compRotName_, gather_cfg::cout, DDCompareDDRotMat(), DDName::fullname(), DDBase< N, C >::name(), and DDRotation::rotation().
Referenced by DDCompareBoolSol(), and DDCompareCPV().
bool DDCompareDDRotMat | ( | const DDRotationMatrix & | lhs, |
const DDRotationMatrix & | rhs, | ||
double | tol | ||
) |
Definition at line 305 of file DDCompareTools.cc.
References gather_cfg::cout, alignBH_cfg::fixed, genVertex_cff::x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
Referenced by DDCompareDDRot().
bool DDCompareDDTrans | ( | const DDTranslation & | lhs, |
const DDTranslation & | rhs, | ||
double | tol | ||
) |
Definition at line 276 of file DDCompareTools.cc.
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(), and DDExpandedView::parent().
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 142 of file DDCompareTools.cc.
References gather_cfg::cout, DDCompareSolid(), DDName::fullname(), DDBase< N, C >::name(), 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 158 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(), and DDSolid::shape().
Referenced by DDCompareBoolSol(), and DDCompareLP().