CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Sqr.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // CLASSDOC OFF
00003 // $Id: Sqr.h,v 1.1 2003/07/22 21:29:12 garren Exp $
00004 // ---------------------------------------------------------------------------
00005 // CLASSDOC ON
00006 //
00007 // This file is a part of the CLHEP - a Class Library for High Energy Physics.
00008 //
00009 // This file contains a template definition of sqr() 
00010 // sqr() is used only by Vector/test/testLorentzVector.cc
00011 //
00012 #ifndef HEP_SQR_H
00013 #define HEP_SQR_H
00014  
00015 #ifndef CLHEP_SQR_DEFINED
00016 #define CLHEP_SQR_DEFINED
00017 #ifdef sqr
00018 #undef sqr
00019 #endif
00020 template <class T>
00021 inline T sqr(const T& x) {
00022   return x*x;
00023 }
00024 #endif
00025  
00026 #endif /* HEP_SQR_H */

Generated on Thu Jul 1 22:02:31 2010 for CLHEP by  doxygen 1.4.7