CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimCalorimetry/CastorSim/src/CastorHitFilter.h

Go to the documentation of this file.
00001 #ifndef CastorSim_CastorHitFilter_h
00002 #define CastorSim_CastorHitFilter_h
00003 
00004 #include "SimCalorimetry/CaloSimAlgos/interface/CaloVHitFilter.h"
00005 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
00006 #include "DataFormats/HcalDetId/interface/HcalCastorDetId.h"
00007 
00008 class CastorHitFilter : public CaloVHitFilter {
00009   virtual bool accepts(const PCaloHit & hit) const {
00010     DetId detId(hit.id());
00011     return (detId.det()==DetId::Calo && detId.subdetId()==HcalCastorDetId::SubdetectorId);
00012   }
00013 };
00014 
00015 #endif
00016