#include <SiPixelGenError.h>
Public Member Functions | |
float | fbin (int i) |
Return lower bound of Qbin definition. More... | |
float | lorxbias () |
signed lorentz x-bias (microns) More... | |
float | lorxwidth () |
signed lorentz x-width (microns) More... | |
float | lorybias () |
signed lorentz y-bias (microns) More... | |
float | lorywidth () |
signed lorentz y-width (microns) More... | |
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) |
SiPixelGenError (const std::vector< SiPixelGenErrorStore > &thePixelTemp) | |
Constructor for cases in which template store already exists. More... | |
float | xsize () |
pixel x-size (microns) More... | |
float | ysize () |
pixel y-size (microns) More... | |
float | zsize () |
pixel z-size or thickness (microns) More... | |
Static Public Member Functions | |
static void | postInit (std::vector< SiPixelGenErrorStore > &thePixelTemp_) |
static bool | pushfile (int filenum, std::vector< SiPixelGenErrorStore > &thePixelTemp_) |
static bool | pushfile (const SiPixelGenErrorDBObject &dbobject, std::vector< SiPixelGenErrorStore > &thePixelTemp_) |
Private Attributes | |
float | fbin_ [3] |
The QBin definitions in Q_clus/Q_avg. More... | |
int | id_current_ |
current id More... | |
int | index_id_ |
current index More... | |
float | lorxbias_ |
Lorentz x-width. More... | |
float | lorxwidth_ |
Lorentz x-width. More... | |
float | lorybias_ |
Lorentz y-width (sign corrected for fpix frame) More... | |
float | lorywidth_ |
Lorentz y-width (sign corrected for fpix frame) More... | |
const std::vector < SiPixelGenErrorStore > & | thePixelTemp_ |
float | xsize_ |
Pixel x-size. More... | |
float | ysize_ |
Pixel y-size. More... | |
float | zsize_ |
Pixel z-size (thickness) More... | |
A Generic Algorithm info management class. SiPixelGenError contains thePixelTemp (a std::vector of SiPixelGenErrorStore, each of which is a collection of many SiPixelGenErrorEntries). Each SiPixelGenErrorStore 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 SiPixelGenError is qbin(), which produces algorithm info on the fly, given a specific track's alpha and beta.
Definition at line 102 of file SiPixelGenError.h.
|
inline |
Constructor for cases in which template store already exists.
Definition at line 104 of file SiPixelGenError.h.
References id_current_, and index_id_.
|
inline |
|
inline |
signed lorentz x-bias (microns)
Definition at line 126 of file SiPixelGenError.h.
References lorxbias_.
|
inline |
signed lorentz x-width (microns)
Definition at line 124 of file SiPixelGenError.h.
References lorxwidth_.
Referenced by PixelCPEGeneric::localPosition().
|
inline |
signed lorentz y-bias (microns)
Definition at line 125 of file SiPixelGenError.h.
References lorybias_.
|
inline |
signed lorentz y-width (microns)
Definition at line 123 of file SiPixelGenError.h.
References lorywidth_.
Referenced by PixelCPEGeneric::localPosition().
|
static |
Definition at line 395 of file SiPixelGenError.cc.
References citk::for().
|
static |
This routine initializes the global GenError structures from an external file generror_summary_zpNNNN where NNNN are four digits of filenum.
filenum | - an integer NNNN used in the filename generror_summary_zpNNNN |
Definition at line 52 of file SiPixelGenError.cc.
References SiPixelGenErrorHeader::Bfield, EnergyCorrector::c, SiPixelGenErrorEntry::cotalpha, SiPixelGenErrorEntry::cotbeta, SiPixelGenErrorHeader::Dtype, SiPixelGenErrorEntry::dxone, SiPixelGenErrorEntry::dxtwo, SiPixelGenErrorEntry::dyone, SiPixelGenErrorEntry::dytwo, ENDL, SiPixelGenErrorStore::entx, SiPixelGenErrorStore::enty, SiPixelGenErrorHeader::fbin, mergeVDriftHistosByStation::file, SiPixelGenErrorHeader::fluence, SiPixelGenErrorStore::head, i, SiPixelGenErrorHeader::ID, recoMuon::in, create_public_lumi_plots::in_file, j, relval_2017::k, LOGERROR, LOGINFO, SiPixelGenErrorHeader::lorxbias, SiPixelGenErrorHeader::lorxwidth, SiPixelGenErrorHeader::lorybias, SiPixelGenErrorHeader::lorywidth, SiPixelGenErrorHeader::NTxx, SiPixelGenErrorHeader::NTy, SiPixelGenErrorHeader::NTyx, SiPixelGenErrorEntry::pixmax, SiPixelGenErrorEntry::qavg, SiPixelGenErrorEntry::qmin, SiPixelGenErrorEntry::qmin2, SiPixelGenErrorHeader::qscale, SiPixelGenErrorEntry::runnum, SiPixelGenErrorHeader::s50, SiPixelGenErrorHeader::ss50, AlCaHLTBitMon_QueryRunRegistry::string, SiPixelGenErrorEntry::sxone, SiPixelGenErrorEntry::sxtwo, SiPixelGenErrorEntry::syone, SiPixelGenErrorEntry::sytwo, SiPixelGenErrorHeader::temperature, SiPixelGenErrorHeader::templ_version, SiPixelGenErrorHeader::title, SiPixelGenErrorHeader::Vbias, SiPixelGenErrorEntry::xavggen, SiPixelGenErrorEntry::xrmsgen, SiPixelGenErrorHeader::xsize, SiPixelGenErrorEntry::yavggen, SiPixelGenErrorEntry::yrmsgen, SiPixelGenErrorHeader::ysize, and SiPixelGenErrorHeader::zsize.
Referenced by PixelCPEGeneric::PixelCPEGeneric().
|
static |
This routine initializes the global GenError structures from an SiPixelGenErrorDBObject
dbobject | - db storing multiple generic calibrations |
Definition at line 241 of file SiPixelGenError.cc.
References SiPixelGenErrorHeader::Bfield, SiPixelGenErrorDBObject::char2float::c, SiPixelGenErrorEntry::cotalpha, SiPixelGenErrorEntry::cotbeta, EcalCondDB::db, SiPixelGenErrorHeader::Dtype, SiPixelGenErrorEntry::dxone, SiPixelGenErrorEntry::dxtwo, SiPixelGenErrorEntry::dyone, SiPixelGenErrorEntry::dytwo, ENDL, SiPixelGenErrorStore::entx, SiPixelGenErrorStore::enty, SiPixelGenErrorDBObject::char2float::f, SiPixelGenErrorDBObject::fail(), SiPixelGenErrorHeader::fbin, SiPixelGenErrorHeader::fluence, SiPixelGenErrorStore::head, i, SiPixelGenErrorHeader::ID, SiPixelGenErrorDBObject::incrementIndex(), SiPixelGenErrorDBObject::index(), j, relval_2017::k, LOGERROR, LOGINFO, SiPixelGenErrorHeader::lorxbias, SiPixelGenErrorHeader::lorxwidth, SiPixelGenErrorHeader::lorybias, SiPixelGenErrorHeader::lorywidth, visualization-live-secondInstance_cfg::m, SiPixelGenErrorHeader::NTxx, SiPixelGenErrorHeader::NTy, SiPixelGenErrorHeader::NTyx, SiPixelGenErrorDBObject::numOfTempl(), SiPixelGenErrorEntry::pixmax, SiPixelGenErrorEntry::qavg, SiPixelGenErrorEntry::qmin, SiPixelGenErrorEntry::qmin2, SiPixelGenErrorHeader::qscale, SiPixelGenErrorEntry::runnum, SiPixelGenErrorHeader::s50, SiPixelGenErrorHeader::ss50, SiPixelGenErrorDBObject::sVector(), SiPixelGenErrorEntry::sxone, SiPixelGenErrorEntry::sxtwo, SiPixelGenErrorEntry::syone, SiPixelGenErrorEntry::sytwo, groupFilesInBlocks::temp, SiPixelGenErrorHeader::temperature, SiPixelGenErrorHeader::templ_version, SiPixelGenErrorHeader::title, SiPixelGenErrorHeader::Vbias, SiPixelGenErrorEntry::xavggen, SiPixelGenErrorEntry::xrmsgen, SiPixelGenErrorHeader::xsize, SiPixelGenErrorEntry::yavggen, SiPixelGenErrorEntry::yrmsgen, SiPixelGenErrorHeader::ysize, and SiPixelGenErrorHeader::zsize.
int SiPixelGenError::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 | ||
) |
Definition at line 463 of file SiPixelGenError.cc.
References funct::abs(), assert(), Exception, f, i, cmsHarvester::index, j, and mathSSE::sqrt().
Referenced by PixelCPEGeneric::localPosition().
int SiPixelGenError::qbin | ( | int | id | ) |
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 GenError 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 |
Definition at line 432 of file SiPixelGenError.cc.
References i.
|
inline |
|
inline |
|
inline |
pixel z-size or thickness (microns)
Definition at line 137 of file SiPixelGenError.h.
References zsize_.
|
private |
The QBin definitions in Q_clus/Q_avg.
Definition at line 153 of file SiPixelGenError.h.
Referenced by fbin().
|
private |
|
private |
|
private |
|
private |
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 152 of file SiPixelGenError.h.
Referenced by lorybias().
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 150 of file SiPixelGenError.h.
Referenced by lorywidth().
|
private |
Definition at line 161 of file SiPixelGenError.h.
|
private |
|
private |
|
private |