00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef SiPixelTemplateSplit_h
00030 #define SiPixelTemplateSplit_h 1
00031
00032 #include "SiPixelTemplateDefs.h"
00033
00034 #ifndef SI_PIXEL_TEMPLATE_STANDALONE
00035 #include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelTemplate.h"
00036 #include "RecoLocalTracker/SiPixelRecHits/interface/SiPixelTemplate2D.h"
00037 #else
00038 #include "SiPixelTemplate.h"
00039 #include "SiPixelTemplate2D.h"
00040 #endif
00041
00042 #include <vector>
00043 #include "boost/multi_array.hpp"
00044
00045
00046
00047 namespace SiPixelTemplateSplit
00048 {
00049
00050 typedef boost::multi_array<float, 2> array_2d;
00051 typedef boost::multi_array<bool, 2> array_2d_bool;
00052 typedef boost::multi_array<float, 3> array_3d;
00053
00054
00055
00056 int PixelTempSplit(int id, float cotalpha, float cotbeta, array_2d& cluster,
00057 std::vector<bool>& ydouble, std::vector<bool>& xdouble,
00058 SiPixelTemplate& templ,
00059 float& yrec1, float& yrec2, float& sigmay, float& prob2y,
00060 float& xrec1, float& xrec2, float& sigmax, float& prob2x, int& q2bin, float& prob2Q, bool resolve, int speed, float& dchisq, bool deadpix,
00061 std::vector<std::pair<int, int> >& zeropix, SiPixelTemplate2D& templ2D);
00062
00063 int PixelTempSplit(int id, float cotalpha, float cotbeta, array_2d& cluster,
00064 std::vector<bool>& ydouble, std::vector<bool>& xdouble,
00065 SiPixelTemplate& templ,
00066 float& yrec1, float& yrec2, float& sigmay, float& prob2y,
00067 float& xrec1, float& xrec2, float& sigmax, float& prob2x, int& q2bin, float& prob2Q, bool resolve, int speed, float& dchisq, SiPixelTemplate2D& templ2D);
00068
00069 int PixelTempSplit(int id, float cotalpha, float cotbeta, array_2d& cluster,
00070 std::vector<bool>& ydouble, std::vector<bool>& xdouble,
00071 SiPixelTemplate& templ,
00072 float& yrec1, float& yrec2, float& sigmay, float& prob2y,
00073 float& xrec1, float& xrec2, float& sigmax, float& prob2x, int& q2bin, float& prob2Q, bool resolve, float& dchisq, SiPixelTemplate2D& templ2D);
00074
00075 int PixelTempSplit(int id, float cotalpha, float cotbeta, array_2d& cluster,
00076 std::vector<bool>& ydouble, std::vector<bool>& xdouble,
00077 SiPixelTemplate& templ,
00078 float& yrec1, float& yrec2, float& sigmay, float& prob2y,
00079 float& xrec1, float& xrec2, float& sigmax, float& prob2x, int& q2bin, float& prob2Q, SiPixelTemplate2D& templ2D);
00080
00081 int PixelTempSplit(int id, float cotalpha, float cotbeta, array_2d& cluster,
00082 std::vector<bool>& ydouble, std::vector<bool>& xdouble,
00083 SiPixelTemplate& templ,
00084 float& yrec1, float& yrec2, float& sigmay, float& prob2y,
00085 float& xrec1, float& xrec2, float& sigmax, float& prob2x, int& q2bin, SiPixelTemplate2D& templ2D);
00086
00087 }
00088
00089 #endif