Pixel cluster – collection of neighboring pixels above threshold. More...
#include <SiPixelCluster.h>
Classes | |
class | Pixel |
class | PixelPos |
class | Shift |
Public Types | |
typedef std::vector< PixelDigi >::const_iterator | PixelDigiIter |
typedef std::pair< PixelDigiIter, PixelDigiIter > | PixelDigiRange |
Public Member Functions | |
void | add (const PixelPos &pix, int adc) |
int | charge () const |
int | colSpan () const |
float | getSplitClusterErrorX () const |
float | getSplitClusterErrorY () const |
int | maxPixelCol () const |
int | maxPixelRow () const |
int | minPixelCol () const |
int | minPixelRow () const |
SiPixelCluster & | operator= (SiPixelCluster const &)=default |
SiPixelCluster & | operator= (SiPixelCluster &&)=default |
auto | originalId () const |
bool | overflow () const |
bool | overflowCol () const |
bool | overflowRow () const |
void | packCol (uint16_t ymin, uint16_t yspan) |
void | packRow (uint16_t xmin, uint16_t xspan) |
Pixel | pixel (int i) const |
const std::vector< uint16_t > & | pixelADC () const |
const std::vector< uint8_t > & | pixelOffset () const |
const std::vector< Pixel > | pixels () const |
int | rowSpan () const |
void | setOriginalId (uint16_t id) |
void | setSplitClusterErrorX (float errx) |
void | setSplitClusterErrorY (float erry) |
SiPixelCluster ()=default | |
SiPixelCluster (SiPixelCluster const &)=default | |
SiPixelCluster (SiPixelCluster &&)=default | |
SiPixelCluster (unsigned int isize, uint16_t const *adcs, uint16_t const *xpos, uint16_t const *ypos, uint16_t xmin, uint16_t ymin, uint16_t id=invalidClusterId) | |
SiPixelCluster (const PixelPos &pix, int adc) | |
int | size () const |
int | sizeX () const |
int | sizeY () const |
float | x () const |
float | y () const |
~SiPixelCluster ()=default | |
Static Public Attributes | |
static constexpr uint16_t | invalidClusterId = std::numeric_limits<uint16_t>::max() |
static constexpr unsigned int | MAXPOS = 2047 |
static constexpr unsigned int | MAXSPAN = 255 |
Static Private Member Functions | |
static int | overflow_ (uint16_t span) |
Private Attributes | |
float | err_x = -99999.9f |
float | err_y = -99999.9f |
uint16_t | theMinPixelCol = MAXPOS |
uint16_t | theMinPixelRow = MAXPOS |
uint16_t | theOriginalClusterId = invalidClusterId |
std::vector< uint16_t > | thePixelADC |
uint8_t | thePixelColSpan = 0 |
std::vector< uint8_t > | thePixelOffset |
uint8_t | thePixelRowSpan = 0 |
Pixel cluster – collection of neighboring pixels above threshold.
Pixel cluster – collection of pixels with ADC counts.
Class to contain and store all the topological information of pixel clusters: charge, global size, size and the barycenter in x and y local directions. It builds a vector of SiPixel (which is an inner class) and a container of channels.
March 2007: Edge methods moved to RectangularPixelTopology class (V.Chiochia) Feb 2008: Modify the Pixel class from float to shorts May 2008: Offset based packing (D.Fehling / A. Rizzi) Sep 2012: added Max back, removed detId (V.I.) sizeX and sizeY now clipped at 127 July 2017 make it compatible with PhaseII, remove errs....
Class to contain and store all the topological information of pixel clusters: charge, global size, size and the barycenter in x and y local directions. It builds a vector of SiPixel (which is an inner class) and a container of channels.
March 2007: Edge pixel methods moved to RectangularPixelTopology (V.Chiochia) May 2008: Offset based packing (D.Fehling / A. Rizzi)
Definition at line 28 of file SiPixelCluster.h.
typedef std::vector<PixelDigi>::const_iterator SiPixelCluster::PixelDigiIter |
Definition at line 69 of file SiPixelCluster.h.
typedef std::pair<PixelDigiIter, PixelDigiIter> SiPixelCluster::PixelDigiRange |
Definition at line 70 of file SiPixelCluster.h.
|
default |
Construct from a range of digis that form a cluster and from a DetID. The range is assumed to be non-empty.
|
default |
|
default |
|
default |
|
inline |
Definition at line 88 of file SiPixelCluster.h.
References mps_fire::i, MAXSPAN, SiStripPI::min, packCol(), packRow(), thePixelOffset, TrackerOfflineValidation_Dqm_cff::xmin, EcalSCDynamicDPhiParametersESProducer_cfi::xoffset, L1TOccupancyClient_cfi::ymin, and EcalSCDynamicDPhiParametersESProducer_cfi::yoffset.
SiPixelCluster::SiPixelCluster | ( | const PixelPos & | pix, |
int | adc | ||
) |
Definition at line 17 of file SiPixelCluster.cc.
References gpuClustering::adc, thePixelADC, and thePixelOffset.
void SiPixelCluster::add | ( | const PixelPos & | pix, |
int | adc | ||
) |
Definition at line 25 of file SiPixelCluster.cc.
References gpuClustering::adc, SiPixelCluster::PixelPos::col(), mps_fire::i, maxPixelCol(), maxPixelRow(), MAXSPAN, SiStripPI::min, minPixelCol(), minPixelRow(), overflowCol(), overflowRow(), packCol(), packRow(), SiPixelCluster::PixelPos::row(), thePixelADC, thePixelOffset, EcalSCDynamicDPhiParametersESProducer_cfi::xoffset, and EcalSCDynamicDPhiParametersESProducer_cfi::yoffset.
Referenced by PixelThresholdClusterizer::make_cluster(), PixelThresholdClusterizerForBricked::make_cluster_bricked(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
|
inline |
Definition at line 142 of file SiPixelCluster.h.
References mps_fire::i, and thePixelADC.
Referenced by SiPixelPhase1TrackClustersV::analyze(), PixelCPEClusterRepair::checkRecommend2D(), PixelThresholdClusterizerForBricked::clusterizeDetUnitT(), PixelThresholdClusterizer::clusterizeDetUnitT(), SiPixelTrackResidualModule::fill(), PixelCPEFast::localPosition(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), PixelThresholdClusterizer::make_cluster(), PixelThresholdClusterizerForBricked::make_cluster_bricked(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), JetCoreClusterSplitter::split(), x(), and y().
|
inline |
Definition at line 178 of file SiPixelCluster.h.
References thePixelColSpan.
Referenced by maxPixelCol(), and sizeY().
|
inline |
Definition at line 201 of file SiPixelCluster.h.
References err_x.
Referenced by PixelCPEClusterRepair::localError().
|
inline |
Definition at line 202 of file SiPixelCluster.h.
References err_y.
Referenced by PixelCPEClusterRepair::localError().
|
inline |
Definition at line 153 of file SiPixelCluster.h.
References colSpan(), and minPixelCol().
Referenced by add(), PixelCPEGenericBase::collect_edge_charges(), PixelCPEGenericForBricked::collect_edge_charges_bricked(), ClusterShape::determineShape(), PixelCPEGenericBase::initializeLocalErrorVariables(), PixelCPEFast::localPosition(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), ClusterTPAssociationProducer::produce(), and PixelCPEBase::setTheClu().
|
inline |
Definition at line 151 of file SiPixelCluster.h.
References minPixelRow(), and rowSpan().
Referenced by add(), PixelCPEGenericBase::collect_edge_charges(), PixelCPEGenericForBricked::collect_edge_charges_bricked(), ClusterShape::determineShape(), PixelCPEGenericBase::initializeLocalErrorVariables(), PixelCPEFast::localPosition(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), ClusterTPAssociationProducer::produce(), and PixelCPEBase::setTheClu().
|
inline |
Definition at line 152 of file SiPixelCluster.h.
References theMinPixelCol.
Referenced by add(), PixelCPEClusterRepair::checkRecommend2D(), PixelCPEGenericBase::collect_edge_charges(), PixelCPEGenericForBricked::collect_edge_charges_bricked(), ClusterShape::determineShape(), FakeCPE::Map::encode(), PixelCPEGenericBase::initializeLocalErrorVariables(), PixelCPEFast::localPosition(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), PixelCPEClusterRepair::localPosition(), maxPixelCol(), pixel(), ClusterTPAssociationProducer::produce(), ShallowGainCalibration::produce(), PixelCPEBase::setTheClu(), and y().
|
inline |
Definition at line 150 of file SiPixelCluster.h.
References theMinPixelRow.
Referenced by add(), PixelThresholdClusterizerForBricked::clusterizeDetUnitT(), PixelThresholdClusterizer::clusterizeDetUnitT(), PixelCPEGenericBase::collect_edge_charges(), PixelCPEGenericForBricked::collect_edge_charges_bricked(), ClusterShape::determineShape(), FakeCPE::Map::encode(), PixelCPEGenericBase::initializeLocalErrorVariables(), PixelCPEFast::localPosition(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), PixelCPEClusterRepair::localPosition(), PixelThresholdClusterizer::make_cluster(), PixelThresholdClusterizerForBricked::make_cluster_bricked(), maxPixelRow(), pixel(), JetCoreClusterSplitter::produce(), SiPixelDigisClustersFromSoA::produce(), ClusterTPAssociationProducer::produce(), ShallowGainCalibration::produce(), PixelCPEBase::setTheClu(), JetCoreClusterSplitter::split(), and x().
|
default |
|
default |
|
inline |
|
inline |
|
inlinestaticprivate |
Definition at line 175 of file SiPixelCluster.h.
References MAXSPAN.
Referenced by overflowCol(), and overflowRow().
|
inline |
Definition at line 182 of file SiPixelCluster.h.
References overflow_(), and thePixelColSpan.
Referenced by add(), and overflow().
|
inline |
Definition at line 184 of file SiPixelCluster.h.
References overflow_(), and thePixelRowSpan.
Referenced by add(), and overflow().
|
inline |
Definition at line 188 of file SiPixelCluster.h.
References MAXSPAN, SiStripPI::min, theMinPixelCol, thePixelColSpan, and L1TOccupancyClient_cfi::ymin.
Referenced by add(), and SiPixelCluster().
|
inline |
Definition at line 192 of file SiPixelCluster.h.
References MAXSPAN, SiStripPI::min, theMinPixelRow, thePixelRowSpan, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by add(), and SiPixelCluster().
|
inline |
Definition at line 170 of file SiPixelCluster.h.
References mps_fire::i, minPixelCol(), minPixelRow(), Pixel, thePixelADC, and thePixelOffset.
Referenced by PixelCPEGenericBase::collect_edge_charges(), PixelCPEGenericForBricked::collect_edge_charges_bricked(), ClusterShape::determineShape(), DeepCoreSeedGenerator::fillPixelMatrix(), PixelCPEClusterRepair::localPosition(), and pixels().
|
inline |
Definition at line 156 of file SiPixelCluster.h.
References thePixelADC.
Referenced by ClusterShape::determineShape(), and ShallowGainCalibration::produce().
|
inline |
|
inline |
Definition at line 159 of file SiPixelCluster.h.
References mps_fire::i, pixel(), and thePixelADC.
Referenced by analyzer::SiPixelLorentzAngle::fillPix(), SiPixelLorentzAnglePCLWorker::fillPix(), JetCoreClusterSplitter::fittingSplit(), PixelThresholdClusterizer::make_cluster(), and PixelThresholdClusterizerForBricked::make_cluster_bricked().
|
inline |
Definition at line 180 of file SiPixelCluster.h.
References thePixelRowSpan.
Referenced by maxPixelRow(), and sizeX().
|
inline |
Definition at line 206 of file SiPixelCluster.h.
References triggerObjects_cff::id, and theOriginalClusterId.
|
inline |
|
inline |
|
inline |
Definition at line 134 of file SiPixelCluster.h.
References thePixelADC.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), SiStripMonitorCluster::analyze(), PixelCPEGenericBase::collect_edge_charges(), PixelCPEGenericForBricked::collect_edge_charges_bricked(), SiPixelTrackResidualModule::fill(), DeepCoreSeedGenerator::fillPixelMatrix(), and PixelCPEClusterRepair::localPosition().
|
inline |
Definition at line 137 of file SiPixelCluster.h.
References rowSpan().
Referenced by SiPixelPhase1TrackClustersV::analyze(), SiPixelTrackResidualModule::fill(), PixelCPEGenericBase::initializeLocalErrorVariables(), PixelCPEClusterRepair::localError(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), and FastPrimaryVertexProducer::produce().
|
inline |
Definition at line 140 of file SiPixelCluster.h.
References colSpan().
Referenced by SiPixelPhase1TrackClustersV::analyze(), PixelCPEClusterRepair::checkRecommend2D(), SiPixelTrackResidualModule::fill(), PixelCPEGenericBase::initializeLocalErrorVariables(), PixelCPEClusterRepair::localError(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), and FastPrimaryVertexProducer::produce().
|
inline |
Definition at line 117 of file SiPixelCluster.h.
References charge(), mps_fire::i, minPixelRow(), thePixelADC, and thePixelOffset.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), PixelCPEClusterRepair::callTempReco1D(), PixelCPEClusterRepair::callTempReco2D(), PixelCPEBase::computeAnglesFromDetPosition(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), SiPixelCoordinates::pixel_(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
inline |
Definition at line 125 of file SiPixelCluster.h.
References charge(), mps_fire::i, minPixelCol(), thePixelADC, and thePixelOffset.
Referenced by svgfig.Ellipse::__repr__(), PixelCPEClusterRepair::callTempReco1D(), PixelCPEClusterRepair::callTempReco2D(), PixelCPEBase::computeAnglesFromDetPosition(), PixelCPEGenericForBricked::localPosition(), PixelCPEGeneric::localPosition(), SiPixelCoordinates::pixel_(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
private |
Definition at line 219 of file SiPixelCluster.h.
Referenced by getSplitClusterErrorX(), and setSplitClusterErrorX().
|
private |
Definition at line 220 of file SiPixelCluster.h.
Referenced by getSplitClusterErrorY(), and setSplitClusterErrorY().
|
static |
Definition at line 75 of file SiPixelCluster.h.
|
static |
Definition at line 73 of file SiPixelCluster.h.
|
static |
Definition at line 72 of file SiPixelCluster.h.
Referenced by add(), overflow_(), packCol(), packRow(), and SiPixelCluster().
|
private |
Definition at line 213 of file SiPixelCluster.h.
Referenced by minPixelCol(), and packCol().
|
private |
Definition at line 212 of file SiPixelCluster.h.
Referenced by minPixelRow(), and packRow().
|
private |
Definition at line 217 of file SiPixelCluster.h.
Referenced by originalId(), and setOriginalId().
|
private |
Definition at line 210 of file SiPixelCluster.h.
Referenced by add(), charge(), pixel(), pixelADC(), pixels(), SiPixelCluster(), size(), x(), and y().
|
private |
Definition at line 215 of file SiPixelCluster.h.
Referenced by colSpan(), overflowCol(), and packCol().
|
private |
Definition at line 209 of file SiPixelCluster.h.
Referenced by add(), pixel(), pixelOffset(), SiPixelCluster(), x(), and y().
|
private |
Definition at line 214 of file SiPixelCluster.h.
Referenced by overflowRow(), packRow(), and rowSpan().