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