CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PreMixingMTDWorker Class Reference
Inheritance diagram for PreMixingMTDWorker:
PreMixingWorker

Public Member Functions

void addPileups (const PileUpEventPrincipal &, const edm::EventSetup &ES) override
 
void addSignals (const edm::Event &e, const edm::EventSetup &ES) override
 
void beginRun (const edm::Run &run, const edm::EventSetup &ES) override
 
void endRun () override
 
void initializeEvent (const edm::Event &e, const edm::EventSetup &ES) override
 
PreMixingMTDWorkeroperator= (const PreMixingMTDWorker &)=delete
 
 PreMixingMTDWorker (const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &&iC)
 
 PreMixingMTDWorker (const PreMixingMTDWorker &)=delete
 
void put (edm::Event &e, const edm::EventSetup &ES, std::vector< PileupSummaryInfo > const &ps, int bs) override
 
 ~PreMixingMTDWorker () override=default
 
- Public Member Functions inherited from PreMixingWorker
virtual void beginLuminosityBlock (edm::LuminosityBlock const &iLumi, edm::EventSetup const &iSetup)
 
virtual void finalizeBunchCrossing (edm::Event &iEvent, edm::EventSetup const &iSetup, int bunchCrossing)
 
virtual void initializeBunchCrossing (edm::Event const &iEvent, edm::EventSetup const &iSetup, int bunchCrossing)
 
 PreMixingWorker ()=default
 
virtual ~PreMixingWorker ()=default
 

Private Attributes

std::unique_ptr< MTDDigitizerBasedigitizer_
 
edm::InputTag pileInputTag_
 
edm::EDGetTokenT< PMTDSimAccumulatorsignalToken_
 

Detailed Description

Definition at line 19 of file PreMixingMTDWorker.cc.

Constructor & Destructor Documentation

◆ PreMixingMTDWorker() [1/2]

PreMixingMTDWorker::PreMixingMTDWorker ( const edm::ParameterSet ps,
edm::ProducesCollector  producesCollector,
edm::ConsumesCollector &&  iC 
)

Definition at line 42 of file PreMixingMTDWorker.cc.

46  pileInputTag_(ps.getParameter<edm::InputTag>("pileInputTag")),
48  ps.getParameter<std::string>("digitizerName"), ps, producesCollector, iC)) {}

◆ ~PreMixingMTDWorker()

PreMixingMTDWorker::~PreMixingMTDWorker ( )
overridedefault

◆ PreMixingMTDWorker() [2/2]

PreMixingMTDWorker::PreMixingMTDWorker ( const PreMixingMTDWorker )
delete

Member Function Documentation

◆ addPileups()

void PreMixingMTDWorker::addPileups ( const PileUpEventPrincipal pep,
const edm::EventSetup ES 
)
overridevirtual

◆ addSignals()

void PreMixingMTDWorker::addSignals ( const edm::Event e,
const edm::EventSetup ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 54 of file PreMixingMTDWorker.cc.

54  {
56  e.getByToken(signalToken_, handle);
57  digitizer_->accumulate(*handle);
58 }

References digitizer_, MillePedeFileConverter_cfg::e, patZpeak::handle, and signalToken_.

◆ beginRun()

void PreMixingMTDWorker::beginRun ( const edm::Run run,
const edm::EventSetup ES 
)
overridevirtual

Reimplemented from PreMixingWorker.

Definition at line 50 of file PreMixingMTDWorker.cc.

50 { digitizer_->beginRun(ES); }

References digitizer_.

◆ endRun()

void PreMixingMTDWorker::endRun ( )
overridevirtual

Reimplemented from PreMixingWorker.

Definition at line 52 of file PreMixingMTDWorker.cc.

52 { digitizer_->endRun(); }

References digitizer_.

◆ initializeEvent()

void PreMixingMTDWorker::initializeEvent ( const edm::Event e,
const edm::EventSetup ES 
)
inlineoverridevirtual

Implements PreMixingWorker.

Definition at line 29 of file PreMixingMTDWorker.cc.

29 {}

◆ operator=()

PreMixingMTDWorker& PreMixingMTDWorker::operator= ( const PreMixingMTDWorker )
delete

◆ put()

void PreMixingMTDWorker::put ( edm::Event e,
const edm::EventSetup ES,
std::vector< PileupSummaryInfo > const &  ps,
int  bs 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 66 of file PreMixingMTDWorker.cc.

69  {
71  digitizer_->finalizeEvent(e, ES, &rng->getEngine(e.streamID()));
72 }

References digitizer_, MillePedeFileConverter_cfg::e, and edm::RandomNumberGenerator::getEngine().

Member Data Documentation

◆ digitizer_

std::unique_ptr<MTDDigitizerBase> PreMixingMTDWorker::digitizer_
private

Definition at line 39 of file PreMixingMTDWorker.cc.

Referenced by addPileups(), addSignals(), beginRun(), endRun(), and put().

◆ pileInputTag_

edm::InputTag PreMixingMTDWorker::pileInputTag_
private

Definition at line 37 of file PreMixingMTDWorker.cc.

Referenced by addPileups().

◆ signalToken_

edm::EDGetTokenT<PMTDSimAccumulator> PreMixingMTDWorker::signalToken_
private

Definition at line 35 of file PreMixingMTDWorker.cc.

Referenced by addSignals().

edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
patZpeak.handle
handle
Definition: patZpeak.py:23
PMTDSimAccumulator
Definition: PMTDSimAccumulator.h:9
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition: beamerCreator.py:44
edm::Handle
Definition: AssociativeIterator.h:50
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PreMixingMTDWorker::digitizer_
std::unique_ptr< MTDDigitizerBase > digitizer_
Definition: PreMixingMTDWorker.cc:39
edm::Service< edm::RandomNumberGenerator >
PreMixingMTDWorker::signalToken_
edm::EDGetTokenT< PMTDSimAccumulator > signalToken_
Definition: PreMixingMTDWorker.cc:35
get
#define get
PreMixingMTDWorker::pileInputTag_
edm::InputTag pileInputTag_
Definition: PreMixingMTDWorker.cc:37
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
PileUpEventPrincipal::getByLabel
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
Definition: PileUpEventPrincipal.h:33
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37