CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
TrackerTopologyRcd
htTopoToken_
 
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 ( 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<reco::TrackCollection>();
42  produces<TrackingRecHitCollection>();
43  produces<reco::TrackExtraCollection>();
44  }
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > htTopoToken_
Log< level::Info, false > LogInfo
PixelTrackReconstruction theReconstruction
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
PixelTrackProducer::~PixelTrackProducer ( )
overridedefault

Member Function Documentation

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

Definition at line 48 of file PixelTrackProducer.cc.

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

48  {
50 
51  desc.add<std::string>("passLabel", "pixelTracks"); // What is this? It is not used anywhere in this code.
53 
54  descriptions.add("pixelTracks", desc);
55  }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ParameterSetDescription &desc)
void PixelTrackProducer::produce ( edm::Event ev,
const edm::EventSetup es 
)
inlineoverride

Definition at line 57 of file PixelTrackProducer.cc.

References edm::EventSetup::getData(), edm::EventBase::id(), LogDebug, storeTracks(), and tracks.

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

Member Data Documentation

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

Definition at line 70 of file PixelTrackProducer.cc.

PixelTrackReconstruction PixelTrackProducer::theReconstruction
private

Definition at line 69 of file PixelTrackProducer.cc.