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::one::EDProducer< edm::one::WatchRuns > cms::CkfTrackCandidateMakerBase edm::one::EDProducerBase 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 endRun (edm::Run const &, edm::EventSetup const &) override
 
void produce (edm::Event &e, const edm::EventSetup &es) override
 
- Public Member Functions inherited from edm::one::EDProducer< edm::one::WatchRuns >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const noexcept
 
bool wantsStreamRuns () const noexcept
 
 ~EDProducerBase () 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices 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

std::unique_ptr< CkfDebuggerdbg
 
const CkfDebugTrajectoryBuildermyTrajectoryBuilder
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
template<typename T >
using BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T >
 
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::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from cms::CkfTrackCandidateMakerBase
static void fillPSetDescription (edm::ParameterSetDescription &desc)
 
- 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<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
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)
 
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 ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 
- Protected Attributes inherited from cms::CkfTrackCandidateMakerBase
bool cleanTrajectoryAfterInOut
 
edm::InputTag const clustersToSkipTag_
 
bool doSeedingRegionRebuilding
 
edm::EDGetTokenT< Phase2OTClusterMaskmaskPhase2OTs_
 
edm::EDGetTokenT< PixelClusterMaskmaskPixels_
 
edm::EDGetTokenT< StripClusterMaskmaskStrips_
 
unsigned int maxSeedsBeforeCleaning_
 
edm::InputTag const phase2ClustersToSkipTag_
 
bool produceSeedStopReasons_
 
bool reverseTrajectories
 
bool const skipClusters_
 
bool const skipPhase2Clusters_
 
std::unique_ptr< TransientInitialStateEstimatortheInitialState
 
unsigned int theMaxNSeeds
 
edm::EDGetTokenT< MeasurementTrackerEventtheMTELabel
 
const NavigationSchooltheNavigationSchool
 
edm::ESGetToken< NavigationSchool, NavigationSchoolRecordtheNavigationSchoolToken
 
edm::ESGetToken< Propagator, TrackingComponentsRecordthePropagatorToken
 
std::unique_ptr< RedundantSeedCleanertheSeedCleaner
 
edm::EDGetTokenT< edm::View< TrajectorySeed > > theSeedLabel
 
bool theTrackCandidateOutput
 
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordtheTrackerToken
 
std::unique_ptr< BaseCkfTrajectoryBuildertheTrajectoryBuilder
 
const TrajectoryCleanertheTrajectoryCleaner
 
edm::ESGetToken< TrajectoryCleaner, TrajectoryCleaner::RecordtheTrajectoryCleanerToken
 
bool theTrajectoryOutput
 
bool useSplitting
 

Detailed Description

Definition at line 13 of file CkfDebugTrackCandidateMaker.h.

Constructor & Destructor Documentation

◆ CkfDebugTrackCandidateMaker()

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

Definition at line 16 of file CkfDebugTrackCandidateMaker.h.

References edm::EDConsumerBase::consumesCollector(), and dbg.

17  produces<TrackCandidateCollection>();
18  produces<SeedStopInfo>();
19  dbg = std::make_unique<CkfDebugger>(consumesCollector());
20  }
CkfTrackCandidateMakerBase(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< CkfDebugger > dbg

Member Function Documentation

◆ beginRun()

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

Definition at line 22 of file CkfDebugTrackCandidateMaker.h.

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

22  {
23  beginRunBase(run, es);
24  initDebugger(es);
25  }
void initDebugger(edm::EventSetup const &es)
virtual void beginRunBase(edm::Run const &, edm::EventSetup const &es)

◆ countSeedsDebugger()

void cms::CkfDebugTrackCandidateMaker::countSeedsDebugger ( )
inlineoverrideprivatevirtual

Reimplemented from cms::CkfTrackCandidateMakerBase.

Definition at line 46 of file CkfDebugTrackCandidateMaker.h.

References dbg.

46 { dbg->countSeed(); };
std::unique_ptr< CkfDebugger > dbg

◆ deleteAssocDebugger()

void cms::CkfDebugTrackCandidateMaker::deleteAssocDebugger ( )
inlineoverrideprivatevirtual

Reimplemented from cms::CkfTrackCandidateMakerBase.

Definition at line 47 of file CkfDebugTrackCandidateMaker.h.

References dbg.

47 { dbg->deleteHitAssociator(); };
std::unique_ptr< CkfDebugger > dbg

◆ deleteDebugger()

void cms::CkfDebugTrackCandidateMaker::deleteDebugger ( )
inlineprivate

Definition at line 48 of file CkfDebugTrackCandidateMaker.h.

References dbg.

48 { dbg.reset(); };
std::unique_ptr< CkfDebugger > dbg

◆ endRun()

void cms::CkfDebugTrackCandidateMaker::endRun ( edm::Run const &  ,
edm::EventSetup const &   
)
inlineoverride

Definition at line 26 of file CkfDebugTrackCandidateMaker.h.

26 {}

◆ initDebugger()

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

Definition at line 35 of file CkfDebugTrackCandidateMaker.h.

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

Referenced by beginRun().

35  {
36  dbg->setConditions(es);
40  else
41  throw cms::Exception("CkfDebugger") << "please use CkfDebugTrajectoryBuilder";
42  //theTrajectoryBuilder->setDebugger( dbg);
43  };
const CkfDebugTrajectoryBuilder * myTrajectoryBuilder
std::unique_ptr< BaseCkfTrajectoryBuilder > theTrajectoryBuilder
void setDebugger(CkfDebugger *dbg) const override
std::unique_ptr< CkfDebugger > dbg

◆ lastSeed()

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

Reimplemented from cms::CkfTrackCandidateMakerBase.

Definition at line 31 of file CkfDebugTrackCandidateMaker.h.

31  {
32  return theSeedColl.begin() + 1;
33  }

◆ printHitsDebugger()

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

Reimplemented from cms::CkfTrackCandidateMakerBase.

Definition at line 45 of file CkfDebugTrackCandidateMaker.h.

References dbg, and MillePedeFileConverter_cfg::e.

◆ produce()

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

Member Data Documentation

◆ dbg

std::unique_ptr<CkfDebugger> cms::CkfDebugTrackCandidateMaker::dbg
private

◆ myTrajectoryBuilder

const CkfDebugTrajectoryBuilder* cms::CkfDebugTrackCandidateMaker::myTrajectoryBuilder
private

Definition at line 50 of file CkfDebugTrackCandidateMaker.h.

Referenced by initDebugger().