CMS 3D CMS Logo

HGCalWaferMask.h
Go to the documentation of this file.
1 #ifndef HGCalCommonData_HGCalWaferMask_h
2 #define HGCalCommonData_HGCalWaferMask_h
3 
13 #include <cmath>
14 #include <vector>
15 
17 public:
18  HGCalWaferMask() = default;
19 
20  static bool maskCell(int u, int v, int N, int ncor, int fcor, int corners);
21  static bool goodCell(int u, int v, int N, int type, int rotn);
22  static int getRotation(int zside, int type, int rotn);
23  static std::pair<int, int> getTypeMode(const double& xpos,
24  const double& ypos,
25  const double& delX,
26  const double& delY,
27  const double& rin,
28  const double& rout,
29  const int& waferType,
30  const int& mode,
31  bool deug = false);
32  static bool goodTypeMode(
33  double xpos, double ypos, double delX, double delY, double rin, double rout, int part, int rotn, bool debug);
34  static std::vector<std::pair<double, double> > waferXY(
35  int part, int orient, int zside, double delX, double delY, double xpos, double ypos);
36 
37  static constexpr int k_OffsetRotation = 10;
38 };
39 
40 #endif
HGCalWaferMask::goodCell
static bool goodCell(int u, int v, int N, int type, int rotn)
Definition: HGCalWaferMask.cc:108
ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
HGCalWaferMask::waferXY
static std::vector< std::pair< double, double > > waferXY(int part, int orient, int zside, double delX, double delY, double xpos, double ypos)
Definition: HGCalWaferMask.cc:1003
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
findQualityFiles.v
v
Definition: findQualityFiles.py:179
HGCalWaferMask::getRotation
static int getRotation(int zside, int type, int rotn)
Definition: HGCalWaferMask.cc:397
debug
#define debug
Definition: HDRShower.cc:19
part
part
Definition: HCALResponse.h:20
HGCalWaferMask
Definition: HGCalWaferMask.h:16
N
#define N
Definition: blowfish.cc:9
HGCalWaferMask::HGCalWaferMask
HGCalWaferMask()=default
HGCalWaferMask::getTypeMode
static std::pair< int, int > getTypeMode(const double &xpos, const double &ypos, const double &delX, const double &delY, const double &rin, const double &rout, const int &waferType, const int &mode, bool deug=false)
Definition: HGCalWaferMask.cc:435
HGCalWaferMask::goodTypeMode
static bool goodTypeMode(double xpos, double ypos, double delX, double delY, double rin, double rout, int part, int rotn, bool debug)
Definition: HGCalWaferMask.cc:681
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
HGCalWaferMask::k_OffsetRotation
static constexpr int k_OffsetRotation
Definition: HGCalWaferMask.h:37
hgcalPerformanceValidation.orient
orient
Definition: hgcalPerformanceValidation.py:733
HGCalWaferMask::maskCell
static bool maskCell(int u, int v, int N, int ncor, int fcor, int corners)
Definition: HGCalWaferMask.cc:11