#include <SiPixelTemplate.h>
Public Member Functions | |
float | chi2xavg (int i) |
averaage x chi^2 in 4 charge bins More... | |
float | chi2xavgc2m (int i) |
1st pass chi2 min search: average x-chisq for merged clusters More... | |
float | chi2xavgone () |
//!< average x chi^2 for 1 pixel clusters More... | |
float | chi2xmin (int i) |
minimum y chi^2 in 4 charge bins More... | |
float | chi2xminc2m (int i) |
1st pass chi2 min search: minimum x-chisq for merged clusters More... | |
float | chi2xminone () |
//!< minimum of x chi^2 for 1 pixel clusters More... | |
float | chi2yavg (int i) |
average y chi^2 in 4 charge bins More... | |
float | chi2yavgc2m (int i) |
1st pass chi2 min search: average y-chisq for merged clusters More... | |
float | chi2yavgone () |
//!< average y chi^2 for 1 pixel clusters More... | |
float | chi2ymin (int i) |
minimum y chi^2 in 4 charge bins More... | |
float | chi2yminc2m (int i) |
1st pass chi2 min search: minimum y-chisq for merged clusters More... | |
float | chi2yminone () |
//!< minimum of y chi^2 for 1 pixel clusters More... | |
float | clslenx () |
x-size of smaller interpolated template in pixels More... | |
float | clsleny () |
y-size of smaller interpolated template in pixels More... | |
int | cxtemp () |
Return central pixel of x-template pixels above readout threshold. More... | |
int | cytemp () |
Return central pixel of y template pixels above readout threshold. More... | |
float | dxone () |
mean offset/correction for one pixel x-clusters More... | |
float | dxtwo () |
mean offset/correction for one double-pixel x-clusters More... | |
float | dyone () |
mean offset/correction for one pixel y-clusters More... | |
float | dytwo () |
mean offset/correction for one double-pixel y-clusters More... | |
float | fbin (int i) |
Return lower bound of Qbin definition. More... | |
float | fracxone () |
The simulated fraction of single pixel x-clusters. More... | |
float | fracxtwo () |
The simulated fraction of single double-size pixel x-clusters. More... | |
float | fracyone () |
The simulated fraction of single pixel y-clusters. More... | |
float | fracytwo () |
The simulated fraction of single double-size pixel y-clusters. More... | |
bool | interpolate (int id, float cotalpha, float cotbeta, float locBz, float locBx) |
bool | interpolate (int id, float cotalpha, float cotbeta, float locBz) |
bool | interpolate (int id, float cotalpha, float cotbeta) |
float | kappavav () |
kappa parameter for Vavilov distribution More... | |
float | kappavav2 () |
kappa parameter for 2-cluster Vavilov distribution More... | |
float | lorxbias () |
signed lorentz x-width (microns) More... | |
float | lorxwidth () |
signed lorentz x-width (microns) More... | |
float | lorybias () |
signed lorentz y-width (microns) More... | |
float | lorywidth () |
signed lorentz y-width (microns) More... | |
float | mpvvav () |
most probable charge in Vavilov distribution (not actually for larger kappa) More... | |
float | mpvvav2 () |
most probable charge in 2-cluster Vavilov distribution (not actually for larger kappa) More... | |
float | pixmax () |
maximum pixel charge More... | |
float | qavg () |
average cluster charge for this set of track angles More... | |
int | qbin (int id, float cotalpha, float cotbeta, float locBz, float locBx, float qclus, float &pixmx, float &sigmay, float &deltay, float &sigmax, float &deltax, float &sy1, float &dy1, float &sy2, float &dy2, float &sx1, float &dx1, float &sx2, float &dx2) |
int | qbin (int id, float cotalpha, float cotbeta, float locBz, float qclus, float &pixmx, float &sigmay, float &deltay, float &sigmax, float &deltax, float &sy1, float &dy1, float &sy2, float &dy2, float &sx1, float &dx1, float &sx2, float &dx2) |
int | qbin (int id, float cotalpha, float cotbeta, float qclus) |
int | qbin (int id, float cotbeta, float qclus) |
void | qbin_dist (int id, float cotalpha, float cotbeta, float qbin_frac[4], float &ny1_frac, float &ny2_frac, float &nx1_frac, float &nx2_frac) |
float | qmin () |
minimum cluster charge for valid hit (keeps 99.9% of simulated hits) More... | |
float | qmin (int i) |
minimum cluster charge for valid hit (keeps 99.9% or 99.8% of simulated hits) More... | |
float | qscale () |
charge scaling factor More... | |
float | r_qMeas_qTrue () |
ratio of measured to true cluster charge More... | |
float | s50 () |
1/2 of the pixel threshold signal in electrons More... | |
float | sigmavav () |
"sigma" scale fctor for Vavilov distribution More... | |
float | sigmavav2 () |
"sigma" scale fctor for 2-cluster Vavilov distribution More... | |
bool | simpletemplate2D (float xhitp, float yhitp, std::vector< bool > &ydouble, std::vector< bool > &xdouble, float template2d[13+2][21+2]) |
Make simple 2-D templates from track angles set in interpolate and hit position. More... | |
SiPixelTemplate (const std::vector< SiPixelTemplateStore > &thePixelTemp) | |
Constructor for cases in which template store already exists. More... | |
float | ss50 () |
1/2 of the single pixel per double column threshold in electrons More... | |
float | sxmax () |
average pixel signal for x-projection of cluster More... | |
float | sxone () |
rms for one pixel x-clusters More... | |
float | sxtwo () |
rms for one double-pixel x-clusters More... | |
float | symax () |
average pixel signal for y-projection of cluster More... | |
float | syone () |
rms for one pixel y-clusters More... | |
float | sytwo () |
rms for one double-pixel y-clusters More... | |
void | temperrors (int id, float cotalpha, float cotbeta, int qBin, float &sigmay, float &sigmax, float &sy1, float &sy2, float &sx1, float &sx2) |
void | vavilov2_pars (double &mpv, double &sigma, double &kappa) |
void | vavilov_pars (double &mpv, double &sigma, double &kappa) |
float | xavg (int i) |
average x-bias of reconstruction binned in 4 charge bins More... | |
float | xavgc2m (int i) |
1st pass chi2 min search: average x-bias of reconstruction binned in 4 charge bins More... | |
float | xflcorr (int binq, float qflx) |
float | xgsig (int i) |
average sigma_x from Gaussian fit binned in 4 charge bins More... | |
float | xgx0 (int i) |
average x0 from Gaussian fit binned in 4 charge bins More... | |
float | xrms (int i) |
average x-rms of reconstruction binned in 4 charge bins More... | |
float | xrmsc2m (int i) |
1st pass chi2 min search: average x-rms of reconstruction binned in 4 charge bins More... | |
void | xsigma2 (int fxpix, int lxpix, float sxthr, float xsum[13+4], float xsig2[13+4]) |
float | xsize () |
pixel x-size (microns) More... | |
void | xtemp (int fxbin, int lxbin, float xtemplate[41][13+4]) |
void | xtemp3d (int j, int k, std::vector< float > &xtemplate) |
void | xtemp3d_int (int nxpix, int &nxbins) |
float | xxratio () |
fractional distance in x between cotalpha templates More... | |
float | yavg (int i) |
average y-bias of reconstruction binned in 4 charge bins More... | |
float | yavgc2m (int i) |
1st pass chi2 min search: average y-bias of reconstruction binned in 4 charge bins More... | |
float | yflcorr (int binq, float qfly) |
float | ygsig (int i) |
average sigma_y from Gaussian fit binned in 4 charge bins More... | |
float | ygx0 (int i) |
average y0 from Gaussian fit binned in 4 charge bins More... | |
float | yratio () |
fractional distance in y between cotbeta templates More... | |
float | yrms (int i) |
average y-rms of reconstruction binned in 4 charge bins More... | |
float | yrmsc2m (int i) |
1st pass chi2 min search: average y-rms of reconstruction binned in 4 charge bins More... | |
void | ysigma2 (int fypix, int lypix, float sythr, float ysum[21+4], float ysig2[21+4]) |
void | ysigma2 (float qpixel, int index, float &ysig2) |
float | ysize () |
pixel y-size (microns) More... | |
void | ytemp (int fybin, int lybin, float ytemplate[41][21+4]) |
void | ytemp3d (int j, int k, std::vector< float > &ytemplate) |
void | ytemp3d_int (int nypix, int &nybins) |
float | yxratio () |
fractional distance in y between cotalpha templates slices More... | |
float | zsize () |
pixel z-size or thickness (microns) More... | |
Static Public Member Functions | |
static void | postInit (std::vector< SiPixelTemplateStore > &thePixelTemp_) |
static bool | pushfile (int filenum, std::vector< SiPixelTemplateStore > &pixelTemp, std::string dir="CalibTracker/SiPixelESProducers/data/") |
static bool | pushfile (const SiPixelTemplateDBObject &dbobject, std::vector< SiPixelTemplateStore > &pixelTemp) |
Private Attributes | |
float | abs_cotb_ |
absolute value of cot beta More... | |
float | chi2xavg_ [4] |
average x chi^2 in 4 charge bins More... | |
float | chi2xavgc2m_ [4] |
1st pass chi2 min search: average x-chisq for merged clusters More... | |
float | chi2xavgone_ |
average x chi^2 for 1 pixel clusters More... | |
float | chi2xmin_ [4] |
minimum of x chi^2 in 4 charge bins More... | |
float | chi2xminc2m_ [4] |
1st pass chi2 min search: minimum x-chisq for merged clusters More... | |
float | chi2xminone_ |
minimum of x chi^2 for 1 pixel clusters More... | |
float | chi2yavg_ [4] |
average y chi^2 in 4 charge bins More... | |
float | chi2yavgc2m_ [4] |
1st pass chi2 min search: average y-chisq for merged clusters More... | |
float | chi2yavgone_ |
average y chi^2 for 1 pixel clusters More... | |
float | chi2ymin_ [4] |
minimum of y chi^2 in 4 charge bins More... | |
float | chi2yminc2m_ [4] |
1st pass chi2 min search: minimum y-chisq for merged clusters More... | |
float | chi2yminone_ |
minimum of y chi^2 for 1 pixel clusters More... | |
float | clslenx_ |
x-cluster length of smaller interpolated template in pixels More... | |
float | clsleny_ |
y-cluster length of smaller interpolated template in pixels More... | |
float | cota_current_ |
current cot alpha More... | |
float | cotb_current_ |
current cot beta More... | |
float | dxone_ |
mean offset/correction for one pixel x-clusters More... | |
float | dxtwo_ |
mean offset/correction for one double-pixel x-clusters More... | |
float | dyone_ |
mean offset/correction for one pixel y-clusters More... | |
float | dytwo_ |
mean offset/correction for one double-pixel y-clusters More... | |
float | fbin_ [3] |
The QBin definitions in Q_clus/Q_avg. More... | |
float | fracxone_ |
The simulated fraction of single pixel x-clusters. More... | |
float | fracxtwo_ |
The simulated fraction of single double-size pixel x-clusters. More... | |
float | fracyone_ |
The simulated fraction of single pixel y-clusters. More... | |
float | fracytwo_ |
The simulated fraction of single double-size pixel y-clusters. More... | |
int | id_current_ |
current id More... | |
int | index_id_ |
current index More... | |
float | kappavav2_ |
kappa parameter for 2-cluster Vavilov distribution More... | |
float | kappavav_ |
kappa parameter for Vavilov distribution More... | |
float | lorxbias_ |
Lorentz x-bias. More... | |
float | lorxwidth_ |
Lorentz x-width. More... | |
float | lorybias_ |
Lorentz y-bias. More... | |
float | lorywidth_ |
Lorentz y-width (sign corrected for fpix frame) More... | |
float | mpvvav2_ |
most probable charge in 2-cluster Vavilov distribution (not actually for larger kappa) More... | |
float | mpvvav_ |
most probable charge in Vavilov distribution (not actually for larger kappa) More... | |
float | nxbins_ |
number of bins in each dimension of the x-splitting template More... | |
float | nybins_ |
number of bins in each dimension of the y-splitting template More... | |
float | pixmax_ |
maximum pixel charge More... | |
float | qavg_ |
average cluster charge for this set of track angles More... | |
float | qavg_avg_ |
average of cluster charge less than qavg More... | |
float | qmin2_ |
tighter minimum cluster charge for valid hit (keeps 99.8% of simulated hits) More... | |
float | qmin_ |
minimum cluster charge for valid hit (keeps 99.9% of simulated hits) More... | |
float | qscale_ |
charge scaling factor More... | |
float | r_qMeas_qTrue_ |
ratio of measured to true cluster charges More... | |
float | s50_ |
1/2 of the pixel single col threshold signal in electrons More... | |
float | sigmavav2_ |
"sigma" scale fctor for 2-cluster Vavilov distribution More... | |
float | sigmavav_ |
"sigma" scale fctor for Vavilov distribution More... | |
float | ss50_ |
1/2 of the pixel double col threshold signal in electrons More... | |
bool | success_ |
true if cotalpha, cotbeta are inside of the acceptance (dynamically loaded) More... | |
float | sxmax_ |
average pixel signal for x-projection of cluster More... | |
float | sxone_ |
rms for one pixel x-clusters More... | |
float | sxparmax_ |
maximum pixel signal for parameterization of x uncertainties More... | |
float | sxtwo_ |
rms for one double-pixel x-clusters More... | |
float | symax_ |
average pixel signal for y-projection of cluster More... | |
float | syone_ |
rms for one pixel y-clusters More... | |
float | syparmax_ |
maximum pixel signal for parameterization of y uncertainties More... | |
float | sytwo_ |
rms for one double-pixel y-clusters More... | |
boost::multi_array< float, 2 > | temp2dx_ |
2d-primitive for spltting 3-d template More... | |
boost::multi_array< float, 2 > | temp2dy_ |
2d-primitive for spltting 3-d template More... | |
const std::vector< SiPixelTemplateStore > & | thePixelTemp_ |
float | xavg_ [4] |
average x-bias of reconstruction binned in 4 charge bins More... | |
float | xavgc2m_ [4] |
1st pass chi2 min search: average x-bias of reconstruction binned in 4 charge bins More... | |
float | xflparhh_ [4][6] |
Aqfl-parameterized x-correction in 4 charge bins for larger cotbeta, cotalpha. More... | |
float | xflparhl_ [4][6] |
Aqfl-parameterized x-correction in 4 charge bins for larger cotbeta, smaller cotalpha. More... | |
float | xflparlh_ [4][6] |
Aqfl-parameterized x-correction in 4 charge bins for smaller cotbeta, larger cotalpha. More... | |
float | xflparll_ [4][6] |
Aqfl-parameterized x-correction in 4 charge bins for smaller cotbeta, cotalpha. More... | |
float | xgsig_ [4] |
sigma from Gaussian fit binned in 4 charge bins More... | |
float | xgx0_ [4] |
average x0 from Gaussian fit binned in 4 charge bins More... | |
float | xpar0_ [2][5] |
projected x-pixel uncertainty parameterization for central cotalpha More... | |
float | xparh_ [2][5] |
projected x-pixel uncertainty parameterization for larger cotalpha More... | |
float | xparhy0_ [2][5] |
projected x-pixel uncertainty parameterization for larger cotbeta (central alpha) More... | |
float | xparl_ [2][5] |
projected x-pixel uncertainty parameterization for smaller cotalpha More... | |
float | xparly0_ [2][5] |
projected x-pixel uncertainty parameterization for smaller cotbeta (central alpha) More... | |
float | xrms_ [4] |
average x-rms of reconstruction binned in 4 charge bins More... | |
float | xrmsc2m_ [4] |
1st pass chi2 min search: average x-rms of reconstruction binned in 4 charge bins More... | |
float | xsize_ |
Pixel x-size. More... | |
float | xtemp_ [9][13+4] |
templates for x-reconstruction (binned over 5 central pixels) More... | |
float | xxratio_ |
fractional distance in x between cotalpha templates More... | |
float | yavg_ [4] |
average y-bias of reconstruction binned in 4 charge bins More... | |
float | yavgc2m_ [4] |
1st pass chi2 min search: average y-bias of reconstruction binned in 4 charge bins More... | |
float | yflparh_ [4][6] |
Aqfl-parameterized y-correction in 4 charge bins for larger cotbeta. More... | |
float | yflparl_ [4][6] |
Aqfl-parameterized y-correction in 4 charge bins for smaller cotbeta. More... | |
float | ygsig_ [4] |
average sigma_y from Gaussian fit binned in 4 charge bins More... | |
float | ygx0_ [4] |
average y0 from Gaussian fit binned in 4 charge bins More... | |
float | yparh_ [2][5] |
projected y-pixel uncertainty parameterization for larger cotbeta More... | |
float | yparl_ [2][5] |
projected y-pixel uncertainty parameterization for smaller cotbeta More... | |
float | yratio_ |
fractional distance in y between cotbeta templates More... | |
float | yrms_ [4] |
average y-rms of reconstruction binned in 4 charge bins More... | |
float | yrmsc2m_ [4] |
1st pass chi2 min search: average y-rms of reconstruction binned in 4 charge bins More... | |
float | ysize_ |
Pixel y-size. More... | |
float | ytemp_ [9][21+4] |
templates for y-reconstruction (binned over 5 central pixels) More... | |
float | yxratio_ |
fractional distance in y between x-slices of cotalpha templates 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 interpolate(), 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 257 of file SiPixelTemplate.h.
|
inline |
Constructor for cases in which template store already exists.
Definition at line 259 of file SiPixelTemplate.h.
References BXM2, BXSIZE, BYM2, BYSIZE, SiPixelTemplateEntry::cotalpha, SiPixelTemplateEntry::cotbeta, dir, HiCaloJetParameters_cff::interpolate, gen::k, kappa, ApeEstimator_cff::qBin, AlCaHLTBitMon_QueryRunRegistry::string, SiPixelTemplateEntry::xtemp, and SiPixelTemplateEntry::ytemp.
|
inline |
averaage x chi^2 in 4 charge bins
Definition at line 442 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: average x-chisq for merged clusters
Definition at line 498 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
//!< average x chi^2 for 1 pixel clusters
Definition at line 522 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
minimum y chi^2 in 4 charge bins
Definition at line 449 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: minimum x-chisq for merged clusters
Definition at line 505 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
//!< minimum of x chi^2 for 1 pixel clusters
Definition at line 523 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
average y chi^2 in 4 charge bins
Definition at line 428 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: average y-chisq for merged clusters
Definition at line 470 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
//!< average y chi^2 for 1 pixel clusters
Definition at line 520 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
minimum y chi^2 in 4 charge bins
Definition at line 435 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: minimum y-chisq for merged clusters
Definition at line 477 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
//!< minimum of y chi^2 for 1 pixel clusters
Definition at line 521 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
x-size of smaller interpolated template in pixels
Definition at line 368 of file SiPixelTemplate.h.
|
inline |
y-size of smaller interpolated template in pixels
Definition at line 367 of file SiPixelTemplate.h.
Referenced by PixelCPEClusterRepair::checkRecommend2D().
int SiPixelTemplate::cxtemp | ( | ) |
Return central pixel of x-template pixels above readout threshold.
Definition at line 2100 of file SiPixelTemplate.cc.
References BXM1, BXM2, and BXSIZE.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
int SiPixelTemplate::cytemp | ( | ) |
Return central pixel of y template pixels above readout threshold.
Definition at line 2051 of file SiPixelTemplate.cc.
References BYM1, BYM2, and BYSIZE.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one pixel x-clusters
Definition at line 355 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one double-pixel x-clusters
Definition at line 357 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one pixel y-clusters
Definition at line 350 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one double-pixel y-clusters
Definition at line 352 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
Return lower bound of Qbin definition.
Definition at line 512 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
The simulated fraction of single pixel x-clusters.
Definition at line 541 of file SiPixelTemplate.h.
|
inline |
The simulated fraction of single double-size pixel x-clusters.
Definition at line 543 of file SiPixelTemplate.h.
|
inline |
The simulated fraction of single pixel y-clusters.
Definition at line 540 of file SiPixelTemplate.h.
|
inline |
The simulated fraction of single double-size pixel y-clusters.
Definition at line 542 of file SiPixelTemplate.h.
bool SiPixelTemplate::interpolate | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | locBz, | ||
float | locBx | ||
) |
Interpolate input alpha and beta angles to produce a working template for each individual hit.
id | - (input) index of the template to use |
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 1000 of file SiPixelTemplate.cc.
References funct::abs(), BXM1, BXM2, BXM3, BYM1, BYM2, BYM3, gather_cfg::cout, Exception, f, mps_fire::i, triggerObjects_cff::id, createfilelist::int, mathSSE::sqrt(), TXSIZE, and TYSIZE.
Referenced by PixelCPEClusterRepair::checkRecommend2D(), interpolate(), SiPixelTemplateReco::PixelTempReco1D(), SiPixelTemplateSplit::PixelTempSplit(), PixelTemplateSmearerBase::smearHit(), and PixelTemplateSmearerBase::smearMergeGroup().
bool SiPixelTemplate::interpolate | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | locBz | ||
) |
Interpolate input alpha and beta angles to produce a working template for each individual hit.
id | - (input) index of the template to use |
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) Use this for Phase 0, IP related hits |
Definition at line 1518 of file SiPixelTemplate.cc.
References BHY, BYM2, ENDL, Exception, f, mps_fire::i, interpolate(), LOGERROR, and ysigma2().
bool SiPixelTemplate::interpolate | ( | int | id, |
float | cotalpha, | ||
float | cotbeta | ||
) |
Interpolate input alpha and beta angles to produce a working template for each individual hit.
id | - (input) index of the template to use |
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) Use this for Phase 1, IP related hits |
Definition at line 1497 of file SiPixelTemplate.cc.
References f, and interpolate().
|
inline |
kappa parameter for Vavilov distribution
Definition at line 532 of file SiPixelTemplate.h.
|
inline |
kappa parameter for 2-cluster Vavilov distribution
Definition at line 535 of file SiPixelTemplate.h.
|
inline |
signed lorentz x-width (microns)
Definition at line 529 of file SiPixelTemplate.h.
Referenced by PixelCPETemplateReco::localPosition().
|
inline |
signed lorentz x-width (microns)
Definition at line 525 of file SiPixelTemplate.h.
|
inline |
signed lorentz y-width (microns)
Definition at line 528 of file SiPixelTemplate.h.
Referenced by PixelCPETemplateReco::localPosition().
|
inline |
signed lorentz y-width (microns)
Definition at line 524 of file SiPixelTemplate.h.
|
inline |
most probable charge in Vavilov distribution (not actually for larger kappa)
Definition at line 530 of file SiPixelTemplate.h.
|
inline |
most probable charge in 2-cluster Vavilov distribution (not actually for larger kappa)
Definition at line 533 of file SiPixelTemplate.h.
|
inline |
maximum pixel charge
Definition at line 345 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
static |
Definition at line 959 of file SiPixelTemplate.cc.
|
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 131 of file SiPixelTemplate.cc.
References SiPixelTemplateEntry::alpha, SiPixelTemplateEntry::beta, SiPixelTemplateHeader::Bfield, EnergyCorrector::c, SiPixelTemplateEntry::chi2xavg, SiPixelTemplateEntry::chi2xavgc2m, SiPixelTemplateEntry::chi2xavgone, SiPixelTemplateEntry::chi2xmin, SiPixelTemplateEntry::chi2xminc2m, SiPixelTemplateEntry::chi2xminone, SiPixelTemplateEntry::chi2yavg, SiPixelTemplateEntry::chi2yavgc2m, SiPixelTemplateEntry::chi2yavgone, SiPixelTemplateEntry::chi2ymin, SiPixelTemplateEntry::chi2yminc2m, SiPixelTemplateEntry::chi2yminone, SiPixelTemplateEntry::clslenx, SiPixelTemplateEntry::clsleny, SiPixelTemplateEntry::costrk, SiPixelTemplateEntry::cotalpha, SiPixelTemplateStore::cotalphaX, SiPixelTemplateEntry::cotbeta, SiPixelTemplateStore::cotbetaX, SiPixelTemplateStore::cotbetaY, SiPixelTemplateHeader::Dtype, SiPixelTemplateEntry::dxone, SiPixelTemplateEntry::dxtwo, SiPixelTemplateEntry::dyone, SiPixelTemplateEntry::dytwo, ENDL, SiPixelTemplateStore::entx, SiPixelTemplateStore::enty, SiPixelTemplateHeader::fbin, FrontierConditions_GlobalTag_cff::file, SiPixelTemplateHeader::fluence, SiPixelTemplateEntry::fracxone, SiPixelTemplateEntry::fracxtwo, SiPixelTemplateEntry::fracyone, SiPixelTemplateEntry::fracytwo, edm::FileInPath::fullPath(), SiPixelTemplateStore::head, mps_fire::i, SiPixelTemplateHeader::ID, create_public_lumi_plots::in_file, gen::k, SiPixelTemplateEntry::kappavav, SiPixelTemplateEntry::kappavav2, checklumidiff::l, LOGERROR, LOGINFO, SiPixelTemplateHeader::lorxbias, SiPixelTemplateHeader::lorxwidth, SiPixelTemplateHeader::lorybias, SiPixelTemplateHeader::lorywidth, SiPixelTemplateEntry::mpvvav, SiPixelTemplateEntry::mpvvav2, SiPixelTemplateHeader::NTxx, SiPixelTemplateHeader::NTy, SiPixelTemplateHeader::NTyx, SiPixelTemplateEntry::pixmax, SiPixelTemplateEntry::qavg, SiPixelTemplateEntry::qavg_avg, SiPixelTemplateEntry::qbfrac, SiPixelTemplateEntry::qmin, SiPixelTemplateEntry::qmin2, SiPixelTemplateHeader::qscale, SiPixelTemplateEntry::r_qMeas_qTrue, SiPixelTemplateEntry::runnum, SiPixelTemplateHeader::s50, SiPixelTemplateEntry::sigmavav, SiPixelTemplateEntry::sigmavav2, SiPixelTemplateEntry::spare, SiPixelTemplateHeader::ss50, AlCaHLTBitMon_QueryRunRegistry::string, SiPixelTemplateEntry::sxmax, SiPixelTemplateEntry::sxone, SiPixelTemplateEntry::sxtwo, SiPixelTemplateEntry::symax, SiPixelTemplateEntry::syone, SiPixelTemplateEntry::sytwo, SiPixelTemplateHeader::temperature, SiPixelTemplateHeader::templ_version, SiPixelTemplateHeader::title, TXSIZE, TYSIZE, SiPixelTemplateHeader::Vbias, SiPixelTemplateEntry::xavg, SiPixelTemplateEntry::xavgc2m, SiPixelTemplateEntry::xavggen, SiPixelTemplateEntry::xflpar, SiPixelTemplateEntry::xgsig, SiPixelTemplateEntry::xgsiggen, SiPixelTemplateEntry::xgx0, SiPixelTemplateEntry::xgx0gen, SiPixelTemplateEntry::xpar, SiPixelTemplateEntry::xrms, SiPixelTemplateEntry::xrmsc2m, SiPixelTemplateEntry::xrmsgen, SiPixelTemplateHeader::xsize, SiPixelTemplateEntry::xtemp, SiPixelTemplateEntry::yavg, SiPixelTemplateEntry::yavgc2m, SiPixelTemplateEntry::yavggen, SiPixelTemplateEntry::yflpar, SiPixelTemplateEntry::ygsig, SiPixelTemplateEntry::ygsiggen, SiPixelTemplateEntry::ygx0, SiPixelTemplateEntry::ygx0gen, SiPixelTemplateEntry::ypar, SiPixelTemplateEntry::yrms, SiPixelTemplateEntry::yrmsc2m, SiPixelTemplateEntry::yrmsgen, SiPixelTemplateHeader::ysize, SiPixelTemplateEntry::ytemp, and SiPixelTemplateHeader::zsize.
Referenced by TrackingRecHitProducer::beginRun(), PixelCPEClusterRepair::PixelCPEClusterRepair(), PixelCPETemplateReco::PixelCPETemplateReco(), and PixelTemplateSmearerBase::PixelTemplateSmearerBase().
|
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 |
SiPixelTemplateStore theCurrentTemp; // large, don't allocate it on the stack
Definition at line 553 of file SiPixelTemplate.cc.
References SiPixelTemplateDBObject::char2float::c, ENDL, SiPixelTemplateDBObject::char2float::f, mps_fire::i, gen::k, checklumidiff::l, LOGERROR, LOGINFO, funct::m, SiPixelTemplateDBObject::reader(), groupFilesInBlocks::temp, TXSIZE, and TYSIZE.
|
inline |
average cluster charge for this set of track angles
Definition at line 344 of file SiPixelTemplate.h.
Referenced by PixelCPEClusterRepair::checkRecommend2D(), SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
int SiPixelTemplate::qbin | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | locBz, | ||
float | locBx, | ||
float | qclus, | ||
float & | pixmx, | ||
float & | sigmay, | ||
float & | deltay, | ||
float & | sigmax, | ||
float & | deltax, | ||
float & | sy1, | ||
float & | dy1, | ||
float & | sy2, | ||
float & | dy2, | ||
float & | sx1, | ||
float & | dx1, | ||
float & | sx2, | ||
float & | dx2 | ||
) |
Interpolate beta/alpha angles to produce an expected average charge. Return int (0-4) describing the charge of the cluster [0: 1.5<Q/Qavg, 1: 1<Q/Qavg<1.5, 2: 0.85<Q/Qavg<1, 3: 0.95Qmin<Q<0.85Qavg, 4: Q<0.95Qmin].
id | - (input) index of the template to use |
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//! |
qclus | - (input) the cluster charge in electrons |
pixmax | - (output) the maximum pixel charge in electrons (truncation value) |
sigmay | - (output) the estimated y-error for CPEGeneric in microns |
deltay | - (output) the estimated y-bias for CPEGeneric in microns |
sigmax | - (output) the estimated x-error for CPEGeneric in microns |
deltax | - (output) the estimated x-bias for CPEGeneric in microns |
sy1 | - (output) the estimated y-error for 1 single-pixel clusters in microns |
dy1 | - (output) the estimated y-bias for 1 single-pixel clusters in microns |
sy2 | - (output) the estimated y-error for 1 double-pixel clusters in microns |
dy2 | - (output) the estimated y-bias for 1 double-pixel clusters in microns |
sx1 | - (output) the estimated x-error for 1 single-pixel clusters in microns |
dx1 | - (output) the estimated x-bias for 1 single-pixel clusters in microns |
sx2 | - (output) the estimated x-error for 1 double-pixel clusters in microns |
dx2 | - (output) the estimated x-bias for 1 double-pixel clusters in microns |
lorywidth | - (output) the estimated y Lorentz width |
lorxwidth | - (output) the estimated x Lorentz width |
Definition at line 2379 of file SiPixelTemplate.cc.
References funct::abs(), gather_cfg::cout, Exception, f, mps_fire::i, createfilelist::int, and mathSSE::sqrt().
Referenced by qbin().
int SiPixelTemplate::qbin | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | locBz, | ||
float | qclus, | ||
float & | pixmx, | ||
float & | sigmay, | ||
float & | deltay, | ||
float & | sigmax, | ||
float & | deltax, | ||
float & | sy1, | ||
float & | dy1, | ||
float & | sy2, | ||
float & | dy2, | ||
float & | sx1, | ||
float & | dx1, | ||
float & | sx2, | ||
float & | dx2 | ||
) |
Interpolate beta/alpha angles to produce an expected average charge. Return int (0-4) describing the charge of the cluster [0: 1.5<Q/Qavg, 1: 1<Q/Qavg<1.5, 2: 0.85<Q/Qavg<1, 3: 0.95Qmin<Q<0.85Qavg, 4: Q<0.95Qmin].
id | - (input) index of the template to use |
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//! |
qclus | - (input) the cluster charge in electrons |
pixmax | - (output) the maximum pixel charge in electrons (truncation value) |
sigmay | - (output) the estimated y-error for CPEGeneric in microns |
deltay | - (output) the estimated y-bias for CPEGeneric in microns |
sigmax | - (output) the estimated x-error for CPEGeneric in microns |
deltax | - (output) the estimated x-bias for CPEGeneric in microns |
sy1 | - (output) the estimated y-error for 1 single-pixel clusters in microns |
dy1 | - (output) the estimated y-bias for 1 single-pixel clusters in microns |
sy2 | - (output) the estimated y-error for 1 double-pixel clusters in microns |
dy2 | - (output) the estimated y-bias for 1 double-pixel clusters in microns |
sx1 | - (output) the estimated x-error for 1 single-pixel clusters in microns |
dx1 | - (output) the estimated x-bias for 1 single-pixel clusters in microns |
sx2 | - (output) the estimated x-error for 1 double-pixel clusters in microns |
dx2 | - (output) the estimated x-bias for 1 double-pixel clusters in microns |
lorywidth | - (output) the estimated y Lorentz width |
lorxwidth | - (output) the estimated x Lorentz width |
Definition at line 2657 of file SiPixelTemplate.cc.
References qbin().
int SiPixelTemplate::qbin | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | qclus | ||
) |
Interpolate beta/alpha angles to produce an expected average charge. Return int (0-4) describing the charge of the cluster [0: 1.5<Q/Qavg, 1: 1<Q/Qavg<1.5, 2: 0.85<Q/Qavg<1, 3: 0.95Qmin<Q<0.85Qavg, 4: Q<0.95Qmin].
id | - (input) index of the template to use |
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 FPix IP-related tracks, locBz < 0 for cot(beta) > 0 and locBz > 0 for cot(beta) < 0 |
qclus | - (input) the cluster charge in electrons |
pixmax | - (output) the maximum pixel charge in electrons (truncation value) |
sigmay | - (output) the estimated y-error for CPEGeneric in microns |
deltay | - (output) the estimated y-bias for CPEGeneric in microns |
sigmax | - (output) the estimated x-error for CPEGeneric in microns |
deltax | - (output) the estimated x-bias for CPEGeneric in microns |
sy1 | - (output) the estimated y-error for 1 single-pixel clusters in microns |
dy1 | - (output) the estimated y-bias for 1 single-pixel clusters in microns |
sy2 | - (output) the estimated y-error for 1 double-pixel clusters in microns |
dy2 | - (output) the estimated y-bias for 1 double-pixel clusters in microns |
sx1 | - (output) the estimated x-error for 1 single-pixel clusters in microns |
dx1 | - (output) the estimated x-bias for 1 single-pixel clusters in microns |
sx2 | - (output) the estimated x-error for 1 double-pixel clusters in microns |
dx2 | - (output) the estimated x-bias for 1 double-pixel clusters in microns Interpolate beta/alpha angles to produce an expected average charge. Return int (0-4) describing the charge of the cluster [0: 1.5<Q/Qavg, 1: 1<Q/Qavg<1.5, 2: 0.85<Q/Qavg<1, 3: 0.95Qmin<Q<0.85Qavg, 4: Q<0.95Qmin]. |
id | - (input) index of the template to use |
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) |
qclus | - (input) the cluster charge in electrons |
Definition at line 2714 of file SiPixelTemplate.cc.
int SiPixelTemplate::qbin | ( | int | id, |
float | cotbeta, | ||
float | qclus | ||
) |
Interpolate beta/alpha angles to produce an expected average charge. Return int (0-4) describing the charge of the cluster [0: 1.5<Q/Qavg, 1: 1<Q/Qavg<1.5, 2: 0.85<Q/Qavg<1, 3: 0.95Qmin<Q<0.85Qavg, 4: Q<0.95Qmin].
id | - (input) index of the template to use |
cotbeta | - (input) the cotangent of the beta track angle (see CMS IN 2004/014) |
qclus | - (input) the cluster charge in electrons |
Definition at line 2738 of file SiPixelTemplate.cc.
void SiPixelTemplate::qbin_dist | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | qbin_frac[4], | ||
float & | ny1_frac, | ||
float & | ny2_frac, | ||
float & | nx1_frac, | ||
float & | nx2_frac | ||
) |
Interpolate beta/alpha angles to produce estimated errors for fastsim
id | - (input) index of the template to use |
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) |
qbin_frac[4] | - (output) the integrated probability for qbin=0, 0+1, 0+1+2, 0+1+2+3 (1.) |
ny1_frac | - (output) the probability for ysize = 1 for a single-size pixel |
ny2_frac | - (output) the probability for ysize = 1 for a double-size pixel |
nx1_frac | - (output) the probability for xsize = 1 for a single-size pixel |
nx2_frac | - (output) the probability for xsize = 1 for a double-size pixel |
Definition at line 2969 of file SiPixelTemplate.cc.
References Exception, f, mps_fire::i, and createfilelist::int.
Referenced by PixelTemplateSmearerBase::smearHit(), and PixelTemplateSmearerBase::smearMergeGroup().
|
inline |
minimum cluster charge for valid hit (keeps 99.9% of simulated hits)
Definition at line 359 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
minimum cluster charge for valid hit (keeps 99.9% or 99.8% of simulated hits)
Definition at line 360 of file SiPixelTemplate.h.
References Exception.
|
inline |
charge scaling factor
Definition at line 346 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
ratio of measured to true cluster charge
Definition at line 539 of file SiPixelTemplate.h.
|
inline |
1/2 of the pixel threshold signal in electrons
Definition at line 347 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), SiPixelTemplateSplit::PixelTempSplit(), and PixelTemplateSmearerBase::smearHit().
|
inline |
"sigma" scale fctor for Vavilov distribution
Definition at line 531 of file SiPixelTemplate.h.
|
inline |
"sigma" scale fctor for 2-cluster Vavilov distribution
Definition at line 534 of file SiPixelTemplate.h.
bool SiPixelTemplate::simpletemplate2D | ( | float | xhit, |
float | yhit, | ||
std::vector< bool > & | ydouble, | ||
std::vector< bool > & | xdouble, | ||
float | template2d[13+2][21+2] | ||
) |
Make simple 2-D templates from track angles set in interpolate and hit position.
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 3153 of file SiPixelTemplate.cc.
References funct::abs(), any(), SimplePixel::btype, BXM3, BYM3, f, SimplePixel::i, mps_fire::i, createfilelist::int, SimplePixel::j, list(), SiStripPI::max, SimplePixel::s, mathSSE::sqrt(), SimplePixel::x, hybridSuperClusters_cfi::xi, and SimplePixel::y.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
1/2 of the single pixel per double column threshold in electrons
Definition at line 348 of file SiPixelTemplate.h.
|
inline |
average pixel signal for x-projection of cluster
Definition at line 354 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one pixel x-clusters
Definition at line 356 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one double-pixel x-clusters
Definition at line 358 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
average pixel signal for y-projection of cluster
Definition at line 349 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one pixel y-clusters
Definition at line 351 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one double-pixel y-clusters
Definition at line 353 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::temperrors | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
int | qBin, | ||
float & | sigmay, | ||
float & | sigmax, | ||
float & | sy1, | ||
float & | sy2, | ||
float & | sx1, | ||
float & | sx2 | ||
) |
Interpolate beta/alpha angles to produce estimated errors for fastsim
id | - (input) index of the template to use |
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) |
qBin | - (input) charge bin from 0-3 |
sigmay | - (output) the estimated y-error for CPETemplate in microns |
sigmax | - (output) the estimated x-error for CPETemplate in microns |
sy1 | - (output) the estimated y-error for 1 single-pixel clusters in microns |
sy2 | - (output) the estimated y-error for 1 double-pixel clusters in microns |
sx1 | - (output) the estimated x-error for 1 single-pixel clusters in microns |
sx2 | - (output) the estimated x-error for 1 double-pixel clusters in microns |
Definition at line 2770 of file SiPixelTemplate.cc.
References Exception, f, mps_fire::i, createfilelist::int, and ApeEstimator_cff::qBin.
Referenced by PixelTemplateSmearerBase::smearHit(), and PixelTemplateSmearerBase::smearMergeGroup().
void SiPixelTemplate::vavilov2_pars | ( | double & | mpv, |
double & | sigma, | ||
double & | kappa | ||
) |
Interpolate beta/alpha angles to produce Vavilov parameters for the 2-cluster charge distribution
mpv | - (output) the Vavilov most probable charge (well, not really the most probable esp at large kappa) |
sigma | - (output) the Vavilov sigma parameter |
kappa | - (output) the Vavilov kappa parameter [0.01 (Landau-like) < kappa < 10 (Gaussian-like) |
Definition at line 3445 of file SiPixelTemplate.cc.
References Exception, f, mps_fire::i, and mathSSE::sqrt().
Referenced by SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::vavilov_pars | ( | double & | mpv, |
double & | sigma, | ||
double & | kappa | ||
) |
Interpolate beta/alpha angles to produce Vavilov parameters for the charge distribution
mpv | - (output) the Vavilov most probable charge (well, not really the most probable esp at large kappa) |
sigma | - (output) the Vavilov sigma parameter |
kappa | - (output) the Vavilov kappa parameter [0.01 (Landau-like) < kappa < 10 (Gaussian-like) |
Definition at line 3367 of file SiPixelTemplate.cc.
References Exception, f, mps_fire::i, and mathSSE::sqrt().
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
average x-bias of reconstruction binned in 4 charge bins
Definition at line 400 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: average x-bias of reconstruction binned in 4 charge bins
Definition at line 484 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
float SiPixelTemplate::xflcorr | ( | int | binq, |
float | qflx | ||
) |
Return interpolated x-correction for input charge bin and qflx
binq | - (input) charge bin [0-3] |
qflx | - (input) (Q_f-Q_l)/(Q_f+Q_l) for this cluster |
Definition at line 1847 of file SiPixelTemplate.cc.
References PVValHelper::dx, Exception, and f.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
average sigma_x from Gaussian fit binned in 4 charge bins
Definition at line 421 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
average x0 from Gaussian fit binned in 4 charge bins
Definition at line 414 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
average x-rms of reconstruction binned in 4 charge bins
Definition at line 407 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: average x-rms of reconstruction binned in 4 charge bins
Definition at line 491 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::xsigma2 | ( | int | fxpix, |
int | lxpix, | ||
float | sxthr, | ||
float | xsum[13+4], | ||
float | xsig2[13+4] | ||
) |
Return vector of x errors (squared) for an input vector of projected signals Add large Q scaling for use in cluster splitting.
fxpix | - (input) index of the first real pixel in the projected cluster (doesn't include pseudopixels) |
lxpix | - (input) index of the last real pixel in the projected cluster (doesn't include pseudopixels) |
sxthr | - (input) maximum signal before de-weighting |
xsum | - (input) 11-element vector of pixel signals |
xsig2 | - (output) 11-element vector of x errors (squared) |
Definition at line 1684 of file SiPixelTemplate.cc.
References BHX, BXM2, ENDL, Exception, f, mps_fire::i, and LOGERROR.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
pixel x-size (microns)
Definition at line 536 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::xtemp | ( | int | fxbin, |
int | lxbin, | ||
float | xtemplate[41][13+4] | ||
) |
Return interpolated y-template in single call
fxbin | - (input) index of first bin (0-40) to fill |
fxbin | - (input) index of last bin (0-40) to fill |
xtemplate | - (output) a 41x11 output buffer |
Definition at line 1977 of file SiPixelTemplate.cc.
References BXM1, BXM2, BXSIZE, Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), PixelTemplateSmearerBase::smearHit(), and PixelTemplateSmearerBase::smearMergeGroup().
void SiPixelTemplate::xtemp3d | ( | int | i, |
int | j, | ||
std::vector< float > & | xtemplate | ||
) |
Return interpolated 3d x-template in single call
i,j | - (input) template indices |
xtemplate | - (output) a boost 3d array containing two sets of temlate indices and the combined pixel signals |
Definition at line 2331 of file SiPixelTemplate.cc.
References BXSIZE, mps_fire::i, and gen::k.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::xtemp3d_int | ( | int | nxpix, |
int & | nxbins | ||
) |
Make interpolated 3d x-template (stored as class variables)
nxpix | - (input) number of pixels in cluster (needed to size template) |
nxbins | - (output) number of bins needed for each template projection |
Definition at line 2252 of file SiPixelTemplate.cc.
References BXM1, BXM3, BXSIZE, diffTreeTool::diff, Exception, mps_fire::i, createfilelist::int, and gen::k.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
fractional distance in x between cotalpha templates
Definition at line 371 of file SiPixelTemplate.h.
|
inline |
average y-bias of reconstruction binned in 4 charge bins
Definition at line 372 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: average y-bias of reconstruction binned in 4 charge bins
Definition at line 456 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
float SiPixelTemplate::yflcorr | ( | int | binq, |
float | qfly | ||
) |
Return interpolated y-correction for input charge bin and qfly
binq | - (input) charge bin [0-3] |
qfly | - (input) (Q_f-Q_l)/(Q_f+Q_l) for this cluster |
Definition at line 1795 of file SiPixelTemplate.cc.
References PVValHelper::dy, Exception, and f.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
average sigma_y from Gaussian fit binned in 4 charge bins
Definition at line 393 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
average y0 from Gaussian fit binned in 4 charge bins
Definition at line 386 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
fractional distance in y between cotbeta templates
Definition at line 369 of file SiPixelTemplate.h.
|
inline |
average y-rms of reconstruction binned in 4 charge bins
Definition at line 379 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D().
|
inline |
1st pass chi2 min search: average y-rms of reconstruction binned in 4 charge bins
Definition at line 463 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::ysigma2 | ( | int | fypix, |
int | lypix, | ||
float | sythr, | ||
float | ysum[21+4], | ||
float | ysig2[21+4] | ||
) |
Referenced by interpolate(), SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::ysigma2 | ( | float | qpixel, |
int | index, | ||
float & | ysig2 | ||
) |
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 |
ysig2 | - (output) square error |
Definition at line 1617 of file SiPixelTemplate.cc.
References BHY, BYM2, ENDL, Exception, f, and LOGERROR.
|
inline |
pixel y-size (microns)
Definition at line 537 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::ytemp | ( | int | fybin, |
int | lybin, | ||
float | ytemplate[41][21+4] | ||
) |
Return interpolated y-template in single call
fybin | - (input) index of first bin (0-40) to fill |
fybin | - (input) index of last bin (0-40) to fill |
ytemplate | - (output) a 41x25 output buffer |
Definition at line 1899 of file SiPixelTemplate.cc.
References BYM1, BYM2, BYSIZE, Exception, and mps_fire::i.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), PixelTemplateSmearerBase::smearHit(), and PixelTemplateSmearerBase::smearMergeGroup().
void SiPixelTemplate::ytemp3d | ( | int | i, |
int | j, | ||
std::vector< float > & | ytemplate | ||
) |
Return interpolated 3d y-template in single call
i,j | - (input) template indices |
ytemplate | - (output) a boost 3d array containing two sets of temlate indices and the combined pixel signals |
Definition at line 2228 of file SiPixelTemplate.cc.
References BYSIZE, mps_fire::i, and gen::k.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
void SiPixelTemplate::ytemp3d_int | ( | int | nypix, |
int & | nybins | ||
) |
Make interpolated 3d y-template (stored as class variables)
nypix | - (input) number of pixels in cluster (needed to size template) |
nybins | - (output) number of bins needed for each template projection |
Definition at line 2150 of file SiPixelTemplate.cc.
References BYM1, BYM3, BYSIZE, diffTreeTool::diff, Exception, mps_fire::i, createfilelist::int, and gen::k.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
fractional distance in y between cotalpha templates slices
Definition at line 370 of file SiPixelTemplate.h.
|
inline |
pixel z-size or thickness (microns)
Definition at line 538 of file SiPixelTemplate.h.
|
private |
absolute value of cot beta
Definition at line 556 of file SiPixelTemplate.h.
|
private |
average x chi^2 in 4 charge bins
Definition at line 610 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average x-chisq for merged clusters
Definition at line 618 of file SiPixelTemplate.h.
|
private |
average x chi^2 for 1 pixel clusters
Definition at line 622 of file SiPixelTemplate.h.
|
private |
minimum of x chi^2 in 4 charge bins
Definition at line 611 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: minimum x-chisq for merged clusters
Definition at line 619 of file SiPixelTemplate.h.
|
private |
minimum of x chi^2 for 1 pixel clusters
Definition at line 623 of file SiPixelTemplate.h.
|
private |
average y chi^2 in 4 charge bins
Definition at line 608 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average y-chisq for merged clusters
Definition at line 614 of file SiPixelTemplate.h.
|
private |
average y chi^2 for 1 pixel clusters
Definition at line 620 of file SiPixelTemplate.h.
|
private |
minimum of y chi^2 in 4 charge bins
Definition at line 609 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: minimum y-chisq for merged clusters
Definition at line 615 of file SiPixelTemplate.h.
|
private |
minimum of y chi^2 for 1 pixel clusters
Definition at line 621 of file SiPixelTemplate.h.
|
private |
x-cluster length of smaller interpolated template in pixels
Definition at line 581 of file SiPixelTemplate.h.
|
private |
y-cluster length of smaller interpolated template in pixels
Definition at line 580 of file SiPixelTemplate.h.
|
private |
current cot alpha
Definition at line 554 of file SiPixelTemplate.h.
|
private |
current cot beta
Definition at line 555 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one pixel x-clusters
Definition at line 575 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one double-pixel x-clusters
Definition at line 577 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one pixel y-clusters
Definition at line 569 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one double-pixel y-clusters
Definition at line 571 of file SiPixelTemplate.h.
|
private |
The QBin definitions in Q_clus/Q_avg.
Definition at line 642 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single pixel x-clusters.
Definition at line 644 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single double-size pixel x-clusters.
Definition at line 646 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single pixel y-clusters.
Definition at line 643 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single double-size pixel y-clusters.
Definition at line 645 of file SiPixelTemplate.h.
|
private |
current id
Definition at line 552 of file SiPixelTemplate.h.
|
private |
current index
Definition at line 553 of file SiPixelTemplate.h.
|
private |
kappa parameter for 2-cluster Vavilov distribution
Definition at line 630 of file SiPixelTemplate.h.
|
private |
kappa parameter for Vavilov distribution
Definition at line 627 of file SiPixelTemplate.h.
|
private |
Lorentz x-bias.
Definition at line 634 of file SiPixelTemplate.h.
|
private |
Lorentz x-width.
Definition at line 632 of file SiPixelTemplate.h.
|
private |
Lorentz y-bias.
Definition at line 633 of file SiPixelTemplate.h.
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 631 of file SiPixelTemplate.h.
|
private |
most probable charge in 2-cluster Vavilov distribution (not actually for larger kappa)
Definition at line 628 of file SiPixelTemplate.h.
|
private |
most probable charge in Vavilov distribution (not actually for larger kappa)
Definition at line 625 of file SiPixelTemplate.h.
|
private |
number of bins in each dimension of the x-splitting template
Definition at line 640 of file SiPixelTemplate.h.
|
private |
number of bins in each dimension of the y-splitting template
Definition at line 639 of file SiPixelTemplate.h.
|
private |
maximum pixel charge
Definition at line 563 of file SiPixelTemplate.h.
|
private |
average cluster charge for this set of track angles
Definition at line 562 of file SiPixelTemplate.h.
|
private |
average of cluster charge less than qavg
Definition at line 638 of file SiPixelTemplate.h.
|
private |
tighter minimum cluster charge for valid hit (keeps 99.8% of simulated hits)
Definition at line 624 of file SiPixelTemplate.h.
|
private |
minimum cluster charge for valid hit (keeps 99.9% of simulated hits)
Definition at line 579 of file SiPixelTemplate.h.
|
private |
charge scaling factor
Definition at line 564 of file SiPixelTemplate.h.
|
private |
ratio of measured to true cluster charges
Definition at line 641 of file SiPixelTemplate.h.
|
private |
1/2 of the pixel single col threshold signal in electrons
Definition at line 565 of file SiPixelTemplate.h.
|
private |
"sigma" scale fctor for 2-cluster Vavilov distribution
Definition at line 629 of file SiPixelTemplate.h.
|
private |
"sigma" scale fctor for Vavilov distribution
Definition at line 626 of file SiPixelTemplate.h.
|
private |
1/2 of the pixel double col threshold signal in electrons
Definition at line 566 of file SiPixelTemplate.h.
|
private |
true if cotalpha, cotbeta are inside of the acceptance (dynamically loaded)
Definition at line 557 of file SiPixelTemplate.h.
|
private |
average pixel signal for x-projection of cluster
Definition at line 573 of file SiPixelTemplate.h.
|
private |
rms for one pixel x-clusters
Definition at line 576 of file SiPixelTemplate.h.
|
private |
maximum pixel signal for parameterization of x uncertainties
Definition at line 574 of file SiPixelTemplate.h.
|
private |
rms for one double-pixel x-clusters
Definition at line 578 of file SiPixelTemplate.h.
|
private |
average pixel signal for y-projection of cluster
Definition at line 567 of file SiPixelTemplate.h.
|
private |
rms for one pixel y-clusters
Definition at line 570 of file SiPixelTemplate.h.
|
private |
maximum pixel signal for parameterization of y uncertainties
Definition at line 568 of file SiPixelTemplate.h.
|
private |
rms for one double-pixel y-clusters
Definition at line 572 of file SiPixelTemplate.h.
|
private |
2d-primitive for spltting 3-d template
Definition at line 648 of file SiPixelTemplate.h.
|
private |
2d-primitive for spltting 3-d template
Definition at line 647 of file SiPixelTemplate.h.
|
private |
Definition at line 653 of file SiPixelTemplate.h.
|
private |
average x-bias of reconstruction binned in 4 charge bins
Definition at line 600 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average x-bias of reconstruction binned in 4 charge bins
Definition at line 616 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for larger cotbeta, cotalpha.
Definition at line 607 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for larger cotbeta, smaller cotalpha.
Definition at line 606 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for smaller cotbeta, larger cotalpha.
Definition at line 605 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for smaller cotbeta, cotalpha.
Definition at line 604 of file SiPixelTemplate.h.
|
private |
sigma from Gaussian fit binned in 4 charge bins
Definition at line 603 of file SiPixelTemplate.h.
|
private |
average x0 from Gaussian fit binned in 4 charge bins
Definition at line 602 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for central cotalpha
Definition at line 590 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for larger cotalpha
Definition at line 592 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for larger cotbeta (central alpha)
Definition at line 586 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for smaller cotalpha
Definition at line 591 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for smaller cotbeta (central alpha)
Definition at line 585 of file SiPixelTemplate.h.
|
private |
average x-rms of reconstruction binned in 4 charge bins
Definition at line 601 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average x-rms of reconstruction binned in 4 charge bins
Definition at line 617 of file SiPixelTemplate.h.
|
private |
Pixel x-size.
Definition at line 635 of file SiPixelTemplate.h.
|
private |
templates for x-reconstruction (binned over 5 central pixels)
Definition at line 593 of file SiPixelTemplate.h.
|
private |
fractional distance in x between cotalpha templates
Definition at line 589 of file SiPixelTemplate.h.
|
private |
average y-bias of reconstruction binned in 4 charge bins
Definition at line 594 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average y-bias of reconstruction binned in 4 charge bins
Definition at line 612 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized y-correction in 4 charge bins for larger cotbeta.
Definition at line 599 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized y-correction in 4 charge bins for smaller cotbeta.
Definition at line 598 of file SiPixelTemplate.h.
|
private |
average sigma_y from Gaussian fit binned in 4 charge bins
Definition at line 597 of file SiPixelTemplate.h.
|
private |
average y0 from Gaussian fit binned in 4 charge bins
Definition at line 596 of file SiPixelTemplate.h.
|
private |
projected y-pixel uncertainty parameterization for larger cotbeta
Definition at line 584 of file SiPixelTemplate.h.
|
private |
projected y-pixel uncertainty parameterization for smaller cotbeta
Definition at line 583 of file SiPixelTemplate.h.
|
private |
fractional distance in y between cotbeta templates
Definition at line 582 of file SiPixelTemplate.h.
|
private |
average y-rms of reconstruction binned in 4 charge bins
Definition at line 595 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average y-rms of reconstruction binned in 4 charge bins
Definition at line 613 of file SiPixelTemplate.h.
|
private |
Pixel y-size.
Definition at line 636 of file SiPixelTemplate.h.
|
private |
templates for y-reconstruction (binned over 5 central pixels)
Definition at line 587 of file SiPixelTemplate.h.
|
private |
fractional distance in y between x-slices of cotalpha templates
Definition at line 588 of file SiPixelTemplate.h.
|
private |
Pixel z-size (thickness)
Definition at line 637 of file SiPixelTemplate.h.