#include <PixelCPEFast.h>
Classes | |
struct | GPUData |
Static Public Member Functions | |
static void | fillPSetDescription (edm::ParameterSetDescription &desc) |
Static Public Member Functions inherited from PixelCPEGenericBase | |
static void | fillPSetDescription (edm::ParameterSetDescription &desc) |
Static Public Member Functions inherited from PixelCPEBase | |
static void | fillPSetDescription (edm::ParameterSetDescription &desc) |
Private Member Functions | |
void | errorFromTemplates (DetParam const &theDetParam, ClusterParamGeneric &theClusterParam, float qclus) const |
void | fillParamsForGpu () |
LocalError | localError (DetParam const &theDetParam, ClusterParam &theClusterParam) const override |
LocalPoint | localPosition (DetParam const &theDetParam, ClusterParam &theClusterParam) const override |
Additional Inherited Members | |
Public Types inherited from PixelClusterParameterEstimator | |
typedef std::pair< LocalPoint, LocalError > | LocalValues |
using | ReturnType = std::tuple< LocalPoint, LocalError, SiPixelRecHitQuality::QualWordType > |
typedef std::vector< LocalValues > | VLocalValues |
Protected Types inherited from PixelCPEBase | |
using | DetParams = std::vector< DetParam > |
typedef GloballyPositioned < double > | Frame |
Protected Member Functions inherited from PixelCPEGenericBase | |
std::unique_ptr< ClusterParam > | createClusterParam (const SiPixelCluster &cl) const override |
void | initializeLocalErrorVariables (float &xerr, float &yerr, bool &edgex, bool &edgey, bool &bigInX, bool &bigInY, int &maxPixelCol, int &maxPixelRow, int &minPixelCol, int &minPixelRow, uint &sizex, uint &sizey, DetParam const &theDetParam, ClusterParamGeneric const &theClusterParam) const |
void | setXYErrors (float &xerr, float &yerr, const bool edgex, const bool edgey, const unsigned int sizex, const unsigned int sizey, const bool bigInX, const bool bigInY, const bool useTemplateErrors, DetParam const &theDetParam, ClusterParamGeneric const &theClusterParam) const |
Protected Member Functions inherited from PixelCPEBase | |
void | computeAnglesFromDetPosition (DetParam const &theDetParam, ClusterParam &theClusterParam) const |
void | computeAnglesFromTrajectory (DetParam const &theDetParam, ClusterParam &theClusterParam, const LocalTrajectoryParameters <p) const |
void | computeLorentzShifts (DetParam &) const |
DetParam const & | detParam (const GeomDetUnit &det) const |
LocalVector | driftDirection (DetParam &theDetParam, GlobalVector bfield) const |
LocalVector | driftDirection (DetParam &theDetParam, LocalVector bfield) const |
void | setTheClu (DetParam const &, ClusterParam &theClusterParam) const |
Static Protected Member Functions inherited from PixelCPEGenericBase | |
static void | collect_edge_charges (ClusterParam &theClusterParam, int &q_f_X, int &q_l_X, int &q_f_Y, int &q_l_Y, bool truncate) |
Protected Attributes inherited from PixelCPEGenericBase | |
const float | edgeClusterErrorX_ |
const float | edgeClusterErrorY_ |
const bool | truncatePixelCharge_ |
bool | useErrorsFromTemplates_ |
const std::vector< float > | xerr_barrel_l1_ |
const float | xerr_barrel_l1_def_ |
const std::vector< float > | xerr_barrel_ln_ |
const float | xerr_barrel_ln_def_ |
const std::vector< float > | xerr_endcap_ |
const float | xerr_endcap_def_ |
const std::vector< float > | yerr_barrel_l1_ |
const float | yerr_barrel_l1_def_ |
const std::vector< float > | yerr_barrel_ln_ |
const float | yerr_barrel_ln_def_ |
const std::vector< float > | yerr_endcap_ |
const float | yerr_endcap_def_ |
Protected Attributes inherited from PixelCPEBase | |
bool | alpha2Order |
bool | doLorentzFromAlignment_ |
const SiPixelGenErrorDBObject * | genErrorDBObject_ |
const TrackerGeometry & | geom_ |
float | lAOffset_ |
float | lAWidthBPix_ |
float | lAWidthFPix_ |
bool | LoadTemplatesFromDB_ |
const SiPixelLorentzAngle * | lorentzAngle_ |
const SiPixelLorentzAngle * | lorentzAngleWidth_ |
DetParams | m_DetParams = DetParams(1440) |
const MagneticField * | magfield_ |
const SiPixelTemplateDBObject * | templateDBobject_ |
int | theFlag_ |
int | theVerboseLevel |
const TrackerTopology & | ttopo_ |
bool | useLAFromDB_ |
bool | useLAOffsetFromConfig_ |
bool | useLAWidthFromConfig_ |
bool | useLAWidthFromDB_ |
Protected Attributes inherited from PixelClusterParameterEstimator | |
unsigned int | clusterProbComputationFlag_ |
Static Protected Attributes inherited from PixelCPEBase | |
static constexpr float | bothEdgeXError_ = 31.0f |
static constexpr float | bothEdgeYError_ = 90.0f |
static constexpr float | clusterSplitMaxError_ = 7777.7f |
static constexpr float | xEdgeXError_ = 23.0f |
static constexpr float | xEdgeYError_ = 39.0f |
static constexpr float | yEdgeXError_ = 24.0f |
static constexpr float | yEdgeYError_ = 96.0f |
Definition at line 14 of file PixelCPEFast.h.
PixelCPEFast::PixelCPEFast | ( | edm::ParameterSet const & | conf, |
const MagneticField * | mag, | ||
const TrackerGeometry & | geom, | ||
const TrackerTopology & | ttopo, | ||
const SiPixelLorentzAngle * | lorentzAngle, | ||
const SiPixelGenErrorDBObject * | genErrorDBObject, | ||
const SiPixelLorentzAngle * | lorentzAngleWidth | ||
) |
The constructor.
Definition at line 23 of file PixelCPEFast.cc.
References averageGeometry_, commonParamsGPU_, cpuData_, detParamsGPU_, Exception, fillParamsForGpu(), PixelCPEBase::genErrorDBObject_, layerGeometry_, SiPixelGenError::pushfile(), thePixelGenError_, and PixelCPEGenericBase::useErrorsFromTemplates_.
|
overridedefault |
|
private |
Definition at line 356 of file PixelCPEFast.cc.
References PixelCPEBase::DetParam::bx, PixelCPEBase::DetParam::bz, PixelCPEBase::ClusterParam::cotalpha, PixelCPEBase::ClusterParam::cotbeta, PixelCPEBase::DetParam::detTemplateId, LogDebug, SiStripPI::max, PixelCPEGenericBase::ClusterParamGeneric::pixmx, SiPixelGenError::qbin(), PixelCPEBase::ClusterParam::qBin_, PixelCPEGenericBase::ClusterParamGeneric::sigmax, PixelCPEGenericBase::ClusterParamGeneric::sigmay, PixelCPEGenericBase::ClusterParamGeneric::sx1, PixelCPEGenericBase::ClusterParamGeneric::sx2, PixelCPEGenericBase::ClusterParamGeneric::sy1, PixelCPEGenericBase::ClusterParamGeneric::sy2, and thePixelGenError_.
Referenced by fillParamsForGpu(), and localPosition().
|
private |
Definition at line 85 of file PixelCPEFast.cc.
References funct::abs(), cms::cuda::assert(), averageGeometry_, commonParamsGPU_, PixelCPEBase::ClusterParam::cotalpha, PixelCPEBase::ClusterParam::cotbeta, CommonMethods::cp(), detParamsGPU_, errorFromTemplates(), validate-o2o-wbm::f, g, mps_fire::i, GeomDetEnumerators::isBarrel(), isotrackApplyRegressor::k, CPEFastParametrisation::kGenErrorQBins, GetRecoTauVFromDQM_MC_cff::kk, CPEFastParametrisation::kNumErrorBins, PVValHelper::ladder, pixelCPEforGPU::LayerGeometry::layer, phase1PixelTopology::layer, TrackerTopology::layer(), layerGeometry_, phase1PixelTopology::layerStart, pixelCPEforGPU::LayerGeometry::layerStart, LogDebug, visualization-live-secondInstance_cfg::m, PixelCPEBase::m_DetParams, SiStripPI::max, min(), phase1PixelTopology::numberOfLaddersInBarrel, phase1PixelTopology::numberOfModulesInBarrel, AlCaHLTBitMon_ParallelJobs::p, PixelCPEGenericBase::ClusterParamGeneric::pixmx, TrackerTopology::pxbLadder(), PixelCPEBase::ClusterParam::qBin_, findQualityFiles::rr, PixelCPEGenericBase::ClusterParamGeneric::sigmax, PixelCPEGenericBase::ClusterParamGeneric::sigmay, mathSSE::sqrt(), PixelCPEGenericBase::ClusterParamGeneric::sx1, PixelCPEGenericBase::ClusterParamGeneric::sx2, PixelCPEGenericBase::ClusterParamGeneric::sy1, PixelCPEGenericBase::ClusterParamGeneric::sy2, pixelCPEforGPU::CommonParams::thePitchX, pixelCPEforGPU::CommonParams::thePitchY, pixelCPEforGPU::CommonParams::theThicknessB, pixelCPEforGPU::CommonParams::theThicknessE, TrackerMaterial_cfi::thickness, PixelCPEBase::ttopo_, PixelCPEBase::ClusterParam::with_track_angle, x, phase1PixelTopology::xOffset, y, phase1PixelTopology::yOffset, z, and SOAFrame< T >::z().
Referenced by PixelCPEFast().
|
static |
Definition at line 481 of file PixelCPEFast.cc.
References PixelCPEGenericBase::fillPSetDescription().
Referenced by PixelCPEFastESProducer::fillDescriptions().
|
inline |
const pixelCPEforGPU::ParamsOnGPU * PixelCPEFast::getGPUProductAsync | ( | cudaStream_t | cudaStream | ) | const |
Definition at line 49 of file PixelCPEFast.cc.
References cudaCheck, data, detParamsGPU_, gpuData_, pixelCPEforGPU::ParamsOnGPU::m_averageGeometry, pixelCPEforGPU::ParamsOnGPU::m_commonParams, pixelCPEforGPU::ParamsOnGPU::m_detParams, pixelCPEforGPU::ParamsOnGPU::m_layerGeometry, PixelCPEFast::GPUData::paramsOnGPU_d, PixelCPEFast::GPUData::paramsOnGPU_h, and cms::cuda::stream.
|
overrideprivatevirtual |
Implements PixelCPEBase.
Definition at line 467 of file PixelCPEFast.cc.
References LogDebug, PixelCPEGenericBase::ClusterParamGeneric::sigmax, and PixelCPEGenericBase::ClusterParamGeneric::sigmay.
|
overrideprivatevirtual |
Hit position in the local frame (in cm). Unlike other CPE's, this one converts everything from the measurement frame (in channel numbers) into the local frame (in centimeters).
< Q of the first pixel in X
< Q of the last pixel in X
< Q of the first pixel in Y
< Q of the last pixel in Y
Implements PixelCPEBase.
Definition at line 412 of file PixelCPEFast.cc.
References cms::cuda::assert(), pixelCPEforGPU::ClusParamsT< N >::charge, SiPixelCluster::charge(), PixelCPEGenericBase::collect_edge_charges(), commonParamsGPU_, CommonMethods::cp(), detParamsGPU_, pixelCPEforGPU::errorFromDB(), errorFromTemplates(), GeomDet::index(), LogDebug, pixelCPEforGPU::ClusParamsT< N >::maxCol, SiPixelCluster::maxPixelCol(), SiPixelCluster::maxPixelRow(), pixelCPEforGPU::ClusParamsT< N >::maxRow, pixelCPEforGPU::ClusParamsT< N >::minCol, SiPixelCluster::minPixelCol(), SiPixelCluster::minPixelRow(), pixelCPEforGPU::ClusParamsT< N >::minRow, pixelCPEforGPU::position(), pixelCPEforGPU::ClusParamsT< N >::q_f_X, pixelCPEforGPU::ClusParamsT< N >::q_f_Y, pixelCPEforGPU::ClusParamsT< N >::q_l_X, pixelCPEforGPU::ClusParamsT< N >::q_l_Y, PixelCPEBase::ClusterParam::qBin_, PixelCPEGenericBase::ClusterParamGeneric::sigmax, PixelCPEGenericBase::ClusterParamGeneric::sigmay, PixelCPEBase::ClusterParam::theCluster, PixelCPEBase::DetParam::theDet, PixelCPEGenericBase::truncatePixelCharge_, PixelCPEGenericBase::useErrorsFromTemplates_, PixelCPEBase::ClusterParam::with_track_angle, pixelCPEforGPU::ClusParamsT< N >::xerr, pixelCPEforGPU::ClusParamsT< N >::xpos, pixelCPEforGPU::ClusParamsT< N >::yerr, and pixelCPEforGPU::ClusParamsT< N >::ypos.
|
private |
Definition at line 47 of file PixelCPEFast.h.
Referenced by fillParamsForGpu(), and PixelCPEFast().
|
private |
Definition at line 45 of file PixelCPEFast.h.
Referenced by fillParamsForGpu(), localPosition(), and PixelCPEFast().
|
private |
Definition at line 48 of file PixelCPEFast.h.
Referenced by getCPUProduct(), and PixelCPEFast().
|
private |
Definition at line 44 of file PixelCPEFast.h.
Referenced by fillParamsForGpu(), getGPUProductAsync(), localPosition(), and PixelCPEFast().
|
private |
Definition at line 56 of file PixelCPEFast.h.
Referenced by getGPUProductAsync().
|
private |
Definition at line 46 of file PixelCPEFast.h.
Referenced by fillParamsForGpu(), and PixelCPEFast().
|
private |
Definition at line 41 of file PixelCPEFast.h.
Referenced by errorFromTemplates(), and PixelCPEFast().