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 (const PixelPos &pix, int adc) | |
SiPixelCluster (unsigned int isize, uint16_t const *adcs, uint16_t const *xpos, uint16_t const *ypos, uint16_t const xmin, uint16_t const ymin) | |
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 65 of file SiPixelCluster.h.
typedef std::pair<PixelDigiIter, PixelDigiIter> SiPixelCluster::PixelDigiRange |
Definition at line 66 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 75 of file SiPixelCluster.h.
|
inline |
Definition at line 77 of file SiPixelCluster.h.
References mps_fire::i, MAXSPAN, min(), packCol(), packRow(), thePixelOffset, TrackerOfflineValidation_Dqm_cff::xmin, HLT_FULL_cff::xoffset, L1TOccupancyClient_cfi::ymin, and HLT_FULL_cff::yoffset.
SiPixelCluster::SiPixelCluster | ( | const PixelPos & | pix, |
int | adc | ||
) |
Definition at line 17 of file SiPixelCluster.cc.
References ecalLiteDTU::adc(), thePixelADC, and thePixelOffset.
void SiPixelCluster::add | ( | const PixelPos & | pix, |
int | adc | ||
) |
Definition at line 25 of file SiPixelCluster.cc.
References ecalLiteDTU::adc(), SiPixelCluster::PixelPos::col(), mps_fire::i, maxPixelCol(), maxPixelRow(), MAXSPAN, min(), minPixelCol(), minPixelRow(), overflowCol(), overflowRow(), packCol(), packRow(), SiPixelCluster::PixelPos::row(), thePixelADC, thePixelOffset, HLT_FULL_cff::xoffset, and HLT_FULL_cff::yoffset.
Referenced by PixelThresholdClusterizer::make_cluster(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
inline |
Definition at line 130 of file SiPixelCluster.h.
References mps_fire::i, and thePixelADC.
Referenced by SiPixelPhase1TrackClustersV::analyze(), PixelCPEClusterRepair::checkRecommend2D(), PixelThresholdClusterizer::clusterizeDetUnitT(), SiPixelTrackResidualModule::fill(), PixelCPEGeneric::localPosition(), PixelThresholdClusterizer::make_cluster(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), JetCoreClusterSplitter::split(), x(), and y().
|
inline |
Definition at line 166 of file SiPixelCluster.h.
References thePixelColSpan.
Referenced by maxPixelCol(), and sizeY().
|
inline |
Definition at line 189 of file SiPixelCluster.h.
References err_x.
Referenced by PixelCPEClusterRepair::localError().
|
inline |
Definition at line 190 of file SiPixelCluster.h.
References err_y.
Referenced by PixelCPEClusterRepair::localError().
|
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(), PixelCPEClusterRepair::checkRecommend2D(), PixelCPEGeneric::collect_edge_charges(), ClusterShape::determineShape(), FakeCPE::Map::encode(), PixelCPEGeneric::localError(), PixelCPEClusterRepair::localPosition(), PixelCPEGeneric::localPosition(), maxPixelCol(), pixel(), ClusterTPAssociationProducer::produce(), ShallowGainCalibration::produce(), 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(), pixel(), JetCoreClusterSplitter::produce(), ClusterTPAssociationProducer::produce(), ShallowGainCalibration::produce(), PixelCPEBase::setTheClu(), JetCoreClusterSplitter::split(), and x().
|
inline |
|
inlinestaticprivate |
Definition at line 163 of file SiPixelCluster.h.
References MAXSPAN.
Referenced by overflowCol(), and overflowRow().
|
inline |
Definition at line 170 of file SiPixelCluster.h.
References overflow_(), and thePixelColSpan.
Referenced by add(), and overflow().
|
inline |
Definition at line 172 of file SiPixelCluster.h.
References overflow_(), and thePixelRowSpan.
Referenced by add(), and overflow().
|
inline |
Definition at line 176 of file SiPixelCluster.h.
References MAXSPAN, min(), theMinPixelCol, thePixelColSpan, and L1TOccupancyClient_cfi::ymin.
Referenced by add(), and SiPixelCluster().
|
inline |
Definition at line 180 of file SiPixelCluster.h.
References MAXSPAN, min(), theMinPixelRow, thePixelRowSpan, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by add(), and SiPixelCluster().
|
inline |
Definition at line 158 of file SiPixelCluster.h.
References mps_fire::i, minPixelCol(), minPixelRow(), align::Pixel, thePixelADC, and thePixelOffset.
Referenced by PixelCPEGeneric::collect_edge_charges(), ClusterShape::determineShape(), PixelCPEClusterRepair::localPosition(), and pixels().
|
inline |
Definition at line 144 of file SiPixelCluster.h.
References thePixelADC.
Referenced by ClusterShape::determineShape(), and ShallowGainCalibration::produce().
|
inline |
|
inline |
Definition at line 147 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 168 of file SiPixelCluster.h.
References thePixelRowSpan.
Referenced by maxPixelRow(), and sizeX().
|
inline |
|
inline |
|
inline |
Definition at line 122 of file SiPixelCluster.h.
References thePixelADC.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), SiStripMonitorCluster::analyze(), PixelCPEGeneric::collect_edge_charges(), SiPixelTrackResidualModule::fill(), and PixelCPEClusterRepair::localPosition().
|
inline |
Definition at line 125 of file SiPixelCluster.h.
References rowSpan().
Referenced by SiPixelPhase1TrackClustersV::analyze(), SiPixelTrackResidualModule::fill(), PixelCPEClusterRepair::localError(), PixelCPEGeneric::localError(), PixelCPEGeneric::localPosition(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), and FastPrimaryVertexProducer::produce().
|
inline |
Definition at line 128 of file SiPixelCluster.h.
References colSpan().
Referenced by SiPixelPhase1TrackClustersV::analyze(), PixelCPEClusterRepair::checkRecommend2D(), SiPixelTrackResidualModule::fill(), PixelCPEClusterRepair::localError(), PixelCPEGeneric::localError(), PixelCPEGeneric::localPosition(), JetCoreClusterSplitter::produce(), FastPrimaryVertexWithWeightsProducer::produce(), and FastPrimaryVertexProducer::produce().
|
inline |
Definition at line 105 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(), PixelCPEGeneric::localPosition(), SiPixelCoordinates::pixel_(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
inline |
Definition at line 113 of file SiPixelCluster.h.
References charge(), mps_fire::i, minPixelCol(), thePixelADC, and thePixelOffset.
Referenced by svgfig.Ellipse::__repr__(), PixelCPEClusterRepair::callTempReco1D(), PixelCPEClusterRepair::callTempReco2D(), PixelCPEBase::computeAnglesFromDetPosition(), PixelCPEGeneric::localPosition(), SiPixelCoordinates::pixel_(), geometryXMLparser.Alignable::pos(), ntupleDataFormat._HitObject::r(), and ntupleDataFormat._HitObject::r3D().
|
private |
Definition at line 201 of file SiPixelCluster.h.
Referenced by getSplitClusterErrorX(), and setSplitClusterErrorX().
|
private |
Definition at line 202 of file SiPixelCluster.h.
Referenced by getSplitClusterErrorY(), and setSplitClusterErrorY().
|
staticconstexpr |
Definition at line 69 of file SiPixelCluster.h.
|
staticconstexpr |
Definition at line 68 of file SiPixelCluster.h.
Referenced by add(), overflow_(), packCol(), packRow(), and SiPixelCluster().
|
private |
Definition at line 197 of file SiPixelCluster.h.
Referenced by minPixelCol(), and packCol().
|
private |
Definition at line 196 of file SiPixelCluster.h.
Referenced by minPixelRow(), and packRow().
|
private |
Definition at line 194 of file SiPixelCluster.h.
Referenced by add(), charge(), pixel(), pixelADC(), pixels(), SiPixelCluster(), size(), x(), and y().
|
private |
Definition at line 199 of file SiPixelCluster.h.
Referenced by colSpan(), overflowCol(), and packCol().
|
private |
Definition at line 193 of file SiPixelCluster.h.
Referenced by add(), pixel(), pixelOffset(), SiPixelCluster(), x(), and y().
|
private |
Definition at line 198 of file SiPixelCluster.h.
Referenced by overflowRow(), packRow(), and rowSpan().