Go to the documentation of this file.00001 #ifndef HcalSimAlgos_HBHEHitFilter_h
00002 #define HcalSimAlgos_HBHEHitFilter_h
00003
00004 #include "SimCalorimetry/CaloSimAlgos/interface/CaloVHitFilter.h"
00005 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
00006 #include "DataFormats/HcalDetId/interface/HcalDetId.h"
00007
00008
00009
00010 class HBHEHitFilter : public CaloVHitFilter {
00011 virtual bool accepts(const PCaloHit & hit) const {
00012 HcalDetId hcalDetId(hit.id());
00013 return (hcalDetId.subdet() == HcalBarrel || hcalDetId.subdet() == HcalEndcap);
00014 }
00015 };
00016
00017 #endif
00018