CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/SimCalorimetry/HcalSimAlgos/interface/HOHitFilter.h

Go to the documentation of this file.
00001 #ifndef HcalSimAlgos_HOHitFilter_h
00002 #define HcalSimAlgos_HOHitFilter_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 HOHitFilter : public CaloVHitFilter {
00011   virtual bool accepts(const PCaloHit & hit) const {
00012     HcalDetId hcalDetId(hit.id());
00013     return (hcalDetId.subdet() == HcalOuter);
00014   }
00015 };
00016 
00017 #endif
00018