CMS 3D CMS Logo

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

#include <EmbeddingBeamSpotOnlineProducer.h>

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

Public Member Functions

 EmbeddingBeamSpotOnlineProducer (const edm::ParameterSet &iConf)
 constructor More...
 
void produce (edm::Event &iEvent, const edm::EventSetup &iSetup) override
 produce a beam spot class More...
 
 ~EmbeddingBeamSpotOnlineProducer () override
 destructor More...
 
- 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::InputTag beamSpotInput_
 

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


class: EmbeddingBeamSpotOnlineProducer.h package: TauAnalysis/MCEmbeddingTools


Definition at line 11 of file EmbeddingBeamSpotOnlineProducer.h.

Constructor & Destructor Documentation

◆ EmbeddingBeamSpotOnlineProducer()

EmbeddingBeamSpotOnlineProducer::EmbeddingBeamSpotOnlineProducer ( const edm::ParameterSet iConf)
explicit

constructor

Definition at line 9 of file EmbeddingBeamSpotOnlineProducer.cc.

References edm::ParameterSet::getParameter().

9  {
10  beamSpotInput_ = iconf.getParameter<edm::InputTag>("src");
11  consumes<reco::BeamSpot>(beamSpotInput_);
12  produces<reco::BeamSpot>();
13 }

◆ ~EmbeddingBeamSpotOnlineProducer()

EmbeddingBeamSpotOnlineProducer::~EmbeddingBeamSpotOnlineProducer ( )
override

destructor

Definition at line 15 of file EmbeddingBeamSpotOnlineProducer.cc.

15 {}

Member Function Documentation

◆ produce()

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

produce a beam spot class

Definition at line 17 of file EmbeddingBeamSpotOnlineProducer.cc.

References iEvent, eostools::move(), and mps_fire::result.

17  {
18  // copy beam spot from input data into HLT simulation sequence
20  iEvent.getByLabel(beamSpotInput_, beamSpotH);
21  auto result = std::make_unique<reco::BeamSpot>();
22  *result = *beamSpotH;
23  iEvent.put(std::move(result));
24 }
int iEvent
Definition: GenABIO.cc:224
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ beamSpotInput_

edm::InputTag EmbeddingBeamSpotOnlineProducer::beamSpotInput_
private

Definition at line 22 of file EmbeddingBeamSpotOnlineProducer.h.