CMS 3D CMS Logo

PhotonConversionTrajectorySeedProducerFromQuadruplets.cc
Go to the documentation of this file.
5 
9 
12 
14 public:
17  void produce(edm::Event&, const edm::EventSetup&) override;
18 
19 private:
21  std::unique_ptr<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo> _theFinder;
22 };
23 
25  const edm::ParameterSet& conf)
26  : _newSeedCandidates(conf.getParameter<std::string>("newSeedCandidates")) {
27  _theFinder = std::make_unique<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo>(conf, consumesCollector());
28  produces<TrajectorySeedCollection>(_newSeedCandidates);
29 }
30 
32  auto result = std::make_unique<TrajectorySeedCollection>();
33  try {
34  _theFinder->analyze(ev, es);
35  if (!_theFinder->getTrajectorySeedCollection()->empty())
36  result->insert(result->end(),
37  _theFinder->getTrajectorySeedCollection()->begin(),
38  _theFinder->getTrajectorySeedCollection()->end());
39  } catch (cms::Exception& er) {
40  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()
41  << std::endl;
42  } catch (std::exception& er) {
43  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()
44  << std::endl;
45  }
46 
47  edm::LogInfo("debugTrajSeedFromQuadruplets") << " TrajectorySeedCollection size " << result->size();
49 }
50 
Log< level::Error, false > LogError
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Log< level::Info, false > LogInfo
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder
char const * what() const noexcept override
Definition: Exception.cc:103
def move(src, dest)
Definition: eostools.py:511