Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:41

0001 // -*- C++ -*-
0002 // CLASSDOC OFF
0003 // $Id: Sqr.h,v 1.1 2003/07/22 21:29:12 garren Exp $
0004 // ---------------------------------------------------------------------------
0005 // CLASSDOC ON
0006 //
0007 // This file is a part of the CLHEP - a Class Library for High Energy Physics.
0008 //
0009 // This file contains a template definition of sqr() 
0010 // sqr() is used only by Vector/test/testLorentzVector.cc
0011 //
0012 #ifndef HEP_SQR_H
0013 #define HEP_SQR_H
0014  
0015 #ifndef CLHEP_SQR_DEFINED
0016 #define CLHEP_SQR_DEFINED
0017 #ifdef sqr
0018 #undef sqr
0019 #endif
0020 template <class T>
0021 inline T sqr(const T& x) {
0022   return x*x;
0023 }
0024 #endif
0025  
0026 #endif /* HEP_SQR_H */