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