CMS 3D CMS Logo

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

Public Member Functions

 L1TMuonBarrelKalmanStubProducer (const edm::ParameterSet &)
 
 ~L1TMuonBarrelKalmanStubProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void beginStream (edm::StreamID) override
 
void endStream () override
 
void produce (edm::Event &, const edm::EventSetup &) override
 

Private Attributes

std::unique_ptr< L1TMuonBarrelKalmanStubProcessorproc_
 
edm::EDGetTokenT< L1MuDTChambPhContainersrcPhi_
 
edm::EDGetTokenT< L1MuDTChambThContainersrcTheta_
 

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

Definition at line 25 of file L1TMuonBarrelKalmanStubProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 54 of file L1TMuonBarrelKalmanStubProducer.cc.

54  :
55  srcPhi_(consumes<L1MuDTChambPhContainer>(iConfig.getParameter<edm::InputTag>("srcPhi"))),
56  srcTheta_(consumes<L1MuDTChambThContainer>(iConfig.getParameter<edm::InputTag>("srcTheta"))),
58 {
59  produces <L1MuKBMTCombinedStubCollection>();
60 }
T getParameter(std::string const &) const
edm::EDGetTokenT< L1MuDTChambPhContainer > srcPhi_
edm::EDGetTokenT< L1MuDTChambThContainer > srcTheta_
std::unique_ptr< L1TMuonBarrelKalmanStubProcessor > proc_
L1TMuonBarrelKalmanStubProducer::~L1TMuonBarrelKalmanStubProducer ( )
override

Definition at line 63 of file L1TMuonBarrelKalmanStubProducer.cc.

64 {
65 
66  // do anything here that needs to be done at destruction time
67  // (e.g. close files, deallocate resources etc.)
68 }

Member Function Documentation

void L1TMuonBarrelKalmanStubProducer::beginStream ( edm::StreamID  )
overrideprivate

Definition at line 92 of file L1TMuonBarrelKalmanStubProducer.cc.

93 {
94 }
void L1TMuonBarrelKalmanStubProducer::endStream ( )
overrideprivate

Definition at line 98 of file L1TMuonBarrelKalmanStubProducer.cc.

98  {
99 }
void L1TMuonBarrelKalmanStubProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 102 of file L1TMuonBarrelKalmanStubProducer.cc.

References edm::ConfigurationDescriptions::addDefault(), DEFINE_FWK_MODULE, and edm::ParameterSetDescription::setUnknown().

102  {
103  //The following says we do not know what parameters are allowed so do no validation
104  // Please change this to state exactly what you do use, even if it is no parameters
106  desc.setUnknown();
107  descriptions.addDefault(desc);
108 }
void addDefault(ParameterSetDescription const &psetDescription)
void L1TMuonBarrelKalmanStubProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 77 of file L1TMuonBarrelKalmanStubProducer.cc.

References edm::Event::getByToken(), proc_, edm::Handle< T >::product(), edm::Event::put(), srcPhi_, and srcTheta_.

78 {
79  using namespace edm;
81  iEvent.getByToken(srcPhi_,phiIn);
82 
84  iEvent.getByToken(srcTheta_,thetaIn);
85 
86  L1MuKBMTCombinedStubCollection stubs = proc_->makeStubs(phiIn.product(),thetaIn.product());
87  iEvent.put(std::make_unique<L1MuKBMTCombinedStubCollection>(stubs));
88 }
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:579
edm::EDGetTokenT< L1MuDTChambPhContainer > srcPhi_
edm::EDGetTokenT< L1MuDTChambThContainer > srcTheta_
std::unique_ptr< L1TMuonBarrelKalmanStubProcessor > proc_
T const * product() const
Definition: Handle.h:81
HLT enums.
std::vector< L1MuKBMTCombinedStub > L1MuKBMTCombinedStubCollection

Member Data Documentation

std::unique_ptr<L1TMuonBarrelKalmanStubProcessor> L1TMuonBarrelKalmanStubProducer::proc_
private

Definition at line 38 of file L1TMuonBarrelKalmanStubProducer.cc.

Referenced by produce().

edm::EDGetTokenT<L1MuDTChambPhContainer> L1TMuonBarrelKalmanStubProducer::srcPhi_
private

Definition at line 36 of file L1TMuonBarrelKalmanStubProducer.cc.

Referenced by produce().

edm::EDGetTokenT<L1MuDTChambThContainer> L1TMuonBarrelKalmanStubProducer::srcTheta_
private

Definition at line 37 of file L1TMuonBarrelKalmanStubProducer.cc.

Referenced by produce().