#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 254 of file SiPixelTemplate.h.
|
inline |
Constructor for cases in which template store already exists.
Definition at line 256 of file SiPixelTemplate.h.
References BXM2, BXSIZE, BYM2, BYSIZE, SiPixelTemplateEntry::cotalpha, SiPixelTemplateEntry::cotbeta, DeadROC_duringRun::dir, HiCaloJetParameters_cff::interpolate, dqmiolumiharvest::j, dqmdumpme::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 533 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 615 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 650 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
minimum y chi^2 in 4 charge bins
Definition at line 543 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 626 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
//!< minimum of x chi^2 for 1 pixel clusters
Definition at line 651 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
average y chi^2 in 4 charge bins
Definition at line 513 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 573 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 648 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
minimum y chi^2 in 4 charge bins
Definition at line 523 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 584 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
//!< minimum of y chi^2 for 1 pixel clusters
Definition at line 649 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
x-size of smaller interpolated template in pixels
Definition at line 429 of file SiPixelTemplate.h.
|
inline |
y-size of smaller interpolated template in pixels
Definition at line 428 of file SiPixelTemplate.h.
Referenced by PixelCPEClusterRepair::checkRecommend2D().
int SiPixelTemplate::cxtemp | ( | ) |
Return central pixel of x-template pixels above readout threshold.
Definition at line 2563 of file SiPixelTemplate.cc.
References BXM1, BXM2, BXSIZE, and dqmiolumiharvest::j.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
int SiPixelTemplate::cytemp | ( | ) |
Return central pixel of y template pixels above readout threshold.
Definition at line 2510 of file SiPixelTemplate.cc.
References BYM1, BYM2, BYSIZE, and dqmiolumiharvest::j.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one pixel x-clusters
Definition at line 409 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one double-pixel x-clusters
Definition at line 411 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one pixel y-clusters
Definition at line 404 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
mean offset/correction for one double-pixel y-clusters
Definition at line 406 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
Return lower bound of Qbin definition.
Definition at line 637 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 671 of file SiPixelTemplate.h.
|
inline |
The simulated fraction of single double-size pixel x-clusters.
Definition at line 673 of file SiPixelTemplate.h.
|
inline |
The simulated fraction of single pixel y-clusters.
Definition at line 670 of file SiPixelTemplate.h.
|
inline |
The simulated fraction of single double-size pixel y-clusters.
Definition at line 672 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 1326 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, dqmiolumiharvest::j, 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 1945 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 1923 of file SiPixelTemplate.cc.
References f, and interpolate().
|
inline |
kappa parameter for Vavilov distribution
Definition at line 660 of file SiPixelTemplate.h.
|
inline |
kappa parameter for 2-cluster Vavilov distribution
Definition at line 665 of file SiPixelTemplate.h.
|
inline |
signed lorentz x-width (microns)
Definition at line 657 of file SiPixelTemplate.h.
Referenced by PixelCPETemplateReco::localPosition().
|
inline |
signed lorentz x-width (microns)
Definition at line 653 of file SiPixelTemplate.h.
|
inline |
signed lorentz y-width (microns)
Definition at line 656 of file SiPixelTemplate.h.
Referenced by PixelCPETemplateReco::localPosition().
|
inline |
signed lorentz y-width (microns)
Definition at line 652 of file SiPixelTemplate.h.
|
inline |
most probable charge in Vavilov distribution (not actually for larger kappa)
Definition at line 658 of file SiPixelTemplate.h.
|
inline |
most probable charge in 2-cluster Vavilov distribution (not actually for larger kappa)
Definition at line 661 of file SiPixelTemplate.h.
|
inline |
maximum pixel charge
Definition at line 399 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
static |
Definition at line 1286 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 128 of file SiPixelTemplate.cc.
References SiPixelTemplateEntry::alpha, SiPixelTemplateEntry::beta, SiPixelTemplateHeader::Bfield, HltBtagPostValidation_cff::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, dqmiolumiharvest::j, dqmdumpme::k, SiPixelTemplateEntry::kappavav, SiPixelTemplateEntry::kappavav2, cmsLHEtoEOSManager::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 722 of file SiPixelTemplate.cc.
References SiPixelTemplateDBObject::char2float::c, dqmiodatasetharvest::db, ENDL, SiPixelTemplateDBObject::char2float::f, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, cmsLHEtoEOSManager::l, LOGERROR, LOGINFO, visualization-live-secondInstance_cfg::m, SiPixelTemplateDBObject::reader(), groupFilesInBlocks::temp, TXSIZE, and TYSIZE.
|
inline |
average cluster charge for this set of track angles
Definition at line 398 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 2845 of file SiPixelTemplate.cc.
References funct::abs(), gather_cfg::cout, Exception, f, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, 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 3177 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 3266 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 3310 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 3560 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 413 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 414 of file SiPixelTemplate.h.
References Exception.
|
inline |
charge scaling factor
Definition at line 400 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
ratio of measured to true cluster charge
Definition at line 669 of file SiPixelTemplate.h.
|
inline |
1/2 of the pixel threshold signal in electrons
Definition at line 401 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), SiPixelTemplateSplit::PixelTempSplit(), and PixelTemplateSmearerBase::smearHit().
|
inline |
"sigma" scale fctor for Vavilov distribution
Definition at line 659 of file SiPixelTemplate.h.
|
inline |
"sigma" scale fctor for 2-cluster Vavilov distribution
Definition at line 664 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 3746 of file SiPixelTemplate.cc.
References funct::abs(), any(), SimplePixel::btype, BXM3, BYM3, f, SimplePixel::i, mps_fire::i, createfilelist::int, SimplePixel::j, dqmiolumiharvest::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 402 of file SiPixelTemplate.h.
|
inline |
average pixel signal for x-projection of cluster
Definition at line 408 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one pixel x-clusters
Definition at line 410 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one double-pixel x-clusters
Definition at line 412 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
average pixel signal for y-projection of cluster
Definition at line 403 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one pixel y-clusters
Definition at line 405 of file SiPixelTemplate.h.
Referenced by SiPixelTemplateReco::PixelTempReco1D(), and SiPixelTemplateSplit::PixelTempSplit().
|
inline |
rms for one double-pixel y-clusters
Definition at line 407 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 3360 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 4056 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 3978 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 473 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 595 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 2298 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 503 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
average x0 from Gaussian fit binned in 4 charge bins
Definition at line 493 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
average x-rms of reconstruction binned in 4 charge bins
Definition at line 483 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 605 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 2124 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 666 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 2437 of file SiPixelTemplate.cc.
References BXM1, BXM2, BXSIZE, Exception, mps_fire::i, and dqmiolumiharvest::j.
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 2798 of file SiPixelTemplate.cc.
References BXSIZE, mps_fire::i, dqmiolumiharvest::j, and dqmdumpme::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 2719 of file SiPixelTemplate.cc.
References BXM1, BXM3, BXSIZE, change_name::diff, Exception, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, and dqmdumpme::k.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
fractional distance in x between cotalpha templates
Definition at line 432 of file SiPixelTemplate.h.
|
inline |
average y-bias of reconstruction binned in 4 charge bins
Definition at line 433 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 553 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 2242 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 463 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
average y0 from Gaussian fit binned in 4 charge bins
Definition at line 453 of file SiPixelTemplate.h.
References Exception, and mps_fire::i.
|
inline |
fractional distance in y between cotbeta templates
Definition at line 430 of file SiPixelTemplate.h.
|
inline |
average y-rms of reconstruction binned in 4 charge bins
Definition at line 443 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 563 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 2051 of file SiPixelTemplate.cc.
References BHY, BYM2, ENDL, Exception, f, and LOGERROR.
|
inline |
pixel y-size (microns)
Definition at line 667 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 2361 of file SiPixelTemplate.cc.
References BYM1, BYM2, BYSIZE, Exception, mps_fire::i, and dqmiolumiharvest::j.
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 2696 of file SiPixelTemplate.cc.
References BYSIZE, mps_fire::i, dqmiolumiharvest::j, and dqmdumpme::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 2618 of file SiPixelTemplate.cc.
References BYM1, BYM3, BYSIZE, change_name::diff, Exception, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, and dqmdumpme::k.
Referenced by SiPixelTemplateSplit::PixelTempSplit().
|
inline |
fractional distance in y between cotalpha templates slices
Definition at line 431 of file SiPixelTemplate.h.
|
inline |
pixel z-size or thickness (microns)
Definition at line 668 of file SiPixelTemplate.h.
|
private |
absolute value of cot beta
Definition at line 684 of file SiPixelTemplate.h.
|
private |
average x chi^2 in 4 charge bins
Definition at line 737 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average x-chisq for merged clusters
Definition at line 745 of file SiPixelTemplate.h.
|
private |
average x chi^2 for 1 pixel clusters
Definition at line 749 of file SiPixelTemplate.h.
|
private |
minimum of x chi^2 in 4 charge bins
Definition at line 738 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: minimum x-chisq for merged clusters
Definition at line 746 of file SiPixelTemplate.h.
|
private |
minimum of x chi^2 for 1 pixel clusters
Definition at line 750 of file SiPixelTemplate.h.
|
private |
average y chi^2 in 4 charge bins
Definition at line 735 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average y-chisq for merged clusters
Definition at line 741 of file SiPixelTemplate.h.
|
private |
average y chi^2 for 1 pixel clusters
Definition at line 747 of file SiPixelTemplate.h.
|
private |
minimum of y chi^2 in 4 charge bins
Definition at line 736 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: minimum y-chisq for merged clusters
Definition at line 742 of file SiPixelTemplate.h.
|
private |
minimum of y chi^2 for 1 pixel clusters
Definition at line 748 of file SiPixelTemplate.h.
|
private |
x-cluster length of smaller interpolated template in pixels
Definition at line 708 of file SiPixelTemplate.h.
|
private |
y-cluster length of smaller interpolated template in pixels
Definition at line 707 of file SiPixelTemplate.h.
|
private |
current cot alpha
Definition at line 682 of file SiPixelTemplate.h.
|
private |
current cot beta
Definition at line 683 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one pixel x-clusters
Definition at line 702 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one double-pixel x-clusters
Definition at line 704 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one pixel y-clusters
Definition at line 696 of file SiPixelTemplate.h.
|
private |
mean offset/correction for one double-pixel y-clusters
Definition at line 698 of file SiPixelTemplate.h.
|
private |
The QBin definitions in Q_clus/Q_avg.
Definition at line 769 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single pixel x-clusters.
Definition at line 771 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single double-size pixel x-clusters.
Definition at line 773 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single pixel y-clusters.
Definition at line 770 of file SiPixelTemplate.h.
|
private |
The simulated fraction of single double-size pixel y-clusters.
Definition at line 772 of file SiPixelTemplate.h.
|
private |
current id
Definition at line 680 of file SiPixelTemplate.h.
|
private |
current index
Definition at line 681 of file SiPixelTemplate.h.
|
private |
kappa parameter for 2-cluster Vavilov distribution
Definition at line 757 of file SiPixelTemplate.h.
|
private |
kappa parameter for Vavilov distribution
Definition at line 754 of file SiPixelTemplate.h.
|
private |
Lorentz x-bias.
Definition at line 761 of file SiPixelTemplate.h.
|
private |
Lorentz x-width.
Definition at line 759 of file SiPixelTemplate.h.
|
private |
Lorentz y-bias.
Definition at line 760 of file SiPixelTemplate.h.
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 758 of file SiPixelTemplate.h.
|
private |
most probable charge in 2-cluster Vavilov distribution (not actually for larger kappa)
Definition at line 755 of file SiPixelTemplate.h.
|
private |
most probable charge in Vavilov distribution (not actually for larger kappa)
Definition at line 752 of file SiPixelTemplate.h.
|
private |
number of bins in each dimension of the x-splitting template
Definition at line 767 of file SiPixelTemplate.h.
|
private |
number of bins in each dimension of the y-splitting template
Definition at line 766 of file SiPixelTemplate.h.
|
private |
maximum pixel charge
Definition at line 690 of file SiPixelTemplate.h.
|
private |
average cluster charge for this set of track angles
Definition at line 689 of file SiPixelTemplate.h.
|
private |
average of cluster charge less than qavg
Definition at line 765 of file SiPixelTemplate.h.
|
private |
tighter minimum cluster charge for valid hit (keeps 99.8% of simulated hits)
Definition at line 751 of file SiPixelTemplate.h.
|
private |
minimum cluster charge for valid hit (keeps 99.9% of simulated hits)
Definition at line 706 of file SiPixelTemplate.h.
|
private |
charge scaling factor
Definition at line 691 of file SiPixelTemplate.h.
|
private |
ratio of measured to true cluster charges
Definition at line 768 of file SiPixelTemplate.h.
|
private |
1/2 of the pixel single col threshold signal in electrons
Definition at line 692 of file SiPixelTemplate.h.
|
private |
"sigma" scale fctor for 2-cluster Vavilov distribution
Definition at line 756 of file SiPixelTemplate.h.
|
private |
"sigma" scale fctor for Vavilov distribution
Definition at line 753 of file SiPixelTemplate.h.
|
private |
1/2 of the pixel double col threshold signal in electrons
Definition at line 693 of file SiPixelTemplate.h.
|
private |
true if cotalpha, cotbeta are inside of the acceptance (dynamically loaded)
Definition at line 685 of file SiPixelTemplate.h.
|
private |
average pixel signal for x-projection of cluster
Definition at line 700 of file SiPixelTemplate.h.
|
private |
rms for one pixel x-clusters
Definition at line 703 of file SiPixelTemplate.h.
|
private |
maximum pixel signal for parameterization of x uncertainties
Definition at line 701 of file SiPixelTemplate.h.
|
private |
rms for one double-pixel x-clusters
Definition at line 705 of file SiPixelTemplate.h.
|
private |
average pixel signal for y-projection of cluster
Definition at line 694 of file SiPixelTemplate.h.
|
private |
rms for one pixel y-clusters
Definition at line 697 of file SiPixelTemplate.h.
|
private |
maximum pixel signal for parameterization of y uncertainties
Definition at line 695 of file SiPixelTemplate.h.
|
private |
rms for one double-pixel y-clusters
Definition at line 699 of file SiPixelTemplate.h.
|
private |
2d-primitive for spltting 3-d template
Definition at line 775 of file SiPixelTemplate.h.
|
private |
2d-primitive for spltting 3-d template
Definition at line 774 of file SiPixelTemplate.h.
|
private |
Definition at line 779 of file SiPixelTemplate.h.
|
private |
average x-bias of reconstruction binned in 4 charge bins
Definition at line 727 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average x-bias of reconstruction binned in 4 charge bins
Definition at line 743 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for larger cotbeta, cotalpha.
Definition at line 734 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for larger cotbeta, smaller cotalpha.
Definition at line 733 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for smaller cotbeta, larger cotalpha.
Definition at line 732 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized x-correction in 4 charge bins for smaller cotbeta, cotalpha.
Definition at line 731 of file SiPixelTemplate.h.
|
private |
sigma from Gaussian fit binned in 4 charge bins
Definition at line 730 of file SiPixelTemplate.h.
|
private |
average x0 from Gaussian fit binned in 4 charge bins
Definition at line 729 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for central cotalpha
Definition at line 717 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for larger cotalpha
Definition at line 719 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for larger cotbeta (central alpha)
Definition at line 713 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for smaller cotalpha
Definition at line 718 of file SiPixelTemplate.h.
|
private |
projected x-pixel uncertainty parameterization for smaller cotbeta (central alpha)
Definition at line 712 of file SiPixelTemplate.h.
|
private |
average x-rms of reconstruction binned in 4 charge bins
Definition at line 728 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average x-rms of reconstruction binned in 4 charge bins
Definition at line 744 of file SiPixelTemplate.h.
|
private |
Pixel x-size.
Definition at line 762 of file SiPixelTemplate.h.
|
private |
templates for x-reconstruction (binned over 5 central pixels)
Definition at line 720 of file SiPixelTemplate.h.
|
private |
fractional distance in x between cotalpha templates
Definition at line 716 of file SiPixelTemplate.h.
|
private |
average y-bias of reconstruction binned in 4 charge bins
Definition at line 721 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average y-bias of reconstruction binned in 4 charge bins
Definition at line 739 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized y-correction in 4 charge bins for larger cotbeta.
Definition at line 726 of file SiPixelTemplate.h.
|
private |
Aqfl-parameterized y-correction in 4 charge bins for smaller cotbeta.
Definition at line 725 of file SiPixelTemplate.h.
|
private |
average sigma_y from Gaussian fit binned in 4 charge bins
Definition at line 724 of file SiPixelTemplate.h.
|
private |
average y0 from Gaussian fit binned in 4 charge bins
Definition at line 723 of file SiPixelTemplate.h.
|
private |
projected y-pixel uncertainty parameterization for larger cotbeta
Definition at line 711 of file SiPixelTemplate.h.
|
private |
projected y-pixel uncertainty parameterization for smaller cotbeta
Definition at line 710 of file SiPixelTemplate.h.
|
private |
fractional distance in y between cotbeta templates
Definition at line 709 of file SiPixelTemplate.h.
|
private |
average y-rms of reconstruction binned in 4 charge bins
Definition at line 722 of file SiPixelTemplate.h.
|
private |
1st pass chi2 min search: average y-rms of reconstruction binned in 4 charge bins
Definition at line 740 of file SiPixelTemplate.h.
|
private |
Pixel y-size.
Definition at line 763 of file SiPixelTemplate.h.
|
private |
templates for y-reconstruction (binned over 5 central pixels)
Definition at line 714 of file SiPixelTemplate.h.
|
private |
fractional distance in y between x-slices of cotalpha templates
Definition at line 715 of file SiPixelTemplate.h.
|
private |
Pixel z-size (thickness)
Definition at line 764 of file SiPixelTemplate.h.