#include <PixelCPEGeneric.h>
Classes | |
struct | ClusterParamGeneric |
Private Member Functions | |
void | collect_edge_charges (ClusterParam &theClusterParam, float &Q_f_X, float &Q_l_X, float &Q_f_Y, float &Q_l_Y) const |
ClusterParam * | createClusterParam (const SiPixelCluster &cl) const |
float | err2X (bool &, int &) const |
float | err2Y (bool &, int &) const |
float | generic_position_formula (int size, float Q_f, float Q_l, float upper_edge_first_pix, float lower_edge_last_pix, float lorentz_shift, float theThickness, float cot_angle, float pitch, bool first_is_big, bool last_is_big, float eff_charge_cut_low, float eff_charge_cut_high, float size_cut) const |
LocalError | localError (DetParam const &theDetParam, ClusterParam &theClusterParam) const |
LocalPoint | localPosition (DetParam const &theDetParam, ClusterParam &theClusterParam) const |
Private Attributes | |
bool | DoCosmics_ |
float | EdgeClusterErrorX_ |
float | EdgeClusterErrorY_ |
bool | inflate_all_errors_no_trk_angle |
bool | inflate_errors |
bool | IrradiationBiasCorrection_ |
bool | isUpgrade_ |
float | the_eff_charge_cut_highX |
float | the_eff_charge_cut_highY |
float | the_eff_charge_cut_lowX |
float | the_eff_charge_cut_lowY |
float | the_size_cutX |
float | the_size_cutY |
std::vector< SiPixelGenErrorStore > | thePixelGenError_ |
bool | TruncatePixelCharge_ |
bool | UseErrorsFromTemplates_ |
std::vector< float > | xerr_barrel_l1_ |
float | xerr_barrel_l1_def_ |
std::vector< float > | xerr_barrel_ln_ |
float | xerr_barrel_ln_def_ |
std::vector< float > | xerr_endcap_ |
float | xerr_endcap_def_ |
std::vector< float > | yerr_barrel_l1_ |
float | yerr_barrel_l1_def_ |
std::vector< float > | yerr_barrel_ln_ |
float | yerr_barrel_ln_def_ |
std::vector< float > | yerr_endcap_ |
float | yerr_endcap_def_ |
Definition at line 56 of file PixelCPEGeneric.h.
PixelCPEGeneric::PixelCPEGeneric | ( | edm::ParameterSet const & | conf, |
const MagneticField * | mag, | ||
const TrackerGeometry & | geom, | ||
const TrackerTopology & | ttopo, | ||
const SiPixelLorentzAngle * | lorentzAngle, | ||
const SiPixelGenErrorDBObject * | genErrorDBObject, | ||
const SiPixelLorentzAngle * | lorentzAngleWidth = 0 |
||
) |
The constructor.
Definition at line 31 of file PixelCPEGeneric.cc.
References gather_cfg::cout, DoCosmics_, EdgeClusterErrorX_, EdgeClusterErrorY_, Exception, edm::ParameterSet::exists(), PixelCPEBase::genErrorDBObject_, edm::ParameterSet::getParameter(), inflate_all_errors_no_trk_angle, inflate_errors, IrradiationBiasCorrection_, isUpgrade_, PixelCPEBase::LoadTemplatesFromDB_, LogDebug, PixelCPEBase::PixelCPEBase(), SiPixelGenError::pushfile(), SiPixelTemplate::pushfile(), PixelCPEBase::templateDBobject_, the_eff_charge_cut_highX, the_eff_charge_cut_highY, the_eff_charge_cut_lowX, the_eff_charge_cut_lowY, the_size_cutX, the_size_cutY, thePixelGenError_, PixelCPEBase::theVerboseLevel, TruncatePixelCharge_, UseErrorsFromTemplates_, xerr_barrel_l1_, xerr_barrel_l1_def_, xerr_barrel_ln_, xerr_barrel_ln_def_, xerr_endcap_, xerr_endcap_def_, yerr_barrel_l1_, yerr_barrel_l1_def_, yerr_barrel_ln_, yerr_barrel_ln_def_, yerr_endcap_, and yerr_endcap_def_.
|
inline |
Definition at line 95 of file PixelCPEGeneric.h.
|
private |
Collect the edge charges in x and y, in a single pass over the pixel vector. Calculate charge in the first and last pixel projected in x and y and the inner cluster charge, projected in x and y.
theClusterParamBase | input, the cluster |
Q_f_X | output, Q first in X |
Q_l_X | output, Q last in X |
Q_f_Y | output, Q first in Y |
Q_l_Y | output, Q last in Y |
Definition at line 575 of file PixelCPEGeneric.cc.
References SiPixelCluster::Pixel::adc, i, SiPixelCluster::maxPixelCol(), SiPixelCluster::maxPixelRow(), min(), SiPixelCluster::minPixelCol(), SiPixelCluster::minPixelRow(), SiPixelCluster::pixel(), PixelCPEGeneric::ClusterParamGeneric::pixmx, SiPixelCluster::size(), PixelCPEBase::ClusterParam::theCluster, TruncatePixelCharge_, UseErrorsFromTemplates_, hlt_dqm_clientPB-live_cfg::xmax, hlt_dqm_clientPB-live_cfg::xmin, SiStripMonitorClusterAlca_cfi::ymax, and SiStripMonitorClusterAlca_cfi::ymin.
Referenced by localPosition().
|
privatevirtual |
Implements PixelCPEBase.
Definition at line 185 of file PixelCPEGeneric.cc.
|
private |
|
private |
|
private |
A generic version of the position formula. Since it works for both X and Y, in the interest of the simplicity of the code, all parameters are passed by the caller. The only class variable used by this method is the theThickness, since that's common for both X and Y.
size | Size of this projection. |
Q_f | Charge in the first pixel. |
Q_l | Charge in the last pixel. |
upper_edge_first_pix | As the name says. |
lower_edge_last_pix | As the name says. |
lorentz_shift | L-width |
cot_angle | cot of alpha_ or beta_ |
pitch | thePitchX or thePitchY |
first_is_big | true if the first is big |
last_is_big | true if the last is big |
eff_charge_cut_low | Use edge if > W_eff (in pix) &&& |
eff_charge_cut_high | Use edge if < W_eff (in pix) &&& |
size_cut | Use edge when size == cuts |
Definition at line 450 of file PixelCPEGeneric.cc.
References funct::abs().
Referenced by localPosition().
|
privatevirtual |
Implements PixelCPEBase.
Definition at line 626 of file PixelCPEGeneric.cc.
References RectangularPixelTopology::containsBigPixelInX(), RectangularPixelTopology::containsBigPixelInY(), gather_cfg::cout, EdgeClusterErrorX_, EdgeClusterErrorY_, Exception, f, GeomDet::geographicalId(), inflate_errors, GeomDetEnumerators::isBarrel(), RectangularPixelTopology::isItBigPixelInX(), RectangularPixelTopology::isItBigPixelInY(), RectangularPixelTopology::isItEdgePixelInX(), RectangularPixelTopology::isItEdgePixelInY(), GeomDetEnumerators::isTrackerPixel(), TrackerTopology::layer(), likely, SiPixelCluster::maxPixelCol(), SiPixelCluster::maxPixelRow(), SiPixelCluster::minPixelCol(), SiPixelCluster::minPixelRow(), PixelCPEBase::ClusterParam::qBin_, PixelCPEGeneric::ClusterParamGeneric::sigmax, PixelCPEGeneric::ClusterParamGeneric::sigmay, SiPixelCluster::sizeX(), SiPixelCluster::sizeY(), mathSSE::sqrt(), PixelCPEGeneric::ClusterParamGeneric::sx1, PixelCPEGeneric::ClusterParamGeneric::sx2, PixelCPEGeneric::ClusterParamGeneric::sy1, PixelCPEGeneric::ClusterParamGeneric::sy2, PixelCPEBase::ClusterParam::theCluster, PixelCPEBase::DetParam::theDet, PixelCPEBase::DetParam::thePart, PixelCPEBase::DetParam::thePitchX, PixelCPEBase::DetParam::thePitchY, PixelCPEBase::DetParam::theRecTopol, PixelCPEBase::ttopo_, UseErrorsFromTemplates_, xerr_barrel_l1_, xerr_barrel_l1_def_, xerr_barrel_ln_, xerr_barrel_ln_def_, xerr_endcap_, xerr_endcap_def_, yerr_barrel_l1_, yerr_barrel_l1_def_, yerr_barrel_ln_, yerr_barrel_ln_def_, yerr_endcap_, and yerr_endcap_def_.
|
privatevirtual |
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 198 of file PixelCPEGeneric.cc.
References PixelCPEBase::DetParam::bz, SiPixelCluster::charge(), collect_edge_charges(), PixelCPEBase::ClusterParam::cotalpha, PixelCPEBase::ClusterParam::cotbeta, gather_cfg::cout, PixelCPEGeneric::ClusterParamGeneric::deltax, PixelCPEGeneric::ClusterParamGeneric::deltay, PixelCPEBase::DetParam::detTemplateId, PixelCPEGeneric::ClusterParamGeneric::dx1, PixelCPEGeneric::ClusterParamGeneric::dx2, PixelCPEGeneric::ClusterParamGeneric::dy1, PixelCPEGeneric::ClusterParamGeneric::dy2, generic_position_formula(), IrradiationBiasCorrection_, RectangularPixelTopology::isItBigPixelInX(), RectangularPixelTopology::isItBigPixelInY(), PixelCPEBase::ClusterParam::loc_trk_pred, Topology::localPosition(), PixelCPEBase::DetParam::lorentzShiftInCmX, PixelCPEBase::DetParam::lorentzShiftInCmY, SiPixelGenError::lorxwidth(), SiPixelGenError::lorywidth(), SiPixelCluster::maxPixelCol(), SiPixelCluster::maxPixelRow(), SiPixelCluster::minPixelCol(), SiPixelCluster::minPixelRow(), PixelCPEGeneric::ClusterParamGeneric::pixmx, SiPixelGenError::qbin(), SiPixelTemplate::qbin(), PixelCPEBase::ClusterParam::qBin_, PixelCPEGeneric::ClusterParamGeneric::sigmax, PixelCPEGeneric::ClusterParamGeneric::sigmay, SiPixelCluster::sizeX(), SiPixelCluster::sizeY(), PixelCPEGeneric::ClusterParamGeneric::sx1, PixelCPEGeneric::ClusterParamGeneric::sx2, PixelCPEGeneric::ClusterParamGeneric::sy1, PixelCPEGeneric::ClusterParamGeneric::sy2, the_eff_charge_cut_highX, the_eff_charge_cut_highY, the_eff_charge_cut_lowX, the_eff_charge_cut_lowY, the_size_cutX, the_size_cutY, PixelCPEBase::ClusterParam::theCluster, PixelCPEBase::DetParam::thePitchX, PixelCPEBase::DetParam::thePitchY, thePixelGenError_, PixelCPEBase::DetParam::theRecTopol, PixelCPEBase::DetParam::theThickness, PixelCPEBase::DetParam::theTopol, PixelCPEBase::theVerboseLevel, UseErrorsFromTemplates_, PixelCPEBase::DetParam::widthLAFractionX, PixelCPEBase::DetParam::widthLAFractionY, PixelCPEBase::ClusterParam::with_track_angle, PV3DBase< T, PVType, FrameType >::x(), SiPixelCluster::x(), PV3DBase< T, PVType, FrameType >::y(), and SiPixelCluster::y().
|
private |
Definition at line 150 of file PixelCPEGeneric.h.
Referenced by PixelCPEGeneric().
|
private |
Definition at line 156 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 157 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 147 of file PixelCPEGeneric.h.
Referenced by PixelCPEGeneric().
|
private |
Definition at line 146 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 153 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 154 of file PixelCPEGeneric.h.
Referenced by PixelCPEGeneric().
|
private |
Definition at line 141 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 142 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 139 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 140 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 143 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 144 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 165 of file PixelCPEGeneric.h.
Referenced by localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 152 of file PixelCPEGeneric.h.
Referenced by collect_edge_charges(), and PixelCPEGeneric().
|
private |
Definition at line 149 of file PixelCPEGeneric.h.
Referenced by collect_edge_charges(), localError(), localPosition(), and PixelCPEGeneric().
|
private |
Definition at line 159 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 161 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 159 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 161 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 160 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 162 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 159 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 161 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 160 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 162 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 160 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().
|
private |
Definition at line 162 of file PixelCPEGeneric.h.
Referenced by localError(), and PixelCPEGeneric().