CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
static std::vector< std::pair< double, double > > waferXY(int part, int orient, int zside, double delX, double delY, double xpos, double ypos)
static bool goodCell(int u, int v, int N, int type, int rotn)
static bool goodTypeMode(double xpos, double ypos, double delX, double delY, double rin, double rout, int part, int rotn, bool debug)
int zside(DetId const &)
static int getRotation(int zside, int type, int rotn)
#define debug
Definition: HDRShower.cc:19
#define N
Definition: blowfish.cc:9
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)
part
Definition: HCALResponse.h:20
static constexpr int k_OffsetRotation
HGCalWaferMask()=default
static bool maskCell(int u, int v, int N, int ncor, int fcor, int corners)