#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 113 of file SiPixelGenError.h.
|
inline |
Constructor for cases in which template store already exists.
Definition at line 115 of file SiPixelGenError.h.
|
inline |
Return lower bound of Qbin definition.
Definition at line 191 of file SiPixelGenError.h.
References cms::cuda::assert(), Exception, fbin_, and mps_fire::i.
|
inline |
signed lorentz x-bias (microns)
Definition at line 189 of file SiPixelGenError.h.
References lorxbias_.
|
inline |
signed lorentz x-width (microns)
Definition at line 187 of file SiPixelGenError.h.
References lorxwidth_.
Referenced by SiPixelGenErrorDBObjectReader::analyze(), and PixelCPEGeneric::localPosition().
|
inline |
signed lorentz y-bias (microns)
Definition at line 188 of file SiPixelGenError.h.
References lorybias_.
|
inline |
signed lorentz y-width (microns)
Definition at line 186 of file SiPixelGenError.h.
References lorywidth_.
Referenced by SiPixelGenErrorDBObjectReader::analyze(), and PixelCPEGeneric::localPosition().
|
static |
Definition at line 473 of file SiPixelGenError.cc.
References cms::cuda::for(), ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::ix(), and ALPAKA_ACCELERATOR_NAMESPACE::ecal::reconstruction::internal::endcap::iy().
|
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 55 of file SiPixelGenError.cc.
References SiPixelGenErrorHeader::Bfield, DummyCfis::c, SiPixelGenErrorEntry::cotalpha, SiPixelGenErrorStore::cotalphaX, SiPixelGenErrorEntry::cotbeta, SiPixelGenErrorStore::cotbetaX, SiPixelGenErrorStore::cotbetaY, DeadROC_duringRun::dir, SiPixelGenErrorHeader::Dtype, SiPixelGenErrorEntry::dxone, SiPixelGenErrorEntry::dxtwo, SiPixelGenErrorEntry::dyone, SiPixelGenErrorEntry::dytwo, ENDL, SiPixelGenErrorStore::entx, SiPixelGenErrorStore::enty, SiPixelGenErrorHeader::fbin, geometryDiff::file, SiPixelGenErrorHeader::fluence, SiPixelGenErrorStore::head, mps_fire::i, SiPixelGenErrorHeader::ID, recoMuon::in, runGCPTkAlMap::in_file, dqmiolumiharvest::j, isotrackApplyRegressor::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 SiPixelGenErrorDBObjectReader::analyze(), PixelCPEFast< TrackerTraits >::PixelCPEFast(), PixelCPEFastParamsHost< TrackerTraits >::PixelCPEFastParamsHost(), and 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 289 of file SiPixelGenError.cc.
References EcalCondDB::db, ENDL, mps_fire::i, dqmiolumiharvest::j, isotrackApplyRegressor::k, LOGERROR, LOGINFO, visualization-live-secondInstance_cfg::m, 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 538 of file SiPixelGenError.cc.
References funct::abs(), cms::cuda::assert(), gather_cfg::cout, Exception, f, mps_fire::i, EcalPhiSymFlatTableProducers_cfi::id, createfilelist::int, dqmiolumiharvest::j, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, PixelTestBeamValidation_cfi::Ny, and mathSSE::sqrt().
Referenced by PixelCPEFast< TrackerTraits >::errorFromTemplates(), PixelCPEFastParamsHost< TrackerTraits >::errorFromTemplates(), 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 873 of file SiPixelGenError.cc.
References ALCARECOEcalPhiSym_cff::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 508 of file SiPixelGenError.cc.
References mps_fire::i, EcalPhiSymFlatTableProducers_cfi::id, and createfilelist::int.
|
inline |
|
inline |
|
inline |
pixel z-size or thickness (microns)
Definition at line 204 of file SiPixelGenError.h.
References zsize_.
|
private |
The QBin definitions in Q_clus/Q_avg.
Definition at line 218 of file SiPixelGenError.h.
Referenced by fbin().
|
private |
current id
Definition at line 209 of file SiPixelGenError.h.
|
private |
current index
Definition at line 210 of file SiPixelGenError.h.
|
private |
|
private |
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 217 of file SiPixelGenError.h.
Referenced by lorybias().
|
private |
Lorentz y-width (sign corrected for fpix frame)
Definition at line 215 of file SiPixelGenError.h.
Referenced by lorywidth().
|
private |
Definition at line 225 of file SiPixelGenError.h.
|
private |
|
private |
|
private |