File indexing completed on 2024-04-06 12:11:01
0001 #ifndef TECClusterFilter_H
0002 #define TECClusterFilter_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "FWCore/Framework/interface/stream/EDFilter.h"
0013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0014 #include "FWCore/Framework/interface/Event.h"
0015 #include "FWCore/Framework/interface/EventSetup.h"
0016 #include "DataFormats/SiStripCluster/interface/SiStripCluster.h"
0017 #include "DataFormats/DetId/interface/DetId.h"
0018
0019 namespace cms {
0020 class TECClusterFilter : public edm::stream::EDFilter<> {
0021 public:
0022 TECClusterFilter(const edm::ParameterSet& ps);
0023 ~TECClusterFilter() override = default;
0024 bool filter(edm::Event& e, edm::EventSetup const& c) override;
0025
0026 private:
0027 std::string clusterProducer;
0028 unsigned int ChargeThresholdTEC;
0029 unsigned int minNrOfTECClusters;
0030 std::vector<uint32_t> ModulesToBeExcluded;
0031 };
0032 }
0033 #endif