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 293 of file DDCompareTools.cc.

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

Definition at line 295 of file DDCompareTools.cc.

295 : tol_(tol) { }

Member Function Documentation

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

Definition at line 297 of file DDCompareTools.cc.

References tol_.

297  {
298  bool ret(true);
299  if ( std::fabs(lhs.x() - rhs.x()) > tol_
300  || std::fabs(lhs.y() - rhs.y()) > tol_
301  || std::fabs(lhs.z() - rhs.z()) > tol_ ) {
302  ret=false;
303  }
304  return ret;
305 }

Member Data Documentation

double DDCompareDDTrans::tol_

Definition at line 89 of file DDCompareTools.h.

Referenced by operator()().