CMS 3D CMS Logo

CkfDebugTrackCandidateMaker.h
Go to the documentation of this file.
1 
2 #ifndef CkfDebugTrackCandidateMaker_h
3 #define CkfDebugTrackCandidateMaker_h
4 
9 
10 namespace cms {
12  public:
14  produces<TrackCandidateCollection>();
15  produces<SeedStopInfo>();
16  }
17 
18  void beginRun (edm::Run const & run, edm::EventSetup const & es) override {
19  beginRunBase(run,es);
20  initDebugger(es);
21  }
22 
23  void produce(edm::Event& e, const edm::EventSetup& es) override {produceBase(e,es);}
24  void endJob() override {delete dbg; }
25 
26  private:
27  virtual TrajectorySeedCollection::const_iterator
28  lastSeed(TrajectorySeedCollection const& theSeedColl) override {return theSeedColl.begin()+1;}
29 
30  void initDebugger(edm::EventSetup const & es){
31  dbg = new CkfDebugger(es, consumesCollector());
34  else throw cms::Exception("CkfDebugger") << "please use CkfDebugTrajectoryBuilder";
35  //theTrajectoryBuilder->setDebugger( dbg);
36  };
37 
39  void countSeedsDebugger() override{dbg->countSeed();};
41  void deleteDebugger(){delete dbg;};
42  CkfDebugger * dbg;
44  };
45 }
46 
47 #endif
void printSimHits(const edm::Event &iEvent)
Definition: CkfDebugger.cc:156
const CkfDebugTrajectoryBuilder * myTrajectoryBuilder
void initDebugger(edm::EventSetup const &es)
void produce(edm::Event &e, const edm::EventSetup &es) override
void deleteHitAssociator()
Definition: CkfDebugger.h:65
void countSeed()
Definition: CkfDebugger.h:51
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.
void printHitsDebugger(edm::Event &e) override
std::unique_ptr< BaseCkfTrajectoryBuilder > theTrajectoryBuilder
virtual TrajectorySeedCollection::const_iterator lastSeed(TrajectorySeedCollection const &theSeedColl) override
Namespace of DDCMS conversion namespace.
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)
void setDebugger(CkfDebugger *dbg) const override
Definition: Run.h:45