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 
10 
13 
14 
16 public:
19  void beginRun(edm::Run const&run, const edm::EventSetup& es) override;
20  void endRun(edm::Run const&run, const edm::EventSetup& es) override;
21  void produce(edm::Event& , const edm::EventSetup& ) override;
22 
23 private:
27 };
28 
29 
32  : _conf(conf),
33  _newSeedCandidates(conf.getParameter<std::string>( "newSeedCandidates"))
34 {
37  produces<TrajectorySeedCollection>(_newSeedCandidates);
38 
39 }
40 
41 
43 endRun(edm::Run const&run, const edm::EventSetup& es) {
44  _theFinder->clear();
45 }
46 
49 {
50  _theFinder->init();
51 }
52 
53 
55 {
56  std::auto_ptr<TrajectorySeedCollection> result( new TrajectorySeedCollection() );
57  try{
58  _theFinder->analyze(ev,es);
60  result->insert(result->end(),
63  }catch(cms::Exception& er){
64  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " <<er.what()<<std::endl;
65  }catch(std::exception& er){
66  edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()<<std::endl;
67  }
68 
69 
70  edm::LogInfo("debugTrajSeedFromQuadruplets") << " TrajectorySeedCollection size " << result->size();
71  ev.put(result, _newSeedCandidates);
72 }
73 
virtual char const * what() const
Definition: Exception.cc:141
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void endRun(edm::Run const &run, const edm::EventSetup &es) override
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:116
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
tuple result
Definition: query.py:137
tuple conf
Definition: dbtoconf.py:185
void beginRun(edm::Run const &run, const edm::EventSetup &es) override
Definition: Run.h:41