CMS 3D CMS Logo

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 85 of file DDCompareTools.h.

Constructor & Destructor Documentation

DDCompareDDTrans::DDCompareDDTrans ( )

Definition at line 361 of file DDCompareTools.cc.

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

Definition at line 363 of file DDCompareTools.cc.

363 : tol_(tol) { }

Member Function Documentation

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

Definition at line 365 of file DDCompareTools.cc.

References tol_.

365  {
366  bool ret(true);
367  if ( std::fabs(lhs.x() - rhs.x()) > tol_
368  || std::fabs(lhs.y() - rhs.y()) > tol_
369  || std::fabs(lhs.z() - rhs.z()) > tol_ ) {
370  ret=false;
371  }
372  return ret;
373 }

Member Data Documentation

double DDCompareDDTrans::tol_

Definition at line 89 of file DDCompareTools.h.

Referenced by operator()().