Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:39

0001 #ifndef HcalSimAlgos_ZDCHitFilter_h
0002 #define HcalSimAlgos_ZDCHitFilter_h
0003 
0004 #include "SimCalorimetry/CaloSimAlgos/interface/CaloVHitFilter.h"
0005 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
0006 #include "DataFormats/HcalDetId/interface/HcalZDCDetId.h"
0007 
0008 class ZDCHitFilter : public CaloVHitFilter {
0009   bool accepts(const PCaloHit& hit) const override {
0010     DetId detId(hit.id());
0011     return (detId.det() == DetId::Calo && detId.subdetId() == HcalZDCDetId::SubdetectorId);
0012   }
0013 };
0014 
0015 #endif