CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Abs.cc

Go to the documentation of this file.
00001 // $Id: 
00002 // -*- C++ -*-
00003 //
00004 #include "CLHEP/GenericFunctions/Abs.hh"
00005 #include <cmath>
00006 
00007 namespace Genfun {
00008 
00009 FUNCTION_OBJECT_IMP(Abs)
00010 
00011 Abs::Abs()
00012 {}
00013 
00014 Abs::Abs(const Abs & right) : AbsFunction(right)
00015 {
00016 }
00017 
00018 Abs::~Abs() {
00019 }
00020 
00021 double Abs::operator() (double x) const {
00022   return std::abs(x);
00023 }
00024 
00025 }
00026 

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7