CMS 3D CMS Logo

HGCGuardRing.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HGCGuardRing_h
2 #define SimG4CMS_HGCGuardRing_h
3 
5 #include "G4ThreeVector.hh"
6 
7 #include <vector>
8 
9 class HGCGuardRing {
10 public:
12  bool exclude(G4ThreeVector& point, int zside, int frontBack, int layer, int waferU, int waferV);
13  static bool insidePolygon(double x, double y, const std::vector<std::pair<double, double> >& xyv);
14 
15 private:
16  static constexpr double sqrt3_ = 1.732050807568877; // std::sqrt(3.0) in double precision
19  const bool v17OrLess_;
21  double offset_, xmax_, ymax_;
22 };
23 
24 #endif // HGCGuardRing_h
const double sensorSizeOffset_
Definition: HGCGuardRing.h:20
double ymax_
Definition: HGCGuardRing.h:21
int32_t waferU(const int32_t index)
int zside(DetId const &)
const double waferSize_
Definition: HGCGuardRing.h:20
const double guardRingOffset_
Definition: HGCGuardRing.h:20
bool exclude(G4ThreeVector &point, int zside, int frontBack, int layer, int waferU, int waferV)
Definition: HGCGuardRing.cc:26
double xmax_
Definition: HGCGuardRing.h:21
const HGCalDDDConstants & hgcons_
Definition: HGCGuardRing.h:17
static bool insidePolygon(double x, double y, const std::vector< std::pair< double, double > > &xyv)
Definition: HGCGuardRing.cc:81
HGCGuardRing(const HGCalDDDConstants &hgc)
Definition: HGCGuardRing.cc:9
const bool v17OrLess_
Definition: HGCGuardRing.h:19
double offset_
Definition: HGCGuardRing.h:21
const HGCalGeometryMode::GeometryMode modeUV_
Definition: HGCGuardRing.h:18
int32_t waferV(const int32_t index)
static constexpr double sqrt3_
Definition: HGCGuardRing.h:16
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5