CMS 3D CMS Logo

ZDCHitFilter.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_ZDCHitFilter_h
2 #define HcalSimAlgos_ZDCHitFilter_h
3 
7 
8 class ZDCHitFilter : public CaloVHitFilter {
9  bool accepts(const PCaloHit & hit) const override {
10  DetId detId(hit.id());
11  return (detId.det()==DetId::Calo && detId.subdetId()==HcalZDCDetId::SubdetectorId);
12  }
13 };
14 
15 #endif
16 
bool accepts(const PCaloHit &hit) const override
Definition: ZDCHitFilter.h:9
unsigned int id() const
Definition: PCaloHit.h:37
Definition: DetId.h:18
static const int SubdetectorId
Definition: HcalZDCDetId.h:25