CMS 3D CMS Logo

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

Public Member Functions

void addPileups (PileUpEventPrincipal const &pep, edm::EventSetup const &es) override
 
void addSignals (edm::Event const &e, edm::EventSetup const &ES) override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void initializeEvent (edm::Event const &e, edm::EventSetup const &ES) override
 
PreMixingEcalWorkeroperator= (const PreMixingEcalWorker &)=delete
 
 PreMixingEcalWorker (const edm::ParameterSet &ps, edm::ProducesCollector, edm::ConsumesCollector &&iC)
 
 PreMixingEcalWorker (const PreMixingEcalWorker &)=delete
 
void put (edm::Event &e, edm::EventSetup const &iSetup, std::vector< PileupSummaryInfo > const &ps, int bs) override
 
 ~PreMixingEcalWorker () override=default
 
- Public Member Functions inherited from PreMixingWorker
virtual void beginRun (edm::Run const &iRun, edm::EventSetup const &iSetup)
 
virtual void endRun ()
 
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::string EBDigiCollectionDM_
 
edm::InputTag EBPileInputTag_
 
std::string EEDigiCollectionDM_
 
edm::InputTag EEPileInputTag_
 
std::string ESDigiCollectionDM_
 
edm::InputTag ESPileInputTag_
 
const double m_EBs25notCont
 
const double m_EEs25notCont
 
const double m_peToABarrel
 
const double m_peToAEndcap
 
const bool m_timeDependent
 
EcalDigiProducer myEcalDigitizer_
 
EBSignalGenerator theEBSignalGenerator
 
EESignalGenerator theEESignalGenerator
 
ESSignalGenerator theESSignalGenerator
 

Detailed Description

Definition at line 20 of file PreMixingEcalWorker.cc.

Constructor & Destructor Documentation

◆ PreMixingEcalWorker() [1/2]

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

Definition at line 57 of file PreMixingEcalWorker.cc.

References EBDigiCollectionDM_, EEDigiCollectionDM_, ESDigiCollectionDM_, edm::ParameterSet::getParameter(), myEcalDigitizer_, edm::ProducesCollector::produces(), EcalDigiProducer::setEBNoiseSignalGenerator(), EcalDigiProducer::setEENoiseSignalGenerator(), EcalDigiProducer::setESNoiseSignalGenerator(), AlCaHLTBitMon_QueryRunRegistry::string, theEBSignalGenerator, theEESignalGenerator, and theESSignalGenerator.

60  : EBPileInputTag_(ps.getParameter<edm::InputTag>("EBPileInputTag")),
61  EEPileInputTag_(ps.getParameter<edm::InputTag>("EEPileInputTag")),
62  ESPileInputTag_(ps.getParameter<edm::InputTag>("ESPileInputTag")),
63  m_EBs25notCont(ps.getParameter<double>("EBs25notContainment")),
64  m_EEs25notCont(ps.getParameter<double>("EEs25notContainment")),
65  m_peToABarrel(ps.getParameter<double>("photoelectronsToAnalogBarrel")),
66  m_peToAEndcap(ps.getParameter<double>("photoelectronsToAnalogEndcap")),
67  m_timeDependent(ps.getParameter<bool>("timeDependent")),
73  myEcalDigitizer_(ps, iC) {
74  EBDigiCollectionDM_ = ps.getParameter<std::string>("EBDigiCollectionDM");
75  EEDigiCollectionDM_ = ps.getParameter<std::string>("EEDigiCollectionDM");
76  ESDigiCollectionDM_ = ps.getParameter<std::string>("ESDigiCollectionDM");
77 
78  producesCollector.produces<EBDigiCollection>(EBDigiCollectionDM_);
79  producesCollector.produces<EEDigiCollection>(EEDigiCollectionDM_);
80  producesCollector.produces<ESDigiCollection>(ESDigiCollectionDM_);
81 
85 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
void setEENoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
ESSignalGenerator theESSignalGenerator
void setEBNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
void setESNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
edm::InputTag ESPileInputTag_
EcalDigiProducer myEcalDigitizer_
EESignalGenerator theEESignalGenerator
edm::InputTag EBPileInputTag_
edm::InputTag EEPileInputTag_
EBSignalGenerator theEBSignalGenerator

◆ ~PreMixingEcalWorker()

PreMixingEcalWorker::~PreMixingEcalWorker ( )
overridedefault

◆ PreMixingEcalWorker() [2/2]

PreMixingEcalWorker::PreMixingEcalWorker ( const PreMixingEcalWorker )
delete

Member Function Documentation

◆ addPileups()

void PreMixingEcalWorker::addPileups ( PileUpEventPrincipal const &  pep,
edm::EventSetup const &  es 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 95 of file PreMixingEcalWorker.cc.

References PileUpEventPrincipal::bunchCrossing(), EcalSignalGenerator< ECALDIGITIZERTRAITS >::fill(), edm::EventPrincipal::id(), EcalSignalGenerator< ECALDIGITIZERTRAITS >::initializeEvent(), LogDebug, PileUpEventPrincipal::moduleCallingContext(), PileUpEventPrincipal::principal(), theEBSignalGenerator, theEESignalGenerator, and theESSignalGenerator.

95  {
96  LogDebug("PreMixingEcalWorker") << "\n===============> adding pileups from event " << pep.principal().id()
97  << " for bunchcrossing " << pep.bunchCrossing();
98 
99  theEBSignalGenerator.initializeEvent(&pep.principal(), &ES);
100  theEESignalGenerator.initializeEvent(&pep.principal(), &ES);
101  theESSignalGenerator.initializeEvent(&pep.principal(), &ES);
102 
103  // add noise signals using incoming digis
104  theEBSignalGenerator.fill(pep.moduleCallingContext());
105  theEESignalGenerator.fill(pep.moduleCallingContext());
106  theESSignalGenerator.fill(pep.moduleCallingContext());
107 }
virtual void fill(edm::ModuleCallingContext const *mcc)
ESSignalGenerator theESSignalGenerator
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup)
EESignalGenerator theEESignalGenerator
EBSignalGenerator theEBSignalGenerator
#define LogDebug(id)

◆ addSignals()

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

Implements PreMixingWorker.

Definition at line 91 of file PreMixingEcalWorker.cc.

References EcalDigiProducer::accumulate(), MillePedeFileConverter_cfg::e, and myEcalDigitizer_.

91  {
93 }
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
EcalDigiProducer myEcalDigitizer_

◆ beginLuminosityBlock()

void PreMixingEcalWorker::beginLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
)
overridevirtual

Reimplemented from PreMixingWorker.

Definition at line 116 of file PreMixingEcalWorker.cc.

References EcalDigiProducer::beginLuminosityBlock(), myEcalDigitizer_, and singleTopDQM_cfi::setup.

116  {
118 }
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
EcalDigiProducer myEcalDigitizer_

◆ initializeEvent()

void PreMixingEcalWorker::initializeEvent ( edm::Event const &  e,
edm::EventSetup const &  ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 87 of file PreMixingEcalWorker.cc.

References MillePedeFileConverter_cfg::e, EcalDigiProducer::initializeEvent(), and myEcalDigitizer_.

87  {
89 }
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
EcalDigiProducer myEcalDigitizer_

◆ operator=()

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

◆ put()

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

Implements PreMixingWorker.

Definition at line 109 of file PreMixingEcalWorker.cc.

References MillePedeFileConverter_cfg::e, EcalDigiProducer::finalizeEvent(), and myEcalDigitizer_.

112  {
114 }
EcalDigiProducer myEcalDigitizer_
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override

Member Data Documentation

◆ EBDigiCollectionDM_

std::string PreMixingEcalWorker::EBDigiCollectionDM_
private

Definition at line 40 of file PreMixingEcalWorker.cc.

Referenced by PreMixingEcalWorker().

◆ EBPileInputTag_

edm::InputTag PreMixingEcalWorker::EBPileInputTag_
private

Definition at line 36 of file PreMixingEcalWorker.cc.

◆ EEDigiCollectionDM_

std::string PreMixingEcalWorker::EEDigiCollectionDM_
private

Definition at line 41 of file PreMixingEcalWorker.cc.

Referenced by PreMixingEcalWorker().

◆ EEPileInputTag_

edm::InputTag PreMixingEcalWorker::EEPileInputTag_
private

Definition at line 37 of file PreMixingEcalWorker.cc.

◆ ESDigiCollectionDM_

std::string PreMixingEcalWorker::ESDigiCollectionDM_
private

Definition at line 42 of file PreMixingEcalWorker.cc.

Referenced by PreMixingEcalWorker().

◆ ESPileInputTag_

edm::InputTag PreMixingEcalWorker::ESPileInputTag_
private

Definition at line 38 of file PreMixingEcalWorker.cc.

◆ m_EBs25notCont

const double PreMixingEcalWorker::m_EBs25notCont
private

Definition at line 44 of file PreMixingEcalWorker.cc.

◆ m_EEs25notCont

const double PreMixingEcalWorker::m_EEs25notCont
private

Definition at line 45 of file PreMixingEcalWorker.cc.

◆ m_peToABarrel

const double PreMixingEcalWorker::m_peToABarrel
private

Definition at line 46 of file PreMixingEcalWorker.cc.

◆ m_peToAEndcap

const double PreMixingEcalWorker::m_peToAEndcap
private

Definition at line 47 of file PreMixingEcalWorker.cc.

◆ m_timeDependent

const bool PreMixingEcalWorker::m_timeDependent
private

Definition at line 48 of file PreMixingEcalWorker.cc.

◆ myEcalDigitizer_

EcalDigiProducer PreMixingEcalWorker::myEcalDigitizer_
private

◆ theEBSignalGenerator

EBSignalGenerator PreMixingEcalWorker::theEBSignalGenerator
private

Definition at line 50 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

◆ theEESignalGenerator

EESignalGenerator PreMixingEcalWorker::theEESignalGenerator
private

Definition at line 51 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

◆ theESSignalGenerator

ESSignalGenerator PreMixingEcalWorker::theESSignalGenerator
private

Definition at line 52 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().