CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
heppy::resolutionFunction46< T > Class Template Reference

#include <MuScleFitCorrector_Functions.h>

Inheritance diagram for heppy::resolutionFunction46< T >:
heppy::resolutionFunctionBase< T >

Public Member Functions

int etaBin (const double &eta)
 
 resolutionFunction46 ()
 
virtual double sigmaPt (const double &pt, const double &eta, const T &parval)
 
- Public Member Functions inherited from heppy::resolutionFunctionBase< T >
virtual int parNum () const
 
 resolutionFunctionBase ()
 
virtual ~resolutionFunctionBase ()=0
 

Additional Inherited Members

- Protected Attributes inherited from heppy::resolutionFunctionBase< T >
int parNum_
 

Detailed Description

template<class T>
class heppy::resolutionFunction46< T >

Definition at line 190 of file MuScleFitCorrector_Functions.h.

Constructor & Destructor Documentation

template<class T >
heppy::resolutionFunction46< T >::resolutionFunction46 ( )
inline

Member Function Documentation

template<class T >
int heppy::resolutionFunction46< T >::etaBin ( const double &  eta)
inline

Definition at line 194 of file MuScleFitCorrector_Functions.h.

Referenced by heppy::resolutionFunction46< T >::sigmaPt().

194  {
195  // std::cout << "for eta = " << eta << ", bin = " << bin << std::endl;
196 
197  if (eta < -2.0)
198  return 1;
199  if (eta < -1.8)
200  return 2;
201  if (eta < -1.6)
202  return 3;
203  if (eta < -1.2)
204  return 4;
205  if (eta < -0.8)
206  return 5;
207  if (eta < 0.)
208  return 6;
209  if (eta < 0.8)
210  return 7;
211  if (eta < 1.2)
212  return 8;
213  if (eta < 1.6)
214  return 9;
215  if (eta < 1.8)
216  return 10;
217  if (eta < 2.0)
218  return 11;
219  return 12;
220  }
template<class T >
virtual double heppy::resolutionFunction46< T >::sigmaPt ( const double &  pt,
const double &  eta,
const T parval 
)
inlinevirtual

Implements heppy::resolutionFunctionBase< T >.

Definition at line 222 of file MuScleFitCorrector_Functions.h.

References heppy::resolutionFunction46< T >::etaBin(), funct::pow(), and mathSSE::sqrt().

222  {
223  return sqrt(pow(parval[0] * pt, 2) + pow(parval[etaBin(eta)], 2));
224  }
T sqrt(T t)
Definition: SSEVec.h:19
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29