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

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

Definition at line 362 of file DDCompareTools.cc.

362 : tol_(tol) { }

Member Function Documentation

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

Definition at line 364 of file DDCompareTools.cc.

References tol_.

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

Member Data Documentation

double DDCompareDDTrans::tol_

Definition at line 89 of file DDCompareTools.h.

Referenced by operator()().