CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonConversionTrajectorySeedProducerFromQuadruplets.cc
Go to the documentation of this file.
5 
11 
14 
15 
17 public:
20  void produce(edm::Event& , const edm::EventSetup& ) override;
21 
22 private:
24  std::unique_ptr<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo> _theFinder;
25 };
26 
27 
30  : _newSeedCandidates(conf.getParameter<std::string>( "newSeedCandidates"))
31 {
32  _theFinder = std::make_unique<PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo>(conf,
34  produces<TrajectorySeedCollection>(_newSeedCandidates);
35 
36 }
37 
39 {
40  std::auto_ptr<TrajectorySeedCollection> result( new TrajectorySeedCollection() );
41  try{
42  _theFinder->analyze(ev,es);
43  if(_theFinder->getTrajectorySeedCollection()->size())
44  result->insert(result->end(),
45  _theFinder->getTrajectorySeedCollection()->begin(),
46  _theFinder->getTrajectorySeedCollection()->end());
47  }catch(cms::Exception& er){
48  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " <<er.what()<<std::endl;
49  }catch(std::exception& er){
50  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()<<std::endl;
51  }
52 
53 
54  edm::LogInfo("debugTrajSeedFromQuadruplets") << " TrajectorySeedCollection size " << result->size();
55  ev.put(result, _newSeedCandidates);
56 }
57 
virtual char const * what() const
Definition: Exception.cc:141
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool ev
tuple result
Definition: mps_fire.py:83
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:121
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo > _theFinder