CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CosmicMuonProducer Class Reference

#include <CosmicMuonProducer.h>

Inheritance diagram for CosmicMuonProducer:
edm::stream::EDProducer<>

Public Member Functions

 CosmicMuonProducer (const edm::ParameterSet &)
 
void produce (edm::Event &, const edm::EventSetup &) override
 
 ~CosmicMuonProducer () override
 
- 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
 

Private Attributes

edm::EDGetTokenT< edm::View< TrajectorySeed > > theSeedCollectionToken
 
std::unique_ptr< MuonServiceProxytheService
 the event setup proxy, it takes care the services update More...
 
std::unique_ptr< MuonTrackFindertheTrackFinder
 

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

Description: CosmicMuonProducer for muons from cosmic rays

Implementation:

Original Author: Chang Liu Created: Tue Jun 13 02:46:17 CEST 2006

Definition at line 16 of file CosmicMuonProducer.h.

Constructor & Destructor Documentation

◆ CosmicMuonProducer()

CosmicMuonProducer::CosmicMuonProducer ( const edm::ParameterSet iConfig)
explicit

Definition at line 42 of file CosmicMuonProducer.cc.

References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

42  {
43  ParameterSet tbpar = iConfig.getParameter<ParameterSet>("TrajectoryBuilderParameters");
44 
46  consumes<edm::View<TrajectorySeed> >(iConfig.getParameter<std::string>("MuonSeedCollectionLabel"));
47 
48  // service parameters
49  ParameterSet serviceParameters = iConfig.getParameter<ParameterSet>("ServiceParameters");
50 
51  // TrackLoader parameters
52  ParameterSet trackLoaderParameters = iConfig.getParameter<ParameterSet>("TrackLoaderParameters");
53 
54  // the services
55 
56  edm::ConsumesCollector iC = consumesCollector();
57 
58  theService = std::make_unique<MuonServiceProxy>(serviceParameters, consumesCollector());
60  std::make_unique<MuonTrackFinder>(std::make_unique<CosmicMuonTrajectoryBuilder>(tbpar, theService.get(), iC),
61  std::make_unique<MuonTrackLoader>(trackLoaderParameters, iC, theService.get()),
62  iC);
63 
64  produces<reco::TrackCollection>();
65  produces<TrackingRecHitCollection>();
66  produces<reco::TrackExtraCollection>();
67  produces<std::vector<Trajectory> >();
68  produces<TrajTrackAssociationCollection>();
69 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::unique_ptr< MuonServiceProxy > theService
the event setup proxy, it takes care the services update
std::unique_ptr< MuonTrackFinder > theTrackFinder
edm::EDGetTokenT< edm::View< TrajectorySeed > > theSeedCollectionToken

◆ ~CosmicMuonProducer()

CosmicMuonProducer::~CosmicMuonProducer ( )
override

Definition at line 71 of file CosmicMuonProducer.cc.

71 {}

Member Function Documentation

◆ produce()

void CosmicMuonProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 74 of file CosmicMuonProducer.cc.

References iEvent, and HLT_2024v14_cff::seeds.

74  {
75  LogInfo("CosmicMuonProducer") << "Analyzing event number: " << iEvent.id();
76 
78  iEvent.getByToken(theSeedCollectionToken, seeds);
79 
80  // Update the services
81  theService->update(iSetup);
82  theTrackFinder->reconstruct(seeds, iEvent, iSetup);
83 }
std::unique_ptr< MuonServiceProxy > theService
the event setup proxy, it takes care the services update
std::unique_ptr< MuonTrackFinder > theTrackFinder
int iEvent
Definition: GenABIO.cc:224
Log< level::Info, false > LogInfo
edm::EDGetTokenT< edm::View< TrajectorySeed > > theSeedCollectionToken

Member Data Documentation

◆ theSeedCollectionToken

edm::EDGetTokenT<edm::View<TrajectorySeed> > CosmicMuonProducer::theSeedCollectionToken
private

Definition at line 29 of file CosmicMuonProducer.h.

◆ theService

std::unique_ptr<MuonServiceProxy> CosmicMuonProducer::theService
private

the event setup proxy, it takes care the services update

Definition at line 28 of file CosmicMuonProducer.h.

◆ theTrackFinder

std::unique_ptr<MuonTrackFinder> CosmicMuonProducer::theTrackFinder
private

Definition at line 25 of file CosmicMuonProducer.h.