CMS 3D CMS Logo

PixelRecoUtilities.h

Go to the documentation of this file.
00001 #ifndef PixelRecoUtilities_H
00002 #define PixelRecoUtilities_H
00003 #include "DataFormats/GeometryVector/interface/GlobalVector.h"
00004 #include "FWCore/Framework/interface/ESHandle.h"
00005 #include "FWCore/Framework/interface/EventSetup.h"
00006 #include <string>
00007 
00013 namespace PixelRecoUtilities {
00014 
00019   float fieldInInvGev(const edm::EventSetup& iSetup);
00020   //  void MaginTesla(const edm::EventSetup& c);
00024   template <typename T>
00025     T bendingRadius(T pt,const edm::EventSetup& iSetup) {return pt*fieldInInvGev(iSetup);}
00026 
00030   template <typename T>
00031   T curvature(T InversePt,const edm::EventSetup& iSetup) {return InversePt/fieldInInvGev(iSetup);}
00032 
00034   template <typename T>
00035     T inversePt (T curvature,const edm::EventSetup& iSetup) {return curvature*fieldInInvGev(iSetup);}
00036 
00037 
00041   double longitudinalBendingCorrection( double radius, double pt,const edm::EventSetup& iSetup); 
00042 
00048   //  TimingReport::Item * initTiming(string name, int switchOnLevel); 
00049 
00050 }
00051  
00052 #endif

Generated on Tue Jun 9 17:45:51 2009 for CMSSW by  doxygen 1.5.4