CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
cms::CkfDebugTrackCandidateMaker Class Reference

#include <CkfDebugTrackCandidateMaker.h>

Inheritance diagram for cms::CkfDebugTrackCandidateMaker:
edm::EDProducer cms::CkfTrackCandidateMakerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void beginRun (edm::Run const &run, edm::EventSetup const &es) override
 
 CkfDebugTrackCandidateMaker (const edm::ParameterSet &conf)
 
void endJob () override
 
void produce (edm::Event &e, const edm::EventSetup &es) override
 
- Public Member Functions inherited from edm::EDProducer
 EDProducer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDProducer () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 
- Public Member Functions inherited from cms::CkfTrackCandidateMakerBase
virtual void beginRunBase (edm::Run const &, edm::EventSetup const &es)
 
 CkfTrackCandidateMakerBase (const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
 
virtual void produceBase (edm::Event &e, const edm::EventSetup &es)
 
virtual ~CkfTrackCandidateMakerBase () noexcept(false)
 

Private Member Functions

void countSeedsDebugger () override
 
void deleteAssocDebugger () override
 
void deleteDebugger ()
 
void initDebugger (edm::EventSetup const &es)
 
TrajectorySeedCollection::const_iterator lastSeed (TrajectorySeedCollection const &theSeedColl) override
 
void printHitsDebugger (edm::Event &e) override
 

Private Attributes

CkfDebuggerdbg
 
const CkfDebugTrajectoryBuildermyTrajectoryBuilder
 

Additional Inherited Members

- Public Types inherited from edm::EDProducer
typedef EDProducer ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDProducer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Types inherited from cms::CkfTrackCandidateMakerBase
typedef edm::ContainerMask< edmNew::DetSetVector< Phase2TrackerCluster1D > > Phase2OTClusterMask
 
typedef edm::ContainerMask< edmNew::DetSetVector< SiPixelCluster > > PixelClusterMask
 
typedef edm::ContainerMask< edmNew::DetSetVector< SiStripCluster > > StripClusterMask
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
- Protected Attributes inherited from cms::CkfTrackCandidateMakerBase
bool cleanTrajectoryAfterInOut
 
bool doSeedingRegionRebuilding
 
edm::EDGetTokenT< Phase2OTClusterMaskmaskPhase2OTs_
 
edm::EDGetTokenT< PixelClusterMaskmaskPixels_
 
edm::EDGetTokenT< StripClusterMaskmaskStrips_
 
unsigned int maxSeedsBeforeCleaning_
 
bool phase2skipClusters_
 
bool produceSeedStopReasons_
 
bool reverseTrajectories
 
bool skipClusters_
 
edm::ESHandle< GeometricSearchTrackertheGeomSearchTracker
 
std::unique_ptr< TransientInitialStateEstimatortheInitialState
 
edm::ESHandle< MagneticFieldtheMagField
 
const std::string theMagFieldName
 
unsigned int theMaxNSeeds
 
edm::EDGetTokenT< MeasurementTrackerEventtheMTELabel
 
const NavigationSchooltheNavigationSchool
 
std::string theNavigationSchoolName
 
std::unique_ptr< RedundantSeedCleanertheSeedCleaner
 
edm::EDGetTokenT< edm::View< TrajectorySeed > > theSeedLabel
 
bool theTrackCandidateOutput
 
std::unique_ptr< BaseCkfTrajectoryBuildertheTrajectoryBuilder
 
const TrajectoryCleanertheTrajectoryCleaner
 
std::string theTrajectoryCleanerName
 
bool theTrajectoryOutput
 
bool useSplitting
 

Detailed Description

Definition at line 11 of file CkfDebugTrackCandidateMaker.h.

Constructor & Destructor Documentation

◆ CkfDebugTrackCandidateMaker()

cms::CkfDebugTrackCandidateMaker::CkfDebugTrackCandidateMaker ( const edm::ParameterSet conf)
inline

Definition at line 13 of file CkfDebugTrackCandidateMaker.h.

14  produces<TrackCandidateCollection>();
15  produces<SeedStopInfo>();
16  }

Member Function Documentation

◆ beginRun()

void cms::CkfDebugTrackCandidateMaker::beginRun ( edm::Run const &  run,
edm::EventSetup const &  es 
)
inlineoverridevirtual

Reimplemented from edm::EDProducer.

Definition at line 18 of file CkfDebugTrackCandidateMaker.h.

18  {
19  beginRunBase(run, es);
20  initDebugger(es);
21  }

References cms::CkfTrackCandidateMakerBase::beginRunBase(), initDebugger(), and writedatasetfile::run.

◆ countSeedsDebugger()

void cms::CkfDebugTrackCandidateMaker::countSeedsDebugger ( )
inlineoverrideprivatevirtual

Reimplemented from cms::CkfTrackCandidateMakerBase.

Definition at line 42 of file CkfDebugTrackCandidateMaker.h.

42 { dbg->countSeed(); };

References CkfDebugger::countSeed(), and dbg.

◆ deleteAssocDebugger()

void cms::CkfDebugTrackCandidateMaker::deleteAssocDebugger ( )
inlineoverrideprivatevirtual

Reimplemented from cms::CkfTrackCandidateMakerBase.

Definition at line 43 of file CkfDebugTrackCandidateMaker.h.

43 { dbg->deleteHitAssociator(); };

References dbg, and CkfDebugger::deleteHitAssociator().

◆ deleteDebugger()

void cms::CkfDebugTrackCandidateMaker::deleteDebugger ( )
inlineprivate

Definition at line 44 of file CkfDebugTrackCandidateMaker.h.

44 { delete dbg; };

References dbg.

◆ endJob()

void cms::CkfDebugTrackCandidateMaker::endJob ( void  )
inlineoverridevirtual

Reimplemented from edm::EDProducer.

Definition at line 24 of file CkfDebugTrackCandidateMaker.h.

24 { delete dbg; }

References dbg.

◆ initDebugger()

void cms::CkfDebugTrackCandidateMaker::initDebugger ( edm::EventSetup const &  es)
inlineprivate

Definition at line 31 of file CkfDebugTrackCandidateMaker.h.

31  {
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  };

References edm::EDConsumerBase::consumesCollector(), dbg, Exception, myTrajectoryBuilder, CkfDebugTrajectoryBuilder::setDebugger(), and cms::CkfTrackCandidateMakerBase::theTrajectoryBuilder.

Referenced by beginRun().

◆ lastSeed()

TrajectorySeedCollection::const_iterator cms::CkfDebugTrackCandidateMaker::lastSeed ( TrajectorySeedCollection const &  theSeedColl)
inlineoverrideprivatevirtual

Reimplemented from cms::CkfTrackCandidateMakerBase.

Definition at line 27 of file CkfDebugTrackCandidateMaker.h.

27  {
28  return theSeedColl.begin() + 1;
29  }

◆ printHitsDebugger()

void cms::CkfDebugTrackCandidateMaker::printHitsDebugger ( edm::Event e)
inlineoverrideprivatevirtual

◆ produce()

void cms::CkfDebugTrackCandidateMaker::produce ( edm::Event e,
const edm::EventSetup es 
)
inlineoverridevirtual

Member Data Documentation

◆ dbg

CkfDebugger* cms::CkfDebugTrackCandidateMaker::dbg
private

◆ myTrajectoryBuilder

const CkfDebugTrajectoryBuilder* cms::CkfDebugTrackCandidateMaker::myTrajectoryBuilder
private

Definition at line 46 of file CkfDebugTrackCandidateMaker.h.

Referenced by initDebugger().

cms::CkfTrackCandidateMakerBase::beginRunBase
virtual void beginRunBase(edm::Run const &, edm::EventSetup const &es)
Definition: CkfTrackCandidateMakerBase.cc:124
cms::CkfDebugTrackCandidateMaker::initDebugger
void initDebugger(edm::EventSetup const &es)
Definition: CkfDebugTrackCandidateMaker.h:31
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:71
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::theTrajectoryBuilder
std::unique_ptr< BaseCkfTrajectoryBuilder > theTrajectoryBuilder
Definition: CkfTrackCandidateMakerBase.h:55
CkfDebugTrajectoryBuilder::setDebugger
void setDebugger(CkfDebugger *dbg) const override
Definition: CkfDebugTrajectoryBuilder.h:16
CkfDebugger::countSeed
void countSeed()
Definition: CkfDebugger.h:51
CkfDebugger::deleteHitAssociator
void deleteHitAssociator()
Definition: CkfDebugger.h:65
writedatasetfile.run
run
Definition: writedatasetfile.py:27
cms::CkfTrackCandidateMakerBase::CkfTrackCandidateMakerBase
CkfTrackCandidateMakerBase(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
Definition: CkfTrackCandidateMakerBase.cc:60
Exception
Definition: hltDiff.cc:246
cms::CkfDebugTrackCandidateMaker::dbg
CkfDebugger * dbg
Definition: CkfDebugTrackCandidateMaker.h:44
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37