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 |
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 | setSplitClusterErrorX (float errx) |
void | setSplitClusterErrorY (float erry) |
SiPixelCluster () | |
SiPixelCluster (unsigned int isize, uint16_t const *adcs, uint16_t const *xpos, uint16_t const *ypos, uint16_t const xmin, uint16_t const ymin) | |
SiPixelCluster (const PixelPos &pix, int adc) | |
int | size () const |
int | sizeX () const |
int | sizeY () const |
float | x () const |
float | y () const |
Static Public Attributes | |
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 |
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 27 of file SiPixelCluster.h.
typedef std::vector<PixelDigi>::const_iterator SiPixelCluster::PixelDigiIter |
Definition at line 67 of file SiPixelCluster.h.
typedef std::pair<PixelDigiIter,PixelDigiIter> SiPixelCluster::PixelDigiRange |
Definition at line 68 of file SiPixelCluster.h.
|
inline |
Construct from a range of digis that form a cluster and from a DetID. The range is assumed to be non-empty.
Definition at line 78 of file SiPixelCluster.h.
Referenced by SiPixelCluster().
|
inline |
Definition at line 80 of file SiPixelCluster.h.
References SiPixelCluster::Pixel::adc, add(), mps_fire::i, min(), packCol(), packRow(), SiPixelCluster(), thePixelOffset, TrackerOfflineValidation_Dqm_cff::xmin, and Phase2TrackerMonitorDigi_cff::ymin.
SiPixelCluster::SiPixelCluster | ( | const PixelPos & | pix, |
int | adc | ||
) |
Definition at line 18 of file SiPixelCluster.cc.
References thePixelADC, and thePixelOffset.
void SiPixelCluster::add | ( | const PixelPos & | pix, |
int | adc | ||
) |
Definition at line 28 of file SiPixelCluster.cc.
References SiPixelCluster::PixelPos::col(), mps_fire::i, maxPixelCol(), maxPixelRow(), MAXSPAN, min(), minPixelCol(), minPixelRow(), overflowCol(), overflowRow(), packCol(), packRow(), SiPixelCluster::PixelPos::row(), thePixelADC, and thePixelOffset.
Referenced by PixelThresholdClusterizer::make_cluster(), counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and SiPixelCluster().
|
inline |
Definition at line 130 of file SiPixelCluster.h.
References mps_fire::i, and thePixelADC.
Referenced by SiPixelPhase1TrackClustersV::analyze(), PixelThresholdClusterizer::clusterizeDetUnitT(), SiPixelTrackResidualModule::fill(), ApeEstimator::fillHitVariables(), PixelCPEGeneric::localPosition(), PixelThresholdClusterizer::make_cluster(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), JetCoreClusterSplitter::split(), x(), and y().
|
inline |
Definition at line 172 of file SiPixelCluster.h.
References thePixelColSpan.
Referenced by maxPixelCol(), and sizeY().
|
inline |
|
inline |
|
inline |
Definition at line 141 of file SiPixelCluster.h.
References colSpan(), and minPixelCol().
Referenced by add(), PixelCPEGeneric::collect_edge_charges(), ClusterShape::determineShape(), PixelCPEGeneric::localError(), PixelCPEGeneric::localPosition(), ClusterTPAssociationProducer::produce(), and PixelCPEBase::setTheClu().
|
inline |
Definition at line 139 of file SiPixelCluster.h.
References minPixelRow(), and rowSpan().
Referenced by add(), PixelCPEGeneric::collect_edge_charges(), ClusterShape::determineShape(), PixelCPEGeneric::localError(), PixelCPEGeneric::localPosition(), ClusterTPAssociationProducer::produce(), and PixelCPEBase::setTheClu().
|
inline |
Definition at line 140 of file SiPixelCluster.h.
References theMinPixelCol.
Referenced by add(), PixelCPEGeneric::collect_edge_charges(), ClusterShape::determineShape(), FakeCPE::Map::encode(), PixelCPEGeneric::localError(), PixelCPEClusterRepair::localPosition(), PixelCPEGeneric::localPosition(), maxPixelCol(), operator<(), pixel(), ClusterTPAssociationProducer::produce(), ShallowGainCalibration::produce(), fireworks::pushPixelCluster(), PixelCPEBase::setTheClu(), and y().
|
inline |
Definition at line 138 of file SiPixelCluster.h.
References theMinPixelRow.
Referenced by add(), PixelThresholdClusterizer::clusterizeDetUnitT(), PixelCPEGeneric::collect_edge_charges(), ClusterShape::determineShape(), FakeCPE::Map::encode(), PixelCPEGeneric::localError(), PixelCPEClusterRepair::localPosition(), PixelCPEGeneric::localPosition(), PixelThresholdClusterizer::make_cluster(), maxPixelRow(), operator<(), pixel(), JetCoreClusterSplitter::produce(), ClusterTPAssociationProducer::produce(), ShallowGainCalibration::produce(), fireworks::pushPixelCluster(), PixelCPEBase::setTheClu(), JetCoreClusterSplitter::split(), and x().
|
inline |
|
inlinestaticprivate |
|
inline |
Definition at line 177 of file SiPixelCluster.h.
References overflow_(), and thePixelColSpan.
Referenced by add(), and overflow().
|
inline |
Definition at line 179 of file SiPixelCluster.h.
References overflow_(), and thePixelRowSpan.
Referenced by add(), and overflow().
|
inline |
Definition at line 183 of file SiPixelCluster.h.
References min(), theMinPixelCol, thePixelColSpan, and Phase2TrackerMonitorDigi_cff::ymin.
Referenced by add(), and SiPixelCluster().
|
inline |
Definition at line 187 of file SiPixelCluster.h.
References min(), theMinPixelRow, thePixelRowSpan, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by add(), and SiPixelCluster().
|
inline |
Definition at line 159 of file SiPixelCluster.h.
References minPixelCol(), minPixelRow(), SiPixelCluster::Pixel::Pixel(), thePixelADC, and thePixelOffset.
Referenced by PixelCPEGeneric::collect_edge_charges(), ClusterShape::determineShape(), PixelCPEClusterRepair::localPosition(), and pixels().
|
inline |
Definition at line 145 of file SiPixelCluster.h.
References thePixelADC.
Referenced by ClusterShape::determineShape(), and ShallowGainCalibration::produce().
|
inline |
|
inline |
Definition at line 148 of file SiPixelCluster.h.
References mps_fire::i, pixel(), and thePixelADC.
Referenced by analyzer::SiPixelLorentzAngle::fillPix(), JetCoreClusterSplitter::fittingSplit(), and PixelThresholdClusterizer::make_cluster().
|
inline |
Definition at line 174 of file SiPixelCluster.h.
References thePixelRowSpan.
Referenced by maxPixelRow(), and sizeX().
|
inline |
Definition at line 194 of file SiPixelCluster.h.
References err_x.
Referenced by JetCoreClusterSplitter::produce().
|
inline |
Definition at line 195 of file SiPixelCluster.h.
References err_y.
Referenced by JetCoreClusterSplitter::produce().
|
inline |
Definition at line 121 of file SiPixelCluster.h.
References thePixelADC.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), SiStripMonitorCluster::analyze(), PixelCPEGeneric::collect_edge_charges(), SiPixelTrackResidualModule::fill(), PixelCPEClusterRepair::localPosition(), and SiPixelClusterShapeCacheProducer::produce().
|
inline |
Definition at line 124 of file SiPixelCluster.h.
References rowSpan().
Referenced by SiPixelPhase1TrackClustersV::analyze(), SiPixelTrackResidualModule::fill(), ApeEstimator::fillHitVariables(), PixelCPEClusterRepair::localError(), PixelCPEGeneric::localError(), PixelCPEGeneric::localPosition(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), and FastPrimaryVertexProducer::produce().
|
inline |
Definition at line 127 of file SiPixelCluster.h.
References colSpan().
Referenced by SiPixelPhase1TrackClustersV::analyze(), SiPixelTrackResidualModule::fill(), ApeEstimator::fillHitVariables(), PixelCPEClusterRepair::localError(), PixelCPEGeneric::localError(), PixelCPEGeneric::localPosition(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), and FastPrimaryVertexProducer::produce().
|
inline |
Definition at line 104 of file SiPixelCluster.h.
References charge(), mps_fire::i, minPixelRow(), thePixelADC, and thePixelOffset.
Referenced by svgfig.Curve.Sample::__repr__(), svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), PixelCPEClusterRepair::callTempReco1D(), PixelCPEClusterRepair::callTempReco2D(), SiPixelErrorEstimation::computeAnglesFromDetPosition(), PixelCPEBase::computeAnglesFromDetPosition(), ApeEstimator::fillHitVariables(), PixelCPEGeneric::localPosition(), SiPixelCoordinates::pixel_(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
inline |
Definition at line 112 of file SiPixelCluster.h.
References charge(), mps_fire::i, minPixelCol(), thePixelADC, and thePixelOffset.
Referenced by svgfig.Ellipse::__repr__(), Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::boundingRect(), PixelCPEClusterRepair::callTempReco1D(), PixelCPEClusterRepair::callTempReco2D(), SiPixelErrorEstimation::computeAnglesFromDetPosition(), PixelCPEBase::computeAnglesFromDetPosition(), ApeEstimator::fillHitVariables(), PixelCPEGeneric::localPosition(), SiPixelCoordinates::pixel_(), geometryXMLparser.Alignable::pos(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
private |
Definition at line 211 of file SiPixelCluster.h.
Referenced by getSplitClusterErrorX(), and setSplitClusterErrorX().
|
private |
Definition at line 212 of file SiPixelCluster.h.
Referenced by getSplitClusterErrorY(), and setSplitClusterErrorY().
|
static |
Definition at line 72 of file SiPixelCluster.h.
|
static |
Definition at line 71 of file SiPixelCluster.h.
Referenced by add().
|
private |
Definition at line 207 of file SiPixelCluster.h.
Referenced by minPixelCol(), and packCol().
|
private |
Definition at line 206 of file SiPixelCluster.h.
Referenced by minPixelRow(), and packRow().
|
private |
Definition at line 203 of file SiPixelCluster.h.
Referenced by add(), charge(), pixel(), pixelADC(), pixels(), SiPixelCluster(), size(), x(), and y().
|
private |
Definition at line 209 of file SiPixelCluster.h.
Referenced by colSpan(), overflowCol(), and packCol().
|
private |
Definition at line 202 of file SiPixelCluster.h.
Referenced by add(), pixel(), pixelOffset(), SiPixelCluster(), x(), and y().
|
private |
Definition at line 208 of file SiPixelCluster.h.
Referenced by overflowRow(), packRow(), and rowSpan().