#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 locBx, float qclus, bool irradiationCorrections, int &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 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) |
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 > &pixelTemp, std::string dir="") |
static bool | pushfile (const SiPixelGenErrorDBObject &dbobject, std::vector< SiPixelGenErrorStore > &pixelTemp) |
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 117 of file SiPixelGenError.h.
|
inline |
Constructor for cases in which template store already exists.
Definition at line 119 of file SiPixelGenError.h.
References SiPixelGenErrorEntry::cotalpha, SiPixelGenErrorEntry::cotbeta, dir, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Return lower bound of Qbin definition.
Definition at line 150 of file SiPixelGenError.h.
References Exception, and mps_fire::i.
|
inline |
signed lorentz x-bias (microns)
Definition at line 148 of file SiPixelGenError.h.
|
inline |
signed lorentz x-width (microns)
Definition at line 146 of file SiPixelGenError.h.
Referenced by PixelCPEGeneric::localPosition().
|
inline |
signed lorentz y-bias (microns)
Definition at line 147 of file SiPixelGenError.h.
|
inline |
signed lorentz y-width (microns)
Definition at line 145 of file SiPixelGenError.h.
Referenced by PixelCPEGeneric::localPosition().
|
static |
Definition at line 412 of file SiPixelGenError.cc.
|
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 57 of file SiPixelGenError.cc.
References SiPixelGenErrorHeader::Bfield, EnergyCorrector::c, SiPixelGenErrorEntry::cotalpha, SiPixelGenErrorStore::cotalphaX, SiPixelGenErrorEntry::cotbeta, SiPixelGenErrorStore::cotbetaX, SiPixelGenErrorStore::cotbetaY, SiPixelGenErrorHeader::Dtype, SiPixelGenErrorEntry::dxone, SiPixelGenErrorEntry::dxtwo, SiPixelGenErrorEntry::dyone, SiPixelGenErrorEntry::dytwo, ENDL, SiPixelGenErrorStore::entx, SiPixelGenErrorStore::enty, SiPixelGenErrorHeader::fbin, FrontierConditions_GlobalTag_cff::file, SiPixelGenErrorHeader::fluence, SiPixelGenErrorStore::head, mps_fire::i, SiPixelGenErrorHeader::ID, recoMuon::in, runGCPTkAlMap::in_file, gen::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 |
SiPixelGenErrorStore theCurrentTemp; // not on the stack...
Definition at line 251 of file SiPixelGenError.cc.
References SiPixelGenErrorDBObject::char2float::c, ENDL, SiPixelGenErrorDBObject::char2float::f, SiPixelGenErrorDBObject::fail(), mps_fire::i, SiPixelGenErrorDBObject::incrementIndex(), SiPixelGenErrorDBObject::index(), gen::k, LOGERROR, LOGINFO, funct::m, SiPixelGenErrorDBObject::numOfTempl(), SiPixelGenErrorDBObject::sVector(), and groupFilesInBlocks::temp.
int SiPixelGenError::qbin | ( | int | id, |
float | cotalpha, | ||
float | cotbeta, | ||
float | locBz, | ||
float | locBx, | ||
float | qclus, | ||
bool | irradiationCorrections, | ||
int & | 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 480 of file SiPixelGenError.cc.
References funct::abs(), gather_cfg::cout, Exception, f, mps_fire::i, triggerObjects_cff::id, createfilelist::int, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and mathSSE::sqrt().
Referenced by PixelCPEGeneric::localPosition(), and qbin().
int SiPixelGenError::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 | ||
) |
Definition at line 763 of file SiPixelGenError.cc.
References objects.autophobj::float, and qbin().
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 449 of file SiPixelGenError.cc.
References mps_fire::i, triggerObjects_cff::id, and createfilelist::int.
|
inline |
pixel x-size (microns)
Definition at line 157 of file SiPixelGenError.h.
|
inline |
pixel y-size (microns)
Definition at line 158 of file SiPixelGenError.h.
|
inline |
pixel z-size or thickness (microns)
Definition at line 159 of file SiPixelGenError.h.
|
private |
The QBin definitions in Q_clus/Q_avg.
Definition at line 175 of file SiPixelGenError.h.
|
private |
current id
Definition at line 165 of file SiPixelGenError.h.
|
private |
current index
Definition at line 166 of file SiPixelGenError.h.
|
private |
Lorentz x-width.
Definition at line 173 of file SiPixelGenError.h.
|
private |
Lorentz x-width.
Definition at line 171 of file SiPixelGenError.h.
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 174 of file SiPixelGenError.h.
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 172 of file SiPixelGenError.h.
|
private |
Definition at line 183 of file SiPixelGenError.h.
|
private |
Pixel x-size.
Definition at line 176 of file SiPixelGenError.h.
|
private |
Pixel y-size.
Definition at line 177 of file SiPixelGenError.h.
|
private |
Pixel z-size (thickness)
Definition at line 178 of file SiPixelGenError.h.