CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelThresholdClusterizer.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_SiPixelClusterizer_PixelThresholdClusterizer_H
2 #define RecoLocalTracker_SiPixelClusterizer_PixelThresholdClusterizer_H
3 
4 //-----------------------------------------------------------------------
39 //-----------------------------------------------------------------------
40 
41 // Base class, defines SiPixelDigi and SiPixelCluster. The latter includes
42 // Pixel, PixelPos and Shift as inner classes.
43 //
45 #include "PixelClusterizerBase.h"
46 
47 // The private pixel buffer
48 #include "SiPixelArrayBuffer.h"
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  SiPixelArrayBuffer theBuffer; // internal nrow * ncol matrix
76  bool bufferAlreadySet; // status of the buffer array
77  std::vector<SiPixelCluster::PixelPos> theSeeds; // cached seed pixels
78  std::vector<SiPixelCluster> 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)
SiPixelArrayBuffer theBuffer
Data storage.
static std::string const input
Definition: EdmProvDump.cc:44
edm::DetSet< PixelDigi >::const_iterator DigiIterator
#define end
Definition: vmac.h:37
tuple conf
Definition: dbtoconf.py:185
int theNumOfRows
Geometry-related information.
#define dso_hidden
Definition: Visibility.h:12
std::vector< SiPixelCluster > theClusters
Pixel cluster – collection of neighboring pixels above threshold.
float thePixelThresholdInNoiseUnits
Clustering-related quantities:
#define begin
Definition: vmac.h:30
int col
Definition: cuy.py:1008
std::vector< SiPixelCluster::PixelPos > theSeeds
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
A specific threshold-based pixel clustering algorithm.
Class to store ADC counts during clustering.
virtual void clusterizeDetUnit(const edm::DetSet< PixelDigi > &input, const PixelGeomDetUnit *pixDet, const std::vector< short > &badChannels, edmNew::DetSetVector< SiPixelCluster >::FastFiller &output)=0