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());
33  myTrajectoryBuilder = dynamic_cast<const CkfDebugTrajectoryBuilder*>(theTrajectoryBuilder.get());
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
cms::CkfTrackCandidateMakerBase::beginRunBase
virtual void beginRunBase(edm::Run const &, edm::EventSetup const &es)
Definition: CkfTrackCandidateMakerBase.cc:124
CkfTrackCandidateMakerBase.h
TrajectorySeedCollection
std::vector< TrajectorySeed > TrajectorySeedCollection
Definition: TrajectorySeedCollection.h:6
EDProducer.h
cms::CkfDebugTrackCandidateMaker::produce
void produce(edm::Event &e, const edm::EventSetup &es) override
Definition: CkfDebugTrackCandidateMaker.h:23
cms::CkfDebugTrackCandidateMaker::initDebugger
void initDebugger(edm::EventSetup const &es)
Definition: CkfDebugTrackCandidateMaker.h:31
edm::Run
Definition: Run.h:45
cms::CkfDebugTrackCandidateMaker::deleteAssocDebugger
void deleteAssocDebugger() override
Definition: CkfDebugTrackCandidateMaker.h:43
CkfDebugger
Definition: CkfDebugger.h:43
cms::CkfDebugTrackCandidateMaker::myTrajectoryBuilder
const CkfDebugTrajectoryBuilder * myTrajectoryBuilder
Definition: CkfDebugTrackCandidateMaker.h:46
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:46
cms::CkfDebugTrackCandidateMaker
Definition: CkfDebugTrackCandidateMaker.h:11
CkfDebugger::printSimHits
void printSimHits(const edm::Event &iEvent)
Definition: CkfDebugger.cc:162
cms::CkfTrackCandidateMakerBase::produceBase
virtual void produceBase(edm::Event &e, const edm::EventSetup &es)
Definition: CkfTrackCandidateMakerBase.cc:145
cms::CkfTrackCandidateMakerBase
Definition: CkfTrackCandidateMakerBase.h:34
CkfDebugTrajectoryBuilder.h
cms::CkfTrackCandidateMakerBase::theTrajectoryBuilder
std::unique_ptr< BaseCkfTrajectoryBuilder > theTrajectoryBuilder
Definition: CkfTrackCandidateMakerBase.h:55
CkfDebugTrajectoryBuilder::setDebugger
void setDebugger(CkfDebugger *dbg) const override
Definition: CkfDebugTrajectoryBuilder.h:16
cms::CkfDebugTrackCandidateMaker::deleteDebugger
void deleteDebugger()
Definition: CkfDebugTrackCandidateMaker.h:44
cms::CkfDebugTrackCandidateMaker::printHitsDebugger
void printHitsDebugger(edm::Event &e) override
Definition: CkfDebugTrackCandidateMaker.h:41
cms::CkfDebugTrackCandidateMaker::countSeedsDebugger
void countSeedsDebugger() override
Definition: CkfDebugTrackCandidateMaker.h:42
CkfDebugger::countSeed
void countSeed()
Definition: CkfDebugger.h:51
cms::CkfDebugTrackCandidateMaker::lastSeed
TrajectorySeedCollection::const_iterator lastSeed(TrajectorySeedCollection const &theSeedColl) override
Definition: CkfDebugTrackCandidateMaker.h:27
CkfDebugger::deleteHitAssociator
void deleteHitAssociator()
Definition: CkfDebugger.h:65
edm::ParameterSet
Definition: ParameterSet.h:47
cms::CkfDebugTrackCandidateMaker::beginRun
void beginRun(edm::Run const &run, edm::EventSetup const &es) override
Definition: CkfDebugTrackCandidateMaker.h:18
edm::EventSetup
Definition: EventSetup.h:57
cms::CkfDebugTrackCandidateMaker::endJob
void endJob() override
Definition: CkfDebugTrackCandidateMaker.h:24
cms::CkfDebugTrackCandidateMaker::CkfDebugTrackCandidateMaker
CkfDebugTrackCandidateMaker(const edm::ParameterSet &conf)
Definition: CkfDebugTrackCandidateMaker.h:13
writedatasetfile.run
run
Definition: writedatasetfile.py:27
SeedStopInfo.h
Exception
Definition: hltDiff.cc:246
cms::CkfDebugTrackCandidateMaker::dbg
CkfDebugger * dbg
Definition: CkfDebugTrackCandidateMaker.h:44
edm::EDProducer
Definition: EDProducer.h:35
edm::Event
Definition: Event.h:73
CkfDebugTrajectoryBuilder
Definition: CkfDebugTrajectoryBuilder.h:9
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37