CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/RecoLocalTracker/SiPixelRecHits/plugins/VVIObj.h

Go to the documentation of this file.
00001 //
00002 //  VVIObj.h (v1.2)
00003 //
00004 //  Vavilov density and distribution functions
00005 //
00006 //
00007 // Created by Morris Swartz on 1/14/10.
00008 // Copyright 2010 __TheJohnsHopkinsUniversity__. All rights reserved.
00009 //
00010 // V1.1 - make dzero call both fcns with a switch
00011 // V1.2 - remove inappriate initializers and add methods to return non-zero/normalized region
00012 //
00013  
00014 #ifndef VVIObj_h
00015 #define VVIObj_h 1
00016 
00017 // ***********************************************************************************************************************
00022 // ***********************************************************************************************************************
00023 class VVIObj {
00024 
00025  public:
00026   
00027   VVIObj(double kappa = 0.01, double beta2 = 1., double mode = 0); 
00028   
00029   double fcn(double x) const; 
00030   void limits(double& xl, double& xu) const; 
00031   
00032 private:
00033   
00034   // Vavilov distribution parameters (inputs and common black /G116C1/)
00035   
00036   const int mode_;          
00037   double t0_;         
00038   double t1_;         
00039   double t_;          
00040   double omega_;
00041   double x0_;        
00042   double a_[155];    
00043   double b_[155];     
00044 };
00045 
00046 
00047 #endif