Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:21

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