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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

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<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache 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 43 of file CosmicMuonProducer.cc.

43  {
44  ParameterSet tbpar = iConfig.getParameter<ParameterSet>("TrajectoryBuilderParameters");
45 
47  consumes<edm::View<TrajectorySeed> >(iConfig.getParameter<std::string>("MuonSeedCollectionLabel"));
48 
49  // service parameters
50  ParameterSet serviceParameters = iConfig.getParameter<ParameterSet>("ServiceParameters");
51 
52  // TrackLoader parameters
53  ParameterSet trackLoaderParameters = iConfig.getParameter<ParameterSet>("TrackLoaderParameters");
54 
55  // the services
56 
57  edm::ConsumesCollector iC = consumesCollector();
58 
59  theService = std::make_unique<MuonServiceProxy>(serviceParameters, consumesCollector());
61  std::make_unique<MuonTrackFinder>(std::make_unique<CosmicMuonTrajectoryBuilder>(tbpar, theService.get(), iC),
62  std::make_unique<MuonTrackLoader>(trackLoaderParameters, iC, theService.get()));
63 
64  produces<reco::TrackCollection>();
65  produces<TrackingRecHitCollection>();
66  produces<reco::TrackExtraCollection>();
67  produces<std::vector<Trajectory> >();
68  produces<TrajTrackAssociationCollection>();
69 }

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

◆ ~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.

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 }

References iEvent, and InitialStep_cff::seeds.

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.

CosmicMuonProducer::theSeedCollectionToken
edm::EDGetTokenT< edm::View< TrajectorySeed > > theSeedCollectionToken
Definition: CosmicMuonProducer.h:29
edm::LogInfo
Definition: MessageLogger.h:254
edm::Handle
Definition: AssociativeIterator.h:50
CosmicMuonProducer::theService
std::unique_ptr< MuonServiceProxy > theService
the event setup proxy, it takes care the services update
Definition: CosmicMuonProducer.h:28
CosmicMuonProducer::theTrackFinder
std::unique_ptr< MuonTrackFinder > theTrackFinder
Definition: CosmicMuonProducer.h:25
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InitialStep_cff.seeds
seeds
Definition: InitialStep_cff.py:232
edm::ParameterSet
Definition: ParameterSet.h:36
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ConsumesCollector
Definition: ConsumesCollector.h:39