A specific threshold-based pixel clustering algorithm. More...
#include <PixelThresholdClusterizer.h>
Public Member Functions | |
void | clusterizeDetUnit (const edm::DetSet< PixelDigi > &input, const PixelGeomDetUnit *pixDet, const TrackerTopology *tTopo, const std::vector< short > &badChannels, edmNew::DetSetVector< SiPixelCluster >::FastFiller &output) |
void | clusterizeDetUnit (const edmNew::DetSet< SiPixelCluster > &input, const PixelGeomDetUnit *pixDet, const TrackerTopology *tTopo, const std::vector< short > &badChannels, edmNew::DetSetVector< SiPixelCluster >::FastFiller &output) |
PixelThresholdClusterizer (edm::ParameterSet const &conf) | |
~PixelThresholdClusterizer () | |
Public Member Functions inherited from PixelClusterizerBase | |
void | setSiPixelGainCalibrationService (SiPixelGainCalibrationServiceBase *in) |
virtual | ~PixelClusterizerBase () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
int | calibrate (int adc, int col, int row) |
void | clear_buffer (DigiIterator begin, DigiIterator end) |
Clear the internal buffer array. More... | |
void | clear_buffer (ClusterIterator begin, ClusterIterator end) |
template<typename T > | |
void | clusterizeDetUnitT (const T &input, const PixelGeomDetUnit *pixDet, const TrackerTopology *tTopo, const std::vector< short > &badChannels, edmNew::DetSetVector< SiPixelCluster >::FastFiller &output) |
Cluster pixels. This method operates on a matrix of pixels and finds the largest contiguous cluster around each seed pixel. Input and output data stored in DetSet. More... | |
void | copy_to_buffer (DigiIterator begin, DigiIterator end) |
Copy adc counts from PixelDigis into the buffer, identify seeds. More... | |
void | copy_to_buffer (ClusterIterator begin, ClusterIterator end) |
SiPixelCluster | make_cluster (const SiPixelCluster::PixelPos &pix, edmNew::DetSetVector< SiPixelCluster >::FastFiller &output) |
The actual clustering algorithm: group the neighboring pixels around the seed. More... | |
bool | setup (const PixelGeomDetUnit *pixDet) |
Private helper methods: More... | |
Private Attributes | |
bool | bufferAlreadySet |
bool | dead_flag |
uint32_t | detid_ |
const bool | doMissCalibrate |
const bool | doSplitClusters |
int | layer_ |
SiPixelArrayBuffer | theBuffer |
Data storage. More... | |
std::vector< SiPixelCluster > | theClusters |
const int | theClusterThreshold |
const int | theClusterThreshold_L1 |
float | theClusterThresholdInNoiseUnits |
const int | theConversionFactor |
const int | theConversionFactor_L1 |
const double | theElectronPerADCGain_ |
const int | theFirstStack_ |
int | theNumOfCols |
int | theNumOfRows |
Geometry-related information. More... | |
const int | theOffset |
const int | theOffset_L1 |
const int | thePixelThreshold |
float | thePixelThresholdInNoiseUnits |
Clustering-related quantities: More... | |
std::vector< SiPixelCluster::PixelPos > | theSeeds |
const int | theSeedThreshold |
float | theSeedThresholdInNoiseUnits |
const int | theStackADC_ |
Additional Inherited Members | |
Public Types inherited from PixelClusterizerBase | |
typedef edmNew::DetSet< SiPixelCluster >::const_iterator | ClusterIterator |
typedef edm::DetSet< PixelDigi >::const_iterator | DigiIterator |
Protected Attributes inherited from PixelClusterizerBase | |
SiPixelGainCalibrationServiceBase * | theSiPixelGainCalibrationService_ |
A specific threshold-based pixel clustering algorithm.
An explicit threshold-based clustering algorithm.
General logic of PixelThresholdClusterizer:
The clusterization is performed on a matrix with size equal to the size of the pixel detector, each cell containing the ADC count of the corresponding pixel. The matrix is reset after each clusterization.
The search starts from seed pixels, i.e. pixels with sufficiently large amplitudes, found at the time of filling of the matrix and stored in a SiPixelArrayBuffer.
Translate the pixel charge to electrons, we are suppose to do the calibrations ADC->electrons here. Modify the thresholds to be in electrons, convert adc to electrons. d.k. 20/3/06 Get rid of the noiseVector. d.k. 28/3/06
A threshold-based clustering algorithm which clusters SiPixelDigis into SiPixelClusters for each DetUnit. The algorithm is straightforward and purely topological: the clustering process starts with seed pixels and continues by adding adjacent pixels above the pixel threshold. Once the cluster is made, it has to be above the cluster threshold as well.
The clusterization is performed on a matrix with size equal to the size of the pixel detector, each cell containing the ADC count of the corresponding pixel. The matrix is reset after each clusterization.
The search starts from seed pixels, i.e. pixels with sufficiently large amplitudes, found at the time of filling of the matrix and stored in a
At this point the noise and dead channels are ignored, but soon they won't be.
SiPixelCluster contains a barrycenter, but it should be noted that that information is largely useless. One must use a PositionEstimator class to compute the RecHit position and its error for every given cluster.
Sets the PixelArrayBuffer dimensions and pixel thresholds. Makes clusters and stores them in theCache if the option useCache has been set.
Definition at line 59 of file PixelThresholdClusterizer.h.
PixelThresholdClusterizer::PixelThresholdClusterizer | ( | edm::ParameterSet const & | conf | ) |
Constructor: Initilize the buffer to hold pixels from a detector module. This is a vector of 44k ints, stays valid all the time.
Definition at line 44 of file PixelThresholdClusterizer.cc.
PixelThresholdClusterizer::~PixelThresholdClusterizer | ( | ) |
Definition at line 66 of file PixelThresholdClusterizer.cc.
|
private |
Definition at line 306 of file PixelThresholdClusterizer.cc.
References genericTrackCleaner_cfi::electrons, muonCSCDigis_cfi::gain, createfilelist::int, sistrip::layer_, and muonCSCDigis_cfi::pedestal.
|
private |
Clear the internal buffer array.
Pixels which are not part of recognized clusters are NOT ERASED during the cluster finding. Erase them now.
TO DO: ask Danek... wouldn't it be faster to simply memcopy() zeros into the whole buffer array?
Definition at line 200 of file PixelThresholdClusterizer.cc.
References end.
|
private |
Definition at line 208 of file PixelThresholdClusterizer.cc.
References end, mps_fire::i, digi_MixPreMix_cfi::pixel, SiPixelCluster::Pixel::x, and SiPixelCluster::Pixel::y.
|
inlinevirtual |
Implements PixelClusterizerBase.
Definition at line 66 of file PixelThresholdClusterizer.h.
|
inlinevirtual |
Implements PixelClusterizerBase.
Definition at line 71 of file PixelThresholdClusterizer.h.
References input, and convertSQLitetoXML_cfg::output.
|
private |
Cluster pixels. This method operates on a matrix of pixels and finds the largest contiguous cluster around each seed pixel. Input and output data stored in DetSet.
Definition at line 129 of file PixelThresholdClusterizer.cc.
References begin, edmNew::DetSetVector< T >::FastFiller::begin(), SiPixelCluster::charge(), GetRecoTauVFromDQM_MC_cff::cl2, edmNew::DetSetVector< T >::FastFiller::empty(), end, edmNew::DetSetVector< T >::FastFiller::end(), mps_fire::i, sistrip::layer_, SiPixelCluster::minPixelRow(), eostools::move(), edmNew::DetSetVector< T >::FastFiller::push_back(), TrackerTopology::pxbLayer(), GeneralSetup::setup(), and DetId::subdetId().
|
private |
Copy adc counts from PixelDigis into the buffer, identify seeds.
Definition at line 224 of file PixelThresholdClusterizer.cc.
References ecalMGPA::adc(), begin, cuy::col, gather_cfg::cout, metsig::electron, end, muonCSCDigis_cfi::gain, mps_fire::i, recoMuon::in, createfilelist::int, sistrip::layer_, and muonCSCDigis_cfi::pedestal.
|
private |
Definition at line 284 of file PixelThresholdClusterizer.cc.
References ecalMGPA::adc(), SiPixelCluster::Pixel::adc, cuy::col, end, mps_fire::i, digi_MixPreMix_cfi::pixel, SiPixelCluster::Pixel::x, and SiPixelCluster::Pixel::y.
|
static |
Definition at line 71 of file PixelThresholdClusterizer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
The actual clustering algorithm: group the neighboring pixels around the seed.
Definition at line 382 of file PixelThresholdClusterizer.cc.
References PixelClusterizerBase::AccretionCluster::adc, PixelClusterizerBase::AccretionCluster::add(), SiPixelCluster::add(), edmNew::DetSetVector< T >::FastFiller::begin(), EnergyCorrector::c, SiPixelCluster::charge(), GetRecoTauVFromDQM_MC_cff::cl2, SiPixelCluster::PixelPos::col(), PixelClusterizerBase::AccretionCluster::empty(), edmNew::DetSetVector< T >::FastFiller::end(), mps_fire::i, PixelClusterizerBase::AccretionCluster::isize, sistrip::layer_, hpstanc_transforms::max, min(), SiPixelCluster::minPixelRow(), SiPixelCluster::pixels(), PixelClusterizerBase::AccretionCluster::pop(), edmNew::DetSetVector< T >::FastFiller::push_back(), alignCSCRings::r, SiPixelCluster::PixelPos::row(), PixelClusterizerBase::AccretionCluster::top(), PixelClusterizerBase::AccretionCluster::x, PixelClusterizerBase::AccretionCluster::xmin, PixelClusterizerBase::AccretionCluster::y, and PixelClusterizerBase::AccretionCluster::ymin.
|
private |
Private helper methods:
Prepare the Clusterizer to work on a particular DetUnit. Re-init the size of the panel/plaquette (so update nrows and ncols),
Definition at line 94 of file PixelThresholdClusterizer.cc.
References trackingPlots::ncols, PixelTopology::ncolumns(), PixelTopology::nrows(), and PixelGeomDetUnit::specificTopology().
|
private |
Definition at line 90 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 117 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 115 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 118 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 119 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 116 of file PixelThresholdClusterizer.h.
|
private |
Data storage.
Definition at line 89 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 92 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 101 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 102 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 97 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 103 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 104 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 110 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 109 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 114 of file PixelThresholdClusterizer.h.
|
private |
Geometry-related information.
Definition at line 113 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 105 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 106 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 99 of file PixelThresholdClusterizer.h.
|
private |
Clustering-related quantities:
Definition at line 95 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 91 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 100 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 96 of file PixelThresholdClusterizer.h.
|
private |
Definition at line 108 of file PixelThresholdClusterizer.h.