test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonConversionTrajectorySeedProducerFromSingleLeg.cc
Go to the documentation of this file.
5 
10 
13 //#include "UserUtilities/TimingPerformance/interface/TimeReport.h"
14 
16 public:
19  void produce(edm::Event& , const edm::EventSetup& ) override;
20 
21 private:
25 };
26 
27 
30  : _newSeedCandidates(conf.getParameter<std::string>( "newSeedCandidates")),
31  _xcheckSeedCandidates(conf.getParameter<std::string>( "xcheckSeedCandidates") ),
32  _DoxcheckSeedCandidates( conf.getParameter<bool>( "DoxcheckSeedCandidates") )
33 {
36  produces<TrajectorySeedCollection>(_newSeedCandidates);
38  produces<TrajectorySeedCollection>(_xcheckSeedCandidates);
39 }
40 
41 
43 {
44  //TimeMe myTest("PhotonConversionTrajectorySeedProducerFromSingleLeg::produce");
45 
46  //FIXME
47  //remove this
48  //edm::CPUTimer cpu_timer;
49  //cpu_timer.start();
50  //--------------------------------------
51 
52 
53  std::auto_ptr<TrajectorySeedCollection> result( new TrajectorySeedCollection() );
54  //try{
55  _theFinder->analyze(ev,es);
57  result->insert(result->end(),
60  //}catch(cms::Exception& er){
61  // edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " <<er.what()<<std::endl;
62  //}catch(std::exception& er){
63  // edm::LogError("SeedingConversion") << " Problem in the Single Leg Conversion Seed Producer " << er.what()<<std::endl;
64  //}
65 
66 
67  //edm::LogInfo("debugTrajSeedFromSingleLeg") << " TrajectorySeedCollection size " << result->size();
68  ev.put(result, _newSeedCandidates);
69 
70  //FIXME
71  //remove this
72  //cpu_timer.stop();
73  //std::cout << "cpu timer " << cpu_timer.realTime() << " " << cpu_timer.cpuTime() << std::endl;
74  //--------------------------------------
75 
76  //FIXME
77  //This is a check part that can be removed
78 
80  return;
81 
82 
83 
84  std::auto_ptr<TrajectorySeedCollection> resultCheck( new TrajectorySeedCollection() );
86  resultCheck->insert(resultCheck->end(),
89  ev.put(resultCheck , _xcheckSeedCandidates);
90 
91 }
92 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
bool ev
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
PhotonConversionTrajectorySeedProducerFromSingleLegAlgo * _theFinder