CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
DDCompareDDTrans Struct Reference

#include <DDCompareTools.h>

Inheritance diagram for DDCompareDDTrans:

Public Member Functions

 DDCompareDDTrans ()
 
 DDCompareDDTrans (double tol)
 
bool operator() (const DDTranslation &lhs, const DDTranslation &rhs) const
 

Public Attributes

double tol_
 

Detailed Description

Definition at line 75 of file DDCompareTools.h.

Constructor & Destructor Documentation

DDCompareDDTrans::DDCompareDDTrans ( )

Definition at line 346 of file DDCompareTools.cc.

346 : tol_(0.0004) { }
DDCompareDDTrans::DDCompareDDTrans ( double  tol)

Definition at line 348 of file DDCompareTools.cc.

348 : tol_(tol) { }

Member Function Documentation

bool DDCompareDDTrans::operator() ( const DDTranslation lhs,
const DDTranslation rhs 
) const

Definition at line 350 of file DDCompareTools.cc.

References run_regression::ret, and tol_.

350  {
351  bool ret(true);
352  if ( std::fabs(lhs.x() - rhs.x()) > tol_
353  || std::fabs(lhs.y() - rhs.y()) > tol_
354  || std::fabs(lhs.z() - rhs.z()) > tol_ ) {
355  ret=false;
356  }
357  return ret;
358 }

Member Data Documentation

double DDCompareDDTrans::tol_

Definition at line 79 of file DDCompareTools.h.

Referenced by operator()().