CMS 3D CMS Logo

List of all members | Public Member Functions
MTDTopologyBuilder Class Reference

#include <MTDTopologyBuilder.h>

Public Member Functions

PixelTopologybuild (const Bounds *bounds, bool upgradeGeometry, int ROWS_PER_ROC, int COLS_PER_ROC, int BIG_PIX_PER_ROC_X, int BIG_PIX_PER_ROC_Y, int ROCS_X, int ROCS_Y)
 
 MTDTopologyBuilder ()
 

Detailed Description

Called by GeomTopologyBuilder, chooses the right topology for Pixels.

Definition at line 12 of file MTDTopologyBuilder.h.

Constructor & Destructor Documentation

◆ MTDTopologyBuilder()

MTDTopologyBuilder::MTDTopologyBuilder ( void  )

Definition at line 6 of file MTDTopologyBuilder.cc.

6 {}

Member Function Documentation

◆ build()

PixelTopology * MTDTopologyBuilder::build ( const Bounds bounds,
bool  upgradeGeometry,
int  ROWS_PER_ROC,
int  COLS_PER_ROC,
int  BIG_PIX_PER_ROC_X,
int  BIG_PIX_PER_ROC_Y,
int  ROCS_X,
int  ROCS_Y 
)

Definition at line 8 of file MTDTopologyBuilder.cc.

15  {
16  float width = bs->width(); // module width = Xsize
17  float length = bs->length(); // module length = Ysize
18 
19  // Number of pixel rows (x) and columns (y) per module
20  int nrows = pixelROCRows * pixelROCsInX;
21  int ncols = pixelROCCols * pixelROCsInY;
22 
23  // Take into account the large edge pixles
24  // 1 big pixel per ROC
25  float pitchX = width / (nrows + pixelROCsInX * BIG_PIX_PER_ROC_X);
26  // 2 big pixels per ROC
27  float pitchY = length / (ncols + pixelROCsInY * BIG_PIX_PER_ROC_Y);
28 
29  return (new RectangularMTDTopology(nrows,
30  ncols,
31  pitchX,
32  pitchY,
33  upgradeGeometry,
34  pixelROCRows, // (int)rocRow
35  pixelROCCols, // (int)rocCol
36  BIG_PIX_PER_ROC_X,
37  BIG_PIX_PER_ROC_Y,
38  pixelROCsInX,
39  pixelROCsInY)); // (int)rocInX, (int)rocInY
40 }

References cms::cuda::bs, hgcalPlots::ncols, and ApeEstimator_cff::width.

Referenced by MTDGeomBuilderFromGeometricTimingDet::buildPixel().

ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
hgcalPlots.ncols
ncols
Definition: hgcalPlots.py:105
cms::cuda::bs
bs
Definition: HistoContainer.h:127
RectangularMTDTopology
Definition: RectangularMTDTopology.h:39