CMS 3D CMS Logo

Classes | Functions
ME0GeometryValidate.cc File Reference
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "Geometry/GEMGeometry/interface/ME0Geometry.h"
#include "Geometry/GEMGeometry/interface/ME0Layer.h"
#include "Geometry/GEMGeometry/interface/ME0Chamber.h"
#include "Geometry/CommonTopologies/interface/StripTopology.h"
#include "Geometry/Records/interface/MuonGeometryRecord.h"
#include "Fireworks/Core/interface/FWGeometry.h"
#include "DataFormats/GeometrySurface/interface/RectangularPlaneBounds.h"
#include "DataFormats/GeometrySurface/interface/TrapezoidalPlaneBounds.h"
#include <TFile.h>
#include <TH1.h>
#include <limits>
#include <string>
#include <type_traits>
#include <algorithm>

Go to the source code of this file.

Classes

class  ME0GeometryValidate
 

Functions

template<class T >
enable_if<!numeric_limits< T >::is_integer, bool >::type almost_equal (T x, T y, int ulp)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< ME0GeometryValidate > > s_filler_0__LINE__ ("ME0GeometryValidate")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ME0GeometryValidate > > s_maker__LINE__ ("ME0GeometryValidate")
 

Function Documentation

◆ almost_equal()

template<class T >
enable_if<!numeric_limits<T>::is_integer, bool>::type almost_equal ( T  x,
T  y,
int  ulp 
)

Definition at line 39 of file ME0GeometryValidate.cc.

References funct::abs(), geometryDiff::epsilon, SiStripPI::min, and x.

Referenced by ME0GeometryValidate::getDiff().

39  {
40  // the machine epsilon has to be scaled to the magnitude of the values used
41  // and multiplied by the desired precision in ULPs (units in the last place)
42  return abs(x - y) <= numeric_limits<T>::epsilon() * abs(x + y) * ulp
43  // unless the result is subnormal
44  || abs(x - y) < numeric_limits<T>::min();
45 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float x

◆ s_filler_0__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< ME0GeometryValidate > > s_filler_0__LINE__ ( "ME0GeometryValidate"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ME0GeometryValidate > > s_maker__LINE__ ( "ME0GeometryValidate"  )
static