#include <SiPixelTemplate2D.h>
Public Member Functions | |
float | chi2avgone () |
average y chi^2 for 1 pixel clusters More... | |
float | chi2minone () |
minimum of y chi^2 for 1 pixel clusters More... | |
float | chi2ppix () |
average chi^2 per struck pixel More... | |
float | chi2scale () |
scale factor for chi^2 distribution More... | |
float | clslenx () |
cluster x-size More... | |
float | clsleny () |
cluster y-size More... | |
float | delyavg () |
average difference between clsleny_ and cluster length [with threshold effects] More... | |
float | delysig () |
rms difference between clsleny_ and cluster length [with threshold effects] More... | |
float | fbin (int i) |
Return lower bound of Qbin definition. More... | |
bool | getid (int id) |
bool | interpolate (int id, float cotalpha, float cotbeta, float locBz, float locBx) |
float | kappavav () |
kappa parameter in Vavilov distribution More... | |
void | landau_par (float lanpar[2][5]) |
Return the Landau probability parameters for this set of cot(alpha, cot(beta) More... | |
float | lorxdrift () |
signed lorentz x-width (microns) More... | |
float | lorydrift () |
signed lorentz y-width (microns) More... | |
float | mpvvav () |
most probable Q in Vavilov distribution More... | |
float | offsetx (int i) |
x-offset in 4 charge bins More... | |
float | offsety (int i) |
y-offset in 4 charge bins More... | |
float | pixmax () |
maximum pixel charge More... | |
float | qavg () |
average cluster charge for this set of track angles More... | |
float | qscale () |
charge scaling factor More... | |
float | s50 () |
1/2 of the pixel threshold signal in adc units More... | |
float | scalex (int i) |
x-error scale factor in 4 charge bins More... | |
float | scalexavg () |
x-reco error scaling factor More... | |
float | scaley (int i) |
y-error scale factor in 4 charge bins More... | |
float | scaleyavg () |
y-reco error scaling factor More... | |
void | sideload (SiPixelTemplateEntry2D *entry, int iDtype, float locBx, float locBz, float lorwdy, float lorwdx, float q50, float fbin[3], float xsize, float ysize, float zsize) |
float | sigmavav () |
scale factor in Vavilov distribution More... | |
SiPixelTemplate2D (const std::vector< SiPixelTemplateStore2D > &thePixelTemp) | |
Default constructor. More... | |
float | sizex () |
return x size of template cluster More... | |
float | sizey () |
return y size of template cluster More... | |
int | storesize () |
return the size of the template store (the number of stored IDs More... | |
float | sxymax () |
max pixel signal for pixel error calculation More... | |
float | xsize () |
pixel x-size (microns) More... | |
void | xysigma2 (float qpixel, int index, float &xysig2) |
bool | xytemp (float xhit, float yhit, bool ydouble[21+2], bool xdouble[13+2], float template2d[13+2][21+2], bool dervatives, float dpdx2d[2][13+2][21+2], float &QTemplate) |
bool | xytemp (float xhit, float yhit, bool ydouble[21+2], bool xdouble[13+2], float template2d[13+2][21+2]) |
bool | xytemp (int id, float cotalpha, float cotbeta, float xhit, float yhit, std::vector< bool > &ydouble, std::vector< bool > &xdouble, float template2d[13+2][21+2]) |
float | ysize () |
pixel y-size (microns) More... | |
float | zsize () |
pixel z-size or thickness (microns) More... | |
Static Public Member Functions | |
static bool | pushfile (int filenum, std::vector< SiPixelTemplateStore2D > &pixelTemp, std::string dir="") |
static bool | pushfile (const SiPixel2DTemplateDBObject &dbobject, std::vector< SiPixelTemplateStore2D > &pixelTemp) |
Private Member Functions | |
bool | checkIllegalIndex (const std::string whichMethod, int indMax, int i) |
Private Attributes | |
float | adcota_ |
fractional pixel distance of cot(alpha) from jx0_ More... | |
float | adcotb_ |
fractional pixel distance of cot(beta) from iy0_ More... | |
float | chi2avgone_ |
average chi^2 for 1 pixel clusters More... | |
float | chi2minone_ |
minimum of chi^2 for 1 pixel clusters More... | |
float | chi2ppix_ |
average chi^2 per struck pixel More... | |
float | chi2scale_ |
scale factor for chi2 distribution More... | |
float | clslenx_ |
projected x-length of cluster More... | |
float | clsleny_ |
projected y-length of cluster More... | |
float | cota_current_ |
current cot alpha More... | |
float | cotalpha0_ |
minimum cot(alpha) covered More... | |
float | cotalpha1_ |
maximum cot(alpha) covered More... | |
float | cotb_current_ |
current cot beta More... | |
float | cotbeta0_ |
minimum cot(beta) covered More... | |
float | cotbeta1_ |
maximum cot(beta) covered More... | |
float | deltacota_ |
cot(alpha) bin size More... | |
float | deltacotb_ |
cot(beta) bin size More... | |
float | delyavg_ |
average difference between clsleny_ and cluster length [with threshold effects] More... | |
float | delysig_ |
rms of difference between clsleny_ and cluster length [with threshold effects] More... | |
int | Dtype_ |
flags BPix (=0) or FPix (=1) More... | |
const SiPixelTemplateEntry2D * | entry00_ |
const SiPixelTemplateEntry2D * | entry01_ |
const SiPixelTemplateEntry2D * | entry10_ |
float | fbin_ [3] |
The QBin definitions in Q_clus/Q_avg. More... | |
bool | flip_x_ |
flip x sign-sensitive quantities More... | |
bool | flip_y_ |
flip y sign-sensitive quantities More... | |
int | id_current_ |
current id More... | |
int | imax_ |
max y index of templated cluster More... | |
int | imin_ |
min y index of templated cluster More... | |
int | index_id_ |
current index More... | |
int | iy0_ |
index of nearest cot(beta) bin More... | |
int | iy1_ |
index of next-nearest cot(beta) bin More... | |
int | jmax_ |
max x index of templated cluster More... | |
int | jmin_ |
min x index of templated cluster More... | |
int | jx0_ |
index of nearest cot(alpha) bin More... | |
int | jx1_ |
index of next-nearest cot(alpha) bin More... | |
float | kappavav_ |
kappa parameter in Vavilov distribution More... | |
float | lanpar_ [2][5] |
Interpolated Landau parameters. More... | |
float | lorxdrift_ |
Lorentz x-drift. More... | |
float | lorxwidth_ |
Lorentz x-width. More... | |
float | lorydrift_ |
Lorentz y-drift. More... | |
float | lorywidth_ |
Lorentz y-width (sign corrected for fpix frame) More... | |
float | mpvvav_ |
most probable Q in Vavilov distribution More... | |
int | Nxx_ |
number of cot(alpha)-entries (rows) in template More... | |
int | Nyx_ |
number of cot(beta)-entries (columns) in template More... | |
float | offsetx_ [4] |
x-offset in charge bins More... | |
float | offsety_ [4] |
y-offset in charge bins More... | |
float | pixmax_ |
maximum pixel charge More... | |
float | qavg_ |
average cluster charge for this set of track angles More... | |
float | qscale_ |
charge scaling factor More... | |
float | s50_ |
1/2 of the pixel threshold signal in adc units More... | |
float | scalex_ [4] |
x-error scale factor in charge bins More... | |
float | scalexavg_ |
average x-error scale factor More... | |
float | scaley_ [4] |
y-error scale factor in charge bins More... | |
float | scaleyavg_ |
average y-error scale factor More... | |
float | sigmavav_ |
scale factor in Vavilov distribution More... | |
bool | success_ |
true if cotalpha, cotbeta are inside of the acceptance (dynamically loaded) More... | |
float | sxymax_ |
average pixel signal for y-projection of cluster More... | |
const std::vector< SiPixelTemplateStore2D > & | thePixelTemp_ |
float | xsize_ |
Pixel x-size. More... | |
float | xypary0x0_ [2][5] |
Polynomial error parameterization at ix0,iy0. More... | |
float | xypary0x1_ [2][5] |
Polynomial error parameterization at ix1,iy0. More... | |
float | xypary1x0_ [2][5] |
Polynomial error parameterization at ix0,iy1. More... | |
float | xytemp_ [13+2][21+2] |
template for xy-reconstruction More... | |
float | ysize_ |
Pixel y-size. More... | |
float | zsize_ |
Pixel z-size (thickness) More... | |
A template management class. SiPixelTemplate contains thePixelTemp (a std::vector of SiPixelTemplateStore, each of which is a collection of many SiPixelTemplateEntries). Each SiPixelTemplateStore corresponds to a given detector condition, and is valid for a range of runs. We allow more than one Store since the may change over time.
This class reads templates from files via pushfile() method.
The main functionality of SiPixelTemplate is xytemp(), which produces a template on the fly, given a specific track's alpha and beta. The results are kept in data members and accessed via inline getters.
The resulting template is then used by PixelTempReco2D() (a global function) which get the reference for SiPixelTemplate & templ and uses the current template to reconstruct the SiPixelRecHit.
Definition at line 141 of file SiPixelTemplate2D.h.
|
inline |
Default constructor.
Definition at line 143 of file SiPixelTemplate2D.h.
References BXM2, BYM2, SiPixelTemplateEntry2D::cotalpha, SiPixelTemplateEntry2D::cotbeta, dir, mps_splice::entry, HiCaloJetParameters_cff::interpolate, SiPixelTemplateEntry2D::lanpar, AlCaHLTBitMon_QueryRunRegistry::string, xsize, SiPixelTemplateEntry2D::xytemp, and ysize.
|
inlineprivate |
Definition at line 215 of file SiPixelTemplate2D.h.
References Exception.
|
inline |
average y chi^2 for 1 pixel clusters
Definition at line 195 of file SiPixelTemplate2D.h.
|
inline |
minimum of y chi^2 for 1 pixel clusters
Definition at line 196 of file SiPixelTemplate2D.h.
|
inline |
average chi^2 per struck pixel
Definition at line 193 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
scale factor for chi^2 distribution
Definition at line 194 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
cluster x-size
Definition at line 203 of file SiPixelTemplate2D.h.
|
inline |
cluster y-size
Definition at line 202 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
average difference between clsleny_ and cluster length [with threshold effects]
Definition at line 206 of file SiPixelTemplate2D.h.
|
inline |
rms difference between clsleny_ and cluster length [with threshold effects]
Definition at line 207 of file SiPixelTemplate2D.h.
|
inline |
Return lower bound of Qbin definition.
Definition at line 190 of file SiPixelTemplate2D.h.
References mps_fire::i.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
bool SiPixelTemplate2D::getid | ( | int | id | ) |
Definition at line 522 of file SiPixelTemplate2D.cc.
References Exception, mps_fire::i, triggerObjects_cff::id, and createfilelist::int.
Referenced by SiPixelDigitizerAlgorithm::PixelTempRewgt2D().
bool SiPixelTemplate2D::interpolate | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | locBz, | ||
float | locBx | ||
) |
Interpolate stored 2-D information for input angles
id | - (input) the id of the template |
cotalpha | - (input) the cotangent of the alpha track angle (see CMS IN 2004/014) |
cotbeta | - (input) the cotangent of the beta track angle (see CMS IN 2004/014) |
locBz | - (input) the sign of this quantity is used to determine whether to flip cot(beta)<0 quantities from cot(beta)>0 (FPix only) for Phase 0 FPix IP-related tracks, locBz < 0 for cot(beta) > 0 and locBz > 0 for cot(beta) < 0 for Phase 1 FPix IP-related tracks, see next comment |
locBx | - (input) the sign of this quantity is used to determine whether to flip cot(alpha/beta)<0 quantities from cot(alpha/beta)>0 (FPix only) for Phase 1 FPix IP-related tracks, locBx/locBz > 0 for cot(alpha) > 0 and locBx/locBz < 0 for cot(alpha) < 0 for Phase 1 FPix IP-related tracks, locBx > 0 for cot(beta) > 0 and locBx < 0 for cot(beta) < 0 |
Definition at line 613 of file SiPixelTemplate2D.cc.
References gather_cfg::cout, Exception, f, objects.autophobj::float, mps_fire::i, and createfilelist::int.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D(), and xytemp().
|
inline |
kappa parameter in Vavilov distribution
Definition at line 199 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
void SiPixelTemplate2D::landau_par | ( | float | lanpar[2][5] | ) |
Return the Landau probability parameters for this set of cot(alpha, cot(beta)
Definition at line 1563 of file SiPixelTemplate2D.cc.
References mps_fire::i.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
signed lorentz x-width (microns)
Definition at line 201 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
signed lorentz y-width (microns)
Definition at line 200 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
most probable Q in Vavilov distribution
Definition at line 197 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
x-offset in 4 charge bins
Definition at line 188 of file SiPixelTemplate2D.h.
References mps_fire::i.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
y-offset in 4 charge bins
Definition at line 189 of file SiPixelTemplate2D.h.
References mps_fire::i.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
maximum pixel charge
Definition at line 182 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
static |
This routine initializes the global template structures from an external file template_summary_zpNNNN where NNNN are four digits of filenum.
filenum | - an integer NNNN used in the filename template_summary_zpNNNN |
Alt implementation: for (unsigned cnt=4-tempfile.length(); cnt > 0; cnt– ){ tempfile = "0" + tempfile; }
Definition at line 62 of file SiPixelTemplate2D.cc.
References SiPixelTemplateHeader2D::Bfield, EnergyCorrector::c, SiPixelTemplateEntry2D::chi2ppix, SiPixelTemplateEntry2D::chi2scale, SiPixelTemplateEntry2D::clslenx, SiPixelTemplateEntry2D::clsleny, SiPixelTemplateEntry2D::costrk, SiPixelTemplateEntry2D::cotalpha, SiPixelTemplateEntry2D::cotbeta, SiPixelTemplateEntry2D::delyavg, SiPixelTemplateEntry2D::delysig, SiPixelTemplateHeader2D::Dtype, ENDL, SiPixelTemplateStore2D::entry, SiPixelTemplateHeader2D::fbin, FrontierConditions_GlobalTag_cff::file, SiPixelTemplateHeader2D::fluence, edm::FileInPath::fullPath(), SiPixelTemplateStore2D::head, mps_fire::i, SiPixelTemplateHeader2D::ID, runGCPTkAlMap::in_file, createfilelist::int, SiPixelTemplateEntry2D::iymax, SiPixelTemplateEntry2D::iymin, SiPixelTemplateEntry2D::jxmax, SiPixelTemplateEntry2D::jxmin, gen::k, SiPixelTemplateEntry2D::kappavav, checklumidiff::l, SiPixelTemplateEntry2D::lanpar, LOGERROR, LOGINFO, SiPixelTemplateHeader2D::lorxbias, SiPixelTemplateHeader2D::lorxwidth, SiPixelTemplateHeader2D::lorybias, SiPixelTemplateHeader2D::lorywidth, SiPixelTemplateEntry2D::mpvvav, SiPixelTemplateHeader2D::NTxx, SiPixelTemplateHeader2D::NTy, SiPixelTemplateHeader2D::NTyx, SiPixelTemplateEntry2D::offsetx, SiPixelTemplateEntry2D::offsety, SiPixelTemplateEntry2D::pixmax, SiPixelTemplateEntry2D::qavg, SiPixelTemplateHeader2D::qscale, SiPixelTemplateEntry2D::runnum, SiPixelTemplateHeader2D::s50, SiPixelTemplateEntry2D::scalex, SiPixelTemplateEntry2D::scalexavg, SiPixelTemplateEntry2D::scaley, SiPixelTemplateEntry2D::scaleyavg, SiPixelTemplateEntry2D::sigmavav, SiPixelTemplateEntry2D::spare, SiPixelTemplateHeader2D::ss50, AlCaHLTBitMon_QueryRunRegistry::string, SiPixelTemplateEntry2D::sxymax, T2XSIZE, T2YSIZE, SiPixelTemplateHeader2D::temperature, SiPixelTemplateHeader2D::templ_version, SiPixelTemplateHeader2D::title, SiPixelTemplateHeader2D::Vbias, SiPixelTemplateHeader2D::xsize, SiPixelTemplateEntry2D::xypar, SiPixelTemplateEntry2D::xytemp, SiPixelTemplateHeader2D::ysize, and SiPixelTemplateHeader2D::zsize.
Referenced by SiPixelDigitizerAlgorithm::init(), and PixelCPEClusterRepair::PixelCPEClusterRepair().
|
static |
This routine initializes the global template structures from an external file template_summary_zpNNNN where NNNN are four digits
dbobject | - db storing multiple template calibrations |
Definition at line 301 of file SiPixelTemplate2D.cc.
References SiPixelTemplateHeader2D::Bfield, SiPixel2DTemplateDBObject::char2float::c, SiPixelTemplateEntry2D::chi2ppix, SiPixelTemplateEntry2D::chi2scale, SiPixelTemplateEntry2D::clslenx, SiPixelTemplateEntry2D::clsleny, SiPixelTemplateEntry2D::costrk, SiPixelTemplateEntry2D::cotalpha, SiPixelTemplateEntry2D::cotbeta, SiPixelTemplateEntry2D::delyavg, SiPixelTemplateEntry2D::delysig, SiPixelTemplateHeader2D::Dtype, ENDL, SiPixelTemplateStore2D::entry, SiPixel2DTemplateDBObject::char2float::f, SiPixel2DTemplateDBObject::fail(), SiPixelTemplateHeader2D::fbin, SiPixelTemplateHeader2D::fluence, SiPixelTemplateStore2D::head, mps_fire::i, SiPixelTemplateHeader2D::ID, SiPixel2DTemplateDBObject::incrementIndex(), SiPixel2DTemplateDBObject::index(), createfilelist::int, SiPixelTemplateEntry2D::iymax, SiPixelTemplateEntry2D::iymin, SiPixelTemplateEntry2D::jxmax, SiPixelTemplateEntry2D::jxmin, gen::k, SiPixelTemplateEntry2D::kappavav, checklumidiff::l, SiPixelTemplateEntry2D::lanpar, LOGERROR, LOGINFO, SiPixelTemplateHeader2D::lorxbias, SiPixelTemplateHeader2D::lorxwidth, SiPixelTemplateHeader2D::lorybias, SiPixelTemplateHeader2D::lorywidth, funct::m, SiPixelTemplateEntry2D::mpvvav, SiPixelTemplateHeader2D::NTxx, SiPixelTemplateHeader2D::NTy, SiPixelTemplateHeader2D::NTyx, SiPixel2DTemplateDBObject::numOfTempl(), SiPixelTemplateEntry2D::offsetx, SiPixelTemplateEntry2D::offsety, SiPixelTemplateEntry2D::pixmax, SiPixelTemplateEntry2D::qavg, SiPixelTemplateHeader2D::qscale, SiPixelTemplateEntry2D::runnum, SiPixelTemplateHeader2D::s50, SiPixelTemplateEntry2D::scalex, SiPixelTemplateEntry2D::scalexavg, SiPixelTemplateEntry2D::scaley, SiPixelTemplateEntry2D::scaleyavg, SiPixelTemplateEntry2D::sigmavav, SiPixelTemplateEntry2D::spare, SiPixelTemplateHeader2D::ss50, SiPixel2DTemplateDBObject::sVector(), SiPixelTemplateEntry2D::sxymax, T2XSIZE, T2YSIZE, groupFilesInBlocks::temp, SiPixelTemplateHeader2D::temperature, SiPixelTemplateHeader2D::templ_version, SiPixelTemplateHeader2D::title, SiPixelTemplateHeader2D::Vbias, SiPixelTemplateHeader2D::xsize, SiPixelTemplateEntry2D::xypar, SiPixelTemplateEntry2D::xytemp, SiPixelTemplateHeader2D::ysize, and SiPixelTemplateHeader2D::zsize.
|
inline |
average cluster charge for this set of track angles
Definition at line 181 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
charge scaling factor
Definition at line 183 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
1/2 of the pixel threshold signal in adc units
Definition at line 184 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D(), and SiPixelDigitizerAlgorithm::PixelTempRewgt2D().
|
inline |
x-error scale factor in 4 charge bins
Definition at line 186 of file SiPixelTemplate2D.h.
References mps_fire::i.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
x-reco error scaling factor
Definition at line 205 of file SiPixelTemplate2D.h.
|
inline |
y-error scale factor in 4 charge bins
Definition at line 187 of file SiPixelTemplate2D.h.
References mps_fire::i.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
y-reco error scaling factor
Definition at line 204 of file SiPixelTemplate2D.h.
void SiPixelTemplate2D::sideload | ( | SiPixelTemplateEntry2D * | entry, |
int | iDtype, | ||
float | locBx, | ||
float | locBz, | ||
float | lorwdy, | ||
float | lorwdx, | ||
float | q50, | ||
float | fbin[3], | ||
float | xsize, | ||
float | ysize, | ||
float | zsize | ||
) |
Load template info for single angle point to invoke template reco for template generation
entry | - (input) pointer to template entry |
sizex | - (input) pixel x-size |
sizey | - (input) pixel y-size |
sizez | - (input) pixel z-size |
Definition at line 841 of file SiPixelTemplate2D.cc.
References gather_cfg::cout, mps_splice::entry, Exception, f, objects.autophobj::float, mps_fire::i, xsize, and ysize.
|
inline |
scale factor in Vavilov distribution
Definition at line 198 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
return x size of template cluster
Definition at line 191 of file SiPixelTemplate2D.h.
|
inline |
return y size of template cluster
Definition at line 192 of file SiPixelTemplate2D.h.
|
inline |
return the size of the template store (the number of stored IDs
Definition at line 211 of file SiPixelTemplate2D.h.
|
inline |
max pixel signal for pixel error calculation
Definition at line 185 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
|
inline |
pixel x-size (microns)
Definition at line 208 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D(), and SiPixelDigitizerAlgorithm::PixelTempRewgt2D().
void SiPixelTemplate2D::xysigma2 | ( | float | qpixel, |
int | index, | ||
float & | xysig2 | ||
) |
Return y error (squared) for an input signal and yindex Add large Q scaling for use in cluster splitting.
qpixel | - (input) pixel charge |
index | - (input) y-index index of pixel |
xysig2 | - (output) square error |
Definition at line 1511 of file SiPixelTemplate2D.cc.
References BYM2, Exception, f, and T2HYP1.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D().
bool SiPixelTemplate2D::xytemp | ( | float | xhit, |
float | yhit, | ||
bool | ydouble[21+2], | ||
bool | xdouble[13+2], | ||
float | template2d[13+2][21+2], | ||
bool | derivatives, | ||
float | dpdx2d[2][13+2][21+2], | ||
float & | QTemplate | ||
) |
xhit | - (input) x-position of hit relative to the lower left corner of pixel[1][1] (to allow for the "padding" of the two-d clusters in the splitter) |
yhit | - (input) y-position of hit relative to the lower left corner of pixel[1][1] |
ydouble | - (input) STL vector of 21 element array to flag a double-pixel starting at cluster[1][1] |
xdouble | - (input) STL vector of 11 element array to flag a double-pixel starting at cluster[1][1] |
template2d | - (output) 2d template of size matched to the cluster. Input must be zeroed since charge is added only. |
Definition at line 958 of file SiPixelTemplate2D.cc.
References BXM2, BXM3, BYM2, BYM3, PVValHelper::dx, PVValHelper::dy, f, objects.autophobj::float, mps_fire::i, createfilelist::int, gen::k, reco::ParticleMasses::k0, funct::m, SiStripPI::max, min(), gen::n, T2HX, T2HY, T2XSIZE, and T2YSIZE.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D(), SiPixelDigitizerAlgorithm::PixelTempRewgt2D(), SiPixelTemplateSplit::PixelTempSplit(), and xytemp().
bool SiPixelTemplate2D::xytemp | ( | float | xhit, |
float | yhit, | ||
bool | ydouble[21+2], | ||
bool | xdouble[13+2], | ||
float | template2d[13+2][21+2] | ||
) |
Interpolate stored 2-D information for input angles and hit position to make a 2-D template
xhit | - (input) x-position of hit relative to the lower left corner of pixel[1][1] (to allow for the "padding" of the two-d clusters in the splitter) |
yhit | - (input) y-position of hit relative to the lower left corner of pixel[1][1] |
ydouble | - (input) STL vector of 21 element array to flag a double-pixel starting at cluster[1][1] |
xdouble | - (input) STL vector of 11 element array to flag a double-pixel starting at cluster[1][1] |
template2d | - (output) 2d template of size matched to the cluster. Input must be zeroed since charge is added only. |
Definition at line 1446 of file SiPixelTemplate2D.cc.
References BXM2, BYM2, and xytemp().
bool SiPixelTemplate2D::xytemp | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | xhit, | ||
float | yhit, | ||
std::vector< bool > & | ydouble, | ||
std::vector< bool > & | xdouble, | ||
float | template2d[13+2][21+2] | ||
) |
Interpolate stored 2-D information for input angles and hit position to make a 2-D template
id | - (input) the id of the template |
cotalpha | - (input) the cotangent of the alpha track angle (see CMS IN 2004/014) |
cotbeta | - (input) the cotangent of the beta track angle (see CMS IN 2004/014) |
xhit | - (input) x-position of hit relative to the lower left corner of pixel[1][1] (to allow for the "padding" of the two-d clusters in the splitter) |
yhit | - (input) y-position of hit relative to the lower left corner of pixel[1][1] |
ydouble | - (input) STL vector of 21 element array to flag a double-pixel starting at cluster[1][1] |
xdouble | - (input) STL vector of 11 element array to flag a double-pixel starting at cluster[1][1] |
template2d | - (output) 2d template of size matched to the cluster. Input must be zeroed since charge is added only. |
Definition at line 1472 of file SiPixelTemplate2D.cc.
References BXM2, BYM2, f, mps_fire::i, interpolate(), TXSIZE, TYSIZE, and xytemp().
|
inline |
pixel y-size (microns)
Definition at line 209 of file SiPixelTemplate2D.h.
Referenced by SiPixelTemplateReco2D::PixelTempReco2D(), and SiPixelDigitizerAlgorithm::PixelTempRewgt2D().
|
inline |
pixel z-size or thickness (microns)
Definition at line 210 of file SiPixelTemplate2D.h.
|
private |
fractional pixel distance of cot(alpha) from jx0_
Definition at line 247 of file SiPixelTemplate2D.h.
|
private |
fractional pixel distance of cot(beta) from iy0_
Definition at line 244 of file SiPixelTemplate2D.h.
|
private |
average chi^2 for 1 pixel clusters
Definition at line 271 of file SiPixelTemplate2D.h.
|
private |
minimum of chi^2 for 1 pixel clusters
Definition at line 272 of file SiPixelTemplate2D.h.
|
private |
average chi^2 per struck pixel
Definition at line 269 of file SiPixelTemplate2D.h.
|
private |
scale factor for chi2 distribution
Definition at line 270 of file SiPixelTemplate2D.h.
|
private |
projected x-length of cluster
Definition at line 274 of file SiPixelTemplate2D.h.
|
private |
projected y-length of cluster
Definition at line 273 of file SiPixelTemplate2D.h.
|
private |
current cot alpha
Definition at line 231 of file SiPixelTemplate2D.h.
|
private |
minimum cot(alpha) covered
Definition at line 239 of file SiPixelTemplate2D.h.
|
private |
maximum cot(alpha) covered
Definition at line 240 of file SiPixelTemplate2D.h.
|
private |
current cot beta
Definition at line 232 of file SiPixelTemplate2D.h.
|
private |
minimum cot(beta) covered
Definition at line 236 of file SiPixelTemplate2D.h.
|
private |
maximum cot(beta) covered
Definition at line 237 of file SiPixelTemplate2D.h.
|
private |
cot(alpha) bin size
Definition at line 241 of file SiPixelTemplate2D.h.
|
private |
cot(beta) bin size
Definition at line 238 of file SiPixelTemplate2D.h.
|
private |
average difference between clsleny_ and cluster length [with threshold effects]
Definition at line 277 of file SiPixelTemplate2D.h.
|
private |
rms of difference between clsleny_ and cluster length [with threshold effects]
Definition at line 278 of file SiPixelTemplate2D.h.
|
private |
flags BPix (=0) or FPix (=1)
Definition at line 235 of file SiPixelTemplate2D.h.
|
private |
Definition at line 294 of file SiPixelTemplate2D.h.
|
private |
Definition at line 296 of file SiPixelTemplate2D.h.
|
private |
Definition at line 295 of file SiPixelTemplate2D.h.
|
private |
The QBin definitions in Q_clus/Q_avg.
Definition at line 293 of file SiPixelTemplate2D.h.
|
private |
flip x sign-sensitive quantities
Definition at line 253 of file SiPixelTemplate2D.h.
|
private |
flip y sign-sensitive quantities
Definition at line 252 of file SiPixelTemplate2D.h.
|
private |
current id
Definition at line 229 of file SiPixelTemplate2D.h.
|
private |
max y index of templated cluster
Definition at line 249 of file SiPixelTemplate2D.h.
|
private |
min y index of templated cluster
Definition at line 248 of file SiPixelTemplate2D.h.
|
private |
current index
Definition at line 230 of file SiPixelTemplate2D.h.
|
private |
index of nearest cot(beta) bin
Definition at line 242 of file SiPixelTemplate2D.h.
|
private |
index of next-nearest cot(beta) bin
Definition at line 243 of file SiPixelTemplate2D.h.
|
private |
max x index of templated cluster
Definition at line 251 of file SiPixelTemplate2D.h.
|
private |
min x index of templated cluster
Definition at line 250 of file SiPixelTemplate2D.h.
|
private |
index of nearest cot(alpha) bin
Definition at line 245 of file SiPixelTemplate2D.h.
|
private |
index of next-nearest cot(alpha) bin
Definition at line 246 of file SiPixelTemplate2D.h.
|
private |
kappa parameter in Vavilov distribution
Definition at line 285 of file SiPixelTemplate2D.h.
|
private |
Interpolated Landau parameters.
Definition at line 268 of file SiPixelTemplate2D.h.
|
private |
Lorentz x-drift.
Definition at line 289 of file SiPixelTemplate2D.h.
|
private |
Lorentz x-width.
Definition at line 287 of file SiPixelTemplate2D.h.
|
private |
Lorentz y-drift.
Definition at line 288 of file SiPixelTemplate2D.h.
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 286 of file SiPixelTemplate2D.h.
|
private |
most probable Q in Vavilov distribution
Definition at line 283 of file SiPixelTemplate2D.h.
|
private |
number of cot(alpha)-entries (rows) in template
Definition at line 234 of file SiPixelTemplate2D.h.
|
private |
number of cot(beta)-entries (columns) in template
Definition at line 233 of file SiPixelTemplate2D.h.
|
private |
x-offset in charge bins
Definition at line 281 of file SiPixelTemplate2D.h.
|
private |
y-offset in charge bins
Definition at line 282 of file SiPixelTemplate2D.h.
|
private |
maximum pixel charge
Definition at line 260 of file SiPixelTemplate2D.h.
|
private |
average cluster charge for this set of track angles
Definition at line 259 of file SiPixelTemplate2D.h.
|
private |
charge scaling factor
Definition at line 261 of file SiPixelTemplate2D.h.
|
private |
1/2 of the pixel threshold signal in adc units
Definition at line 262 of file SiPixelTemplate2D.h.
|
private |
x-error scale factor in charge bins
Definition at line 279 of file SiPixelTemplate2D.h.
|
private |
average x-error scale factor
Definition at line 275 of file SiPixelTemplate2D.h.
|
private |
y-error scale factor in charge bins
Definition at line 280 of file SiPixelTemplate2D.h.
|
private |
average y-error scale factor
Definition at line 276 of file SiPixelTemplate2D.h.
|
private |
scale factor in Vavilov distribution
Definition at line 284 of file SiPixelTemplate2D.h.
|
private |
true if cotalpha, cotbeta are inside of the acceptance (dynamically loaded)
Definition at line 254 of file SiPixelTemplate2D.h.
|
private |
average pixel signal for y-projection of cluster
Definition at line 263 of file SiPixelTemplate2D.h.
|
private |
Definition at line 300 of file SiPixelTemplate2D.h.
|
private |
Pixel x-size.
Definition at line 290 of file SiPixelTemplate2D.h.
|
private |
Polynomial error parameterization at ix0,iy0.
Definition at line 265 of file SiPixelTemplate2D.h.
|
private |
Polynomial error parameterization at ix1,iy0.
Definition at line 267 of file SiPixelTemplate2D.h.
|
private |
Polynomial error parameterization at ix0,iy1.
Definition at line 266 of file SiPixelTemplate2D.h.
|
private |
template for xy-reconstruction
Definition at line 264 of file SiPixelTemplate2D.h.
|
private |
Pixel y-size.
Definition at line 291 of file SiPixelTemplate2D.h.
|
private |
Pixel z-size (thickness)
Definition at line 292 of file SiPixelTemplate2D.h.