CMS 3D CMS Logo

SiPixelTemplateSplit.h

Go to the documentation of this file.
00001 //
00002 //  SiPixelTemplateSplit.cc (Version 0.51)
00003 //
00004 //  Procedure to fit two templates (same angle hypotheses) to a single cluster
00005 //  Return two x- and two y-coordinates for the cluster
00006 //
00007 //  Created by Morris Swartz on 04/10/08.
00008 //  Copyright 2008 __TheJohnsHopkinsUniversity__. All rights reserved.
00009 //
00010 //  Incorporate "cluster repair" to handle dead pixels
00011 //  Take truncation size from new pixmax information
00012 //  Change to allow template sizes to be changed at compile time
00013 //  Move interpolation range error to LogDebug
00014 //
00015  
00016 #ifndef SI_PIXEL_TEMPLATE_STANDALONE
00017 #include "CondFormats/SiPixelObjects/interface/SiPixelTemplate.h"
00018 #else
00019 #include "SiPixelTemplate.h"
00020 #endif
00021 
00022 //#define TYSIZE 21
00023 //#define BYSIZE TYSIZE+4
00024 //#define BHY 12 // = BYSIZE/2
00025 //#define BYM1 TYSIZE+3
00026 //#define BYM2 TYSIZE+2
00027 //#define BYM3 TYSIZE+1
00028 //#define TXSIZE 7
00029 //#define BXSIZE TXSIZE+4
00030 //#define BHX 5 // = BXSIZE/2
00031 //#define BXM1 TXSIZE+3
00032 //#define BXM2 TXSIZE+2
00033 //#define BXM3 TXSIZE+1
00034 
00035 #include <vector>
00036 #include "boost/multi_array.hpp"
00037 
00038 
00039 namespace SiPixelTemplateReco 
00040  {
00041  
00042     typedef boost::multi_array<float, 2> array_2d;
00043     typedef boost::multi_array<float, 3> array_3d;
00044 
00045         int PixelTempSplit(int id, bool fpix, float cotalpha, float cotbeta, array_2d cluster, 
00046                                 std::vector<bool> ydouble, std::vector<bool> xdouble, 
00047                                 SiPixelTemplate& templ, 
00048                                 float& yrec1, float& yrec2, float& sigmay, float& proby, 
00049                                 float& xrec1, float& xrec2, float& sigmax, float& probx, int& qbin, bool deadpix, std::vector<std::pair<int, int> > zeropix);
00050 
00051         int PixelTempSplit(int id, bool fpix, float cotalpha, float cotbeta, array_2d cluster, 
00052                                 std::vector<bool> ydouble, std::vector<bool> xdouble, 
00053                                 SiPixelTemplate& templ, 
00054                                 float& yrec1, float& yrec2, float& sigmay, float& proby, 
00055                                 float& xrec1, float& xrec2, float& sigmax, float& probx, int& qbin);
00056 
00057 }
00058                                 
00059 

Generated on Tue Jun 9 17:43:59 2009 for CMSSW by  doxygen 1.5.4