test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CkfDebugTrackCandidateMaker.h
Go to the documentation of this file.
1 
2 #ifndef CkfDebugTrackCandidateMaker_h
3 #define CkfDebugTrackCandidateMaker_h
4 
8 
9 namespace cms {
11  public:
13  produces<TrackCandidateCollection>();
14  }
15 
16  virtual void beginRun (edm::Run const & run, edm::EventSetup const & es) override {
17  beginRunBase(run,es);
18  initDebugger(es);
19  }
20 
21  virtual void produce(edm::Event& e, const edm::EventSetup& es) override {produceBase(e,es);}
22  virtual void endJob() {delete dbg; }
23 
24  private:
25  virtual TrajectorySeedCollection::const_iterator
26  lastSeed(TrajectorySeedCollection& theSeedColl){return theSeedColl.begin()+1;}
27 
28  void initDebugger(edm::EventSetup const & es){
29  dbg = new CkfDebugger(es, consumesCollector());
32  else throw cms::Exception("CkfDebugger") << "please use CkfDebugTrajectoryBuilder";
33  //theTrajectoryBuilder->setDebugger( dbg);
34  };
35 
39  void deleteDebugger(){delete dbg;};
40  CkfDebugger * dbg;
42  };
43 }
44 
45 #endif
void printSimHits(const edm::Event &iEvent)
Definition: CkfDebugger.cc:156
const CkfDebugTrajectoryBuilder * myTrajectoryBuilder
void initDebugger(edm::EventSetup const &es)
virtual void produce(edm::Event &e, const edm::EventSetup &es) override
void deleteHitAssociator()
Definition: CkfDebugger.h:65
void countSeed()
Definition: CkfDebugger.h:51
virtual TrajectorySeedCollection::const_iterator lastSeed(TrajectorySeedCollection &theSeedColl)
std::vector< TrajectorySeed > TrajectorySeedCollection
virtual void produceBase(edm::Event &e, const edm::EventSetup &es)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< BaseCkfTrajectoryBuilder > theTrajectoryBuilder
tuple conf
Definition: dbtoconf.py:185
virtual void beginRun(edm::Run const &run, edm::EventSetup const &es) override
virtual void beginRunBase(edm::Run const &, edm::EventSetup const &es)
CkfDebugTrackCandidateMaker(const edm::ParameterSet &conf)
Definition: Run.h:43
virtual void setDebugger(CkfDebugger *dbg) const