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  TrajectorySeedCollection::const_iterator lastSeed(TrajectorySeedCollection const& theSeedColl) override {
28  return theSeedColl.begin() + 1;
29  }
30 
31  void initDebugger(edm::EventSetup const& es) {
32  dbg = new CkfDebugger(es, consumesCollector());
36  else
37  throw cms::Exception("CkfDebugger") << "please use CkfDebugTrajectoryBuilder";
38  //theTrajectoryBuilder->setDebugger( dbg);
39  };
40 
41  void printHitsDebugger(edm::Event& e) override { dbg->printSimHits(e); };
42  void countSeedsDebugger() override { dbg->countSeed(); };
43  void deleteAssocDebugger() override { dbg->deleteHitAssociator(); };
44  void deleteDebugger() { delete dbg; };
47  };
48 } // namespace cms
49 
50 #endif
void printSimHits(const edm::Event &iEvent)
Definition: CkfDebugger.cc:166
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
TrajectorySeedCollection::const_iterator lastSeed(TrajectorySeedCollection const &theSeedColl) override
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
void setDebugger(CkfDebugger *dbg) const 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)
Definition: Run.h:45