CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
PixelTrackProducer Class Reference
Inheritance diagram for PixelTrackProducer:
edm::stream::EDProducer<>

Public Member Functions

 PixelTrackProducer (const edm::ParameterSet &cfg)
 
void produce (edm::Event &ev, const edm::EventSetup &es) override
 
 ~PixelTrackProducer () override=default
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
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
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

const edm::ESGetToken< TrackerTopology, TrackerTopologyRcdhtTopoToken_
 
PixelTrackReconstruction theReconstruction
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 

Detailed Description

Definition at line 36 of file PixelTrackProducer.cc.

Constructor & Destructor Documentation

◆ PixelTrackProducer()

PixelTrackProducer::PixelTrackProducer ( const edm::ParameterSet cfg)
inlineexplicit

Definition at line 38 of file PixelTrackProducer.cc.

39  : theReconstruction(cfg, consumesCollector()), htTopoToken_(esConsumes()) {
40  edm::LogInfo("PixelTrackProducer") << " construction...";
41  produces<TrackingRecHitCollection>();
42  produces<reco::TrackExtraCollection>();
43  // TrackCollection refers to TrackingRechit and TrackExtra
44  // collections, need to declare its production after them to work
45  // around a rare race condition in framework scheduling
46  produces<reco::TrackCollection>();
47  }
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > htTopoToken_
Log< level::Info, false > LogInfo
PixelTrackReconstruction theReconstruction

◆ ~PixelTrackProducer()

PixelTrackProducer::~PixelTrackProducer ( )
overridedefault

Member Function Documentation

◆ fillDescriptions()

static void PixelTrackProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 51 of file PixelTrackProducer.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, PixelTrackReconstruction::fillDescriptions(), and AlCaHLTBitMon_QueryRunRegistry::string.

51  {
53 
54  desc.add<std::string>("passLabel", "pixelTracks"); // What is this? It is not used anywhere in this code.
56 
57  descriptions.add("pixelTracks", desc);
58  }
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ParameterSetDescription &desc)

◆ produce()

void PixelTrackProducer::produce ( edm::Event ev,
const edm::EventSetup es 
)
inlineoverride

Definition at line 60 of file PixelTrackProducer.cc.

References makeMEIFBenchmarkPlots::ev, edm::EventSetup::getData(), LogDebug, storeTracks(), and tracks.

60  {
61  LogDebug("PixelTrackProducer, produce") << "event# :" << ev.id();
62 
65  auto htTopo = es.getData(htTopoToken_);
66 
67  // store tracks
68  storeTracks(ev, tracks, htTopo);
69  }
void storeTracks(Ev &ev, const TWH &tracksWithHits, const TrackerTopology &ttopo)
Definition: storeTracks.h:19
std::vector< TrackWithTTRHs > TracksWithTTRHs
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > htTopoToken_
bool getData(T &iHolder) const
Definition: EventSetup.h:122
void run(pixeltrackfitting::TracksWithTTRHs &tah, edm::Event &ev, const edm::EventSetup &es)
auto const & tracks
cannot be loose
PixelTrackReconstruction theReconstruction
#define LogDebug(id)

Member Data Documentation

◆ htTopoToken_

const edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> PixelTrackProducer::htTopoToken_
private

Definition at line 73 of file PixelTrackProducer.cc.

◆ theReconstruction

PixelTrackReconstruction PixelTrackProducer::theReconstruction
private

Definition at line 72 of file PixelTrackProducer.cc.