Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-27 23:38:24

0001 #ifndef ClusterMTCCFilter_H
0002 #define ClusterMTCCFilter_H
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:     SiStripChannelChargeFilter
0007 // Class  :     ClusterMTCCFilter
0008 //
0009 //
0010 // Original Author:  dkcira
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 #include "Geometry/Records/interface/IdealGeometryRecord.h"
0019 
0020 class TrackerTopology;
0021 namespace cms {
0022   class ClusterMTCCFilter : public edm::stream::EDFilter<> {
0023   public:
0024     ClusterMTCCFilter(const edm::ParameterSet& ps);
0025     ~ClusterMTCCFilter() override = default;
0026     bool filter(edm::Event& e, edm::EventSetup const& c) override;
0027 
0028   private:
0029     std::string clusterProducer;
0030     unsigned int ChargeThresholdTIB;
0031     unsigned int ChargeThresholdTOB;
0032     unsigned int ChargeThresholdTEC;
0033     unsigned int MinClustersDiffComponents;
0034     std::vector<uint32_t> ModulesToBeExcluded;
0035     // unsigned int: generalized_layer: 10*subdetId + layer
0036     std::map<unsigned int, std::vector<SiStripCluster> > clusters_in_subcomponents;
0037     edm::ESGetToken<TrackerTopology, IdealGeometryRecord> tTopoToken_;
0038   };
0039 }  // namespace cms
0040 #endif