Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:21:03

0001 #include "RecoParticleFlow/PFClusterProducer/interface/SeedFinderBase.h"
0002 
0003 #include <unordered_map>
0004 
0005 class PassThruSeedFinder : public SeedFinderBase {
0006 public:
0007   PassThruSeedFinder(const edm::ParameterSet& conf);
0008   PassThruSeedFinder(const PassThruSeedFinder&) = delete;
0009   PassThruSeedFinder& operator=(const PassThruSeedFinder&) = delete;
0010 
0011   void findSeeds(const edm::Handle<reco::PFRecHitCollection>& input,
0012                  const std::vector<bool>& mask,
0013                  std::vector<bool>& seedable) override;
0014 
0015 private:
0016 };
0017 
0018 DEFINE_EDM_PLUGIN(SeedFinderFactory, PassThruSeedFinder, "PassThruSeedFinder");
0019 
0020 PassThruSeedFinder::PassThruSeedFinder(const edm::ParameterSet& conf) : SeedFinderBase(conf) {}
0021 
0022 // the starting state of seedable is all false!
0023 void PassThruSeedFinder::findSeeds(const edm::Handle<reco::PFRecHitCollection>& input,
0024                                    const std::vector<bool>& mask,
0025                                    std::vector<bool>& seedable) {
0026   seedable = std::vector<bool>(input->size(), true);
0027 }