CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HBHEHitFilter.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HBHEHitFilter_h
2 #define HcalSimAlgos_HBHEHitFilter_h
3 
7 
8 
9 
10 class HBHEHitFilter : public CaloVHitFilter {
11  virtual bool accepts(const PCaloHit & hit) const {
12  HcalDetId hcalDetId(hit.id());
13  return (hcalDetId.subdet() == HcalBarrel || hcalDetId.subdet() == HcalEndcap);
14  }
15 };
16 
17 #endif
18 
virtual bool accepts(const PCaloHit &hit) const
Definition: HBHEHitFilter.h:11
unsigned int id() const
Definition: PCaloHit.h:43