CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoLocalTracker/SiPixelRecHits/interface/VVIObj.h

Go to the documentation of this file.
00001 //
00002 //  VVIObj.h (v2.0)
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 // V2.0 - restructuring and speed improvements by V. Innocente
00013 //
00014  
00015 #ifndef VVIObj_h
00016 #define VVIObj_h 1
00017 
00018 // ***********************************************************************************************************************
00023 // ***********************************************************************************************************************
00024 class VVIObj {
00025 
00026  public:
00027   
00028   VVIObj(double kappa = 0.01, double beta2 = 1., int mode = 0); 
00029   
00030   double fcn(double x) const; 
00031   void limits(double& xl, double& xu) const; 
00032   
00033 private:
00034   
00035   // Vavilov distribution parameters (inputs and common block /G116C1/)
00036   
00037   const int mode_;          
00038   double t0_;         
00039   double t1_;         
00040   double t_;          
00041   double omega_;
00042   double x0_;        
00043   double a_[155];    
00044   double b_[155];     
00045 };
00046 
00047 
00048 #endif