CMS 3D CMS Logo

Phase2ITPixelThresholdClusterizer.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_Phase2ITPixelClusterizer_Phase2ITPixelThresholdClusterizer_H
2 #define RecoLocalTracker_Phase2ITPixelClusterizer_Phase2ITPixelThresholdClusterizer_H
3 
4 //-----------------------------------------------------------------------
39 //-----------------------------------------------------------------------
40 
41 // Base class, defines SiPixelDigi and Phase2ITPixelCluster. The latter includes
42 // Pixel, PixelPos and Shift as inner classes.
43 //
46 
47 // The private pixel buffer
49 
50 // Parameter Set:
52 
53 #include <vector>
54 
55 
57  public:
58 
61 
62  // Full I/O in DetSet
64  const PixelGeomDetUnit * pixDet,
65  const std::vector<short>& badChannels,
67 );
68 
69 
70  private:
71 
73 
75  Phase2ITPixelArrayBuffer theBuffer; // internal nrow * ncol matrix
76  bool bufferAlreadySet; // status of the buffer array
77  std::vector<Phase2ITPixelCluster::PixelPos> theSeeds; // cached seed pixels
78  std::vector<Phase2ITPixelCluster> theClusters; // resulting clusters
79 
81  float thePixelThresholdInNoiseUnits; // Pixel threshold in units of noise
82  float theSeedThresholdInNoiseUnits; // Pixel cluster seed in units of noise
83  float theClusterThresholdInNoiseUnits; // Cluster threshold in units of noise
84 
85  int thePixelThreshold; // Pixel threshold in electrons
86  int theSeedThreshold; // Seed threshold in electrons
87  float theClusterThreshold; // Cluster threshold in electrons
88  int theConversionFactor; // adc to electron conversion factor
89  int theOffset; // adc to electron conversion offset
90 
94  uint32_t detid_;
95  bool dead_flag;
96  bool doMissCalibrate; // Use calibration or not
99  bool setup(const PixelGeomDetUnit * pixDet);
100  void copy_to_buffer( DigiIterator begin, DigiIterator end );
101  void clear_buffer( DigiIterator begin, DigiIterator end );
103 );
104  // Calibrate the ADC charge to electrons
105  int calibrate(int adc, int col, int row);
106  int theStackADC_; // The maximum ADC count for the stack layers
107  int theFirstStack_; // The index of the first stack layer
108 
109 
110 };
111 
112 #endif
int adc(sample_type sample)
get the ADC sample (12 bits)
#define dso_hidden
int theNumOfRows
Geometry-related information.
std::vector< Phase2ITPixelCluster > theClusters
Class to store ADC counts during clustering.
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
A specific threshold-based pixel clustering algorithm.
static std::string const input
Definition: EdmProvDump.cc:44
Phase2ITPixelArrayBuffer theBuffer
Data storage.
#define end
Definition: vmac.h:37
float thePixelThresholdInNoiseUnits
Clustering-related quantities:
Pixel cluster – collection of neighboring pixels above threshold.
edm::DetSet< PixelDigi >::const_iterator DigiIterator
#define begin
Definition: vmac.h:30
col
Definition: cuy.py:1008
std::vector< Phase2ITPixelCluster::PixelPos > theSeeds
virtual void clusterizeDetUnit(const edm::DetSet< PixelDigi > &input, const PixelGeomDetUnit *pixDet, const std::vector< short > &badChannels, edmNew::DetSetVector< Phase2ITPixelCluster >::FastFiller &output)=0