CMS 3D CMS Logo

DDCompareTools.h
Go to the documentation of this file.
1 #include <vector>
2 
10 
11 class DDCompactView;
12 class DDExpandedView;
13 
15 
22 struct DDCompOptions {
27  distTol_(0.0004),
28  rotTol_(0.0004),
29  specTol_(0.0004) {}
30 
32  bool attResync_;
34  double distTol_;
35  double rotTol_;
36  double specTol_;
37 };
38 
39 bool DDCompareEPV(DDExpandedView& lhs, DDExpandedView& rhs, const DDCompOptions& ddco);
40 bool DDCompareCPV(const DDCompactView& lhs, const DDCompactView& rhs, const DDCompOptions& ddco);
41 
43 
46 bool DDCompareLP(const DDLogicalPart& lhs, const DDLogicalPart& rhs, const DDCompOptions& ddco);
47 
49 bool DDCompareSolid(const DDSolid& lhs, const DDSolid& rhs, const DDCompOptions& ddco);
50 
51 bool DDCompareDBLVEC(const std::vector<double>& lhs, const std::vector<double>& rhs, double tol = 0.0004);
52 
54 bool DDCompareBoolSol(const DDBooleanSolid& lhs, const DDBooleanSolid& rhs, const DDCompOptions& ddco);
55 bool DDCompareDDTrans(const DDTranslation& lhs, const DDTranslation& rhs, double tol = 0.0004);
56 
58 bool DDCompareDDRot(const DDRotation& lhs, const DDRotation& rhs, const DDCompOptions& ddco);
59 
60 bool DDCompareDDRotMat(const DDRotationMatrix& lhs, const DDRotationMatrix& rhs, double tol = 0.0004);
DDCompareDDRot
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: DDCompareTools.cc:260
DDCompOptions::distTol_
double distTol_
Definition: DDCompareTools.h:34
DDCompOptions::specTol_
double specTol_
Definition: DDCompareTools.h:36
DDCompareBoolSol
bool DDCompareBoolSol(const DDBooleanSolid &lhs, const DDBooleanSolid &rhs, const DDCompOptions &ddco)
Needs to know because of Rotation Matrix of Boolean Relationship.
Definition: DDCompareTools.cc:221
DDTransform.h
funct::false
false
Definition: Factorize.h:29
DDCompareEPV
bool DDCompareEPV(DDExpandedView &lhs, DDExpandedView &rhs, const DDCompOptions &ddco)
Definition: DDCompareTools.cc:17
DDCompareCPV
bool DDCompareCPV(const DDCompactView &lhs, const DDCompactView &rhs, const DDCompOptions &ddco)
Definition: DDCompareTools.cc:63
DDExpandedView.h
DDCompactView.h
DDCompareDBLVEC
bool DDCompareDBLVEC(const std::vector< double > &lhs, const std::vector< double > &rhs, double tol=0.0004)
Definition: DDCompareTools.cc:198
DDCompOptions::DDCompOptions
DDCompOptions()
Definition: DDCompareTools.h:23
DDBooleanSolid
Definition: DDSolid.h:184
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
DDCompOptions::compRotName_
bool compRotName_
Definition: DDCompareTools.h:31
DDCompOptions::rotTol_
double rotTol_
Definition: DDCompareTools.h:35
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
DDSolid.h
DDExpandedView
Provides an exploded view of the detector (tree-view)
Definition: DDExpandedView.h:41
DDCompareDDRotMat
bool DDCompareDDRotMat(const DDRotationMatrix &lhs, const DDRotationMatrix &rhs, double tol=0.0004)
Definition: DDCompareTools.cc:275
DDCompareLP
bool DDCompareLP(const DDLogicalPart &lhs, const DDLogicalPart &rhs, const DDCompOptions &ddco)
LogicalParts have solids which could be BooleanSolids.
Definition: DDCompareTools.cc:132
DDCompareSolid
bool DDCompareSolid(const DDSolid &lhs, const DDSolid &rhs, const DDCompOptions &ddco)
Needs to know about rotmat because of BooleanSolid.
Definition: DDCompareTools.cc:147
DDCompareDDTrans
bool DDCompareDDTrans(const DDTranslation &lhs, const DDTranslation &rhs, double tol=0.0004)
Definition: DDCompareTools.cc:252
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDTranslation.h
DDLogicalPart.h
DDCompOptions
DDComparators need to know if names of DDRotation matter.
Definition: DDCompareTools.h:22
DDRotationMatrix
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
Definition: DDRotationMatrix.h:8
DDRotationMatrix.h
DDCompOptions::contOnError_
bool contOnError_
Definition: DDCompareTools.h:33
DDSolid
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
DDRotation
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:57
DDCompOptions::attResync_
bool attResync_
Definition: DDCompareTools.h:32