CMS 3D CMS Logo

HGCalMouseBite.h
Go to the documentation of this file.
1 #ifndef GeometryHGCalGeometry_HGCalMouseBite_h
2 #define GeometryHGCalGeometry_HGCalMouseBite_h
3 
8 
9 #include <vector>
10 
11 //#define EDM_ML_DEBUG
12 
14 public:
15  HGCalMouseBite(const HGCalDDDConstants& hgc, bool waferRotate = false);
16  template <class T>
17  bool exclude(const T& id) {
18  int iuv = (100 * id.cellU() + id.cellV());
19  bool check = ((id.type() == 0) ? (std::binary_search(rejectFine_.begin(), rejectFine_.end(), iuv))
20  : (std::binary_search(rejectCoarse_.begin(), rejectCoarse_.end(), iuv)));
21 #ifdef EDM_ML_DEBUG
22  edm::LogVerbatim("HGCalGeom") << "HGCalMouseBite:: DetId " << id
23  << " is checked to be in the list of masked ID's with flag " << check;
24 #endif
25  return check;
26  }
27 
28 private:
29  std::vector<int> rejectFine_, rejectCoarse_;
30 };
31 
32 #endif // HGCalMouseBite_h
MessageLogger.h
HGCalMouseBite::rejectFine_
std::vector< int > rejectFine_
Definition: HGCalMouseBite.h:29
HGCSiliconDetId.h
HFNoseDetId.h
HGCalMouseBite::exclude
bool exclude(const T &id)
Definition: HGCalMouseBite.h:17
HGCalDDDConstants
Definition: HGCalDDDConstants.h:27
hgc_digi
Definition: HGCDigitizerTypes.h:10
RPCNoise_example.check
check
Definition: RPCNoise_example.py:71
HGCalMouseBite::HGCalMouseBite
HGCalMouseBite(const HGCalDDDConstants &hgc, bool waferRotate=false)
Definition: HGCalMouseBite.cc:7
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
T
long double T
Definition: Basic3DVectorLD.h:48
HGCalDDDConstants.h
HGCalMouseBite::rejectCoarse_
std::vector< int > rejectCoarse_
Definition: HGCalMouseBite.h:29
HGCalMouseBite
Definition: HGCalMouseBite.h:13