10 no_of_pixels_simX_(0.),
11 no_of_pixels_simY_(0.),
16 active_edge_sigma_(0.),
17 phys_active_edge_dist_(0.),
31 if (xLocalCoordinate < -xModuleSize / 2. || xLocalCoordinate > xModuleSize / 2.)
36 if (is3x2 && (yLocalCoordinate < -yModuleSize / 2. || yLocalCoordinate > yModuleSize / 2.))
38 if (!is3x2 && (
runType_ ==
"Run2") && (yLocalCoordinate < -yModuleSize / 2. || yLocalCoordinate > y2x2top))
40 if (!is3x2 && (
runType_ ==
"Run3") && (yLocalCoordinate < -yModuleSize / 2. || yLocalCoordinate > yModuleSize / 2.))
47 double x,
double y,
double sigma,
double& hit_pos_x,
double& hit_pos_y)
const {
51 if (!(hit_pos_x * hit_pos_y > 0))
52 throw cms::Exception(
"PPSPixelTopology") <<
"pixel out of reference frame";
56 unsigned int interested_row =
row(
x);
57 unsigned int interested_col =
col(
y);
58 double low_pixel_range_x, high_pixel_range_x, low_pixel_range_y, high_pixel_range_y;
60 interested_row, interested_col, low_pixel_range_x, high_pixel_range_x, low_pixel_range_y, high_pixel_range_y);
72 unsigned int arow,
unsigned int acol,
double& lower_x,
double& higher_x,
double& lower_y,
double& higher_y)
const {
76 throw cms::Exception(
"PPSPixelTopology") <<
"pixel rows or columns exceeding limits";
141 const double aEF = topEdgeFactor * bottomEdgeFactor * rightEdgeFactor * leftEdgeFactor;
144 throw cms::Exception(
"PPSPixelTopology") <<
" pixel active edge factor > 1";
160 throw cms::Exception(
"PPSPixelTopology") <<
" pixel out of reference frame";
179 throw cms::Exception(
"PPSPixelTopology") <<
" pixel row number exceeding limit";
192 throw cms::Exception(
"PPSPixelTopology") <<
"pixel out of reference frame";
260 s <<
"\n PPS Topology parameters : \n" 273 std::stringstream
ss;
double distanceFromBottomActiveEdge(double x, double y) const
void setPitchSimY(double psy)
void setThickness(double tss)
unsigned short pixelColNo() const
unsigned int col(double y) const
double distanceFromTopActiveEdge(double x, double y) const
double getPitchSimY() const
void setActiveEdgeY(double aey)
double distanceFromRightActiveEdge(double x, double y) const
double getPitchSimX() const
double getDeadEdgeWidth() const
double getActiveEdgeX() const
unsigned int row(double x) const
double getActiveEdgeSigma() const
bool isPixelHit(float xLocalCoordinate, float yLocalCoordinate, bool is3x2) const
unsigned short no_of_pixels_simX_
void setActiveEdgeX(double aex)
void setDeadEdgeWidth(double dew)
void setPitchSimX(double psx)
double activeEdgeFactor(double x, double y) const
double getSimXWidth() const
void setSimYWidth(double syw)
double active_edge_sigma_
void setRunType(std::string rt)
unsigned short getNoPixels() const
double distanceFromLeftActiveEdge(double x, double y) const
unsigned short getNoPixelsSimY() const
std::ostream & operator<<(std::ostream &os, PPSPixelTopology info)
void pixelRange(unsigned int arow, unsigned int acol, double &lower_x, double &higher_x, double &lower_y, double &higher_y) const
unsigned short pixelRowNo() const
void index2RowCol(unsigned int &arow, unsigned int &acol, unsigned int index) const
unsigned short pixelIndex(PixelInfo pI) const
void setNoPixelsSimY(unsigned short npy)
double phys_active_edge_dist_
void setSimXWidth(double sxw)
void printInfo(std::stringstream &s)
double getActiveEdgeY() const
void setPhysActiveEdgeDist(double pae)
PixelInfo getPixelsInvolved(double x, double y, double sigma, double &hit_pos_x, double &hit_pos_y) const
void setNoPixelsSimX(unsigned short npx)
void rowCol2Index(unsigned int arow, unsigned int acol, unsigned int &index) const
double getSimYWidth() const
std::string getRunType() const
void setNoPixels(unsigned short np)
unsigned short getNoPixelsSimX() const
unsigned short no_of_pixels_simY_
double getPhysActiveEdgeDist() const
unsigned short no_of_pixels_
void setActiveEdgeSigma(double aes)
double getThickness() const