ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitCommon/MathTools/interface/MathUtils.h
Revision: 1.1
Committed: Mon Aug 18 14:57:43 2008 UTC (16 years, 8 months ago) by sixie
Content type: text/plain
Branch: MAIN
Log Message:
Common Tools for the MIT Analysis Code

File Contents

# User Rev Content
1 sixie 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: $
3     //
4     // MathUtils
5     //
6     // Math Utility functions
7     //
8     // Authors: S.Xie
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MATHTOOLS_MATHUTILS_H
12     #define MATHTOOLS_MATHUTILS_H
13    
14     #include "MitAna/DataTree/interface/Types.h"
15     #include <TMath.h>
16    
17     namespace mitMath
18     {
19    
20     /// Convert double into a string
21     std::string ftoa(double x);
22    
23     //Math functions
24    
25     double deltaPhi(double phi1, double phi2);
26     double phiEtaDeltaR(double phi1, double eta1, double phi2, double eta2);
27     double deltaR(mithep::FourVector v1, mithep::FourVector v2);
28     double addInQuadrature(double a, double b);
29     double Eta2Theta(double eta);
30     double Theta2Eta(double theta);
31     }
32     #endif