CMS 3D CMS Logo

Public Member Functions | Public Attributes

DDCompareDDTrans Struct Reference

#include <DDCompareTools.h>

Inheritance diagram for DDCompareDDTrans:
binary_function

List of all members.

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.

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

Definition at line 348 of file DDCompareTools.cc.

: 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_.

                                                                                             {
  bool ret(true);
  if ( std::fabs(lhs.x() - rhs.x()) > tol_
       || std::fabs(lhs.y() - rhs.y()) > tol_
       || std::fabs(lhs.z() - rhs.z()) > tol_ ) {  
    ret=false;
  }
  return ret;
}

Member Data Documentation

Definition at line 79 of file DDCompareTools.h.

Referenced by operator()().