CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorHitFilter.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorHitFilter_h
2 #define CastorSim_CastorHitFilter_h
3 
7 
9  virtual bool accepts(const PCaloHit & hit) const {
10  DetId detId(hit.id());
11  return (detId.det()==DetId::Calo && detId.subdetId()==HcalCastorDetId::SubdetectorId);
12  }
13 };
14 
15 #endif
16 
unsigned int id() const
Definition: PCaloHit.h:40
static const int SubdetectorId
Definition: DetId.h:20
virtual bool accepts(const PCaloHit &hit) const