CMS 3D CMS Logo

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