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
 
edm::EDGetTokenT< EBDigitizerTraits::DigiCollectiontok_eb_
 
edm::EDGetTokenT< EEDigitizerTraits::DigiCollectiontok_ee_
 
edm::EDGetTokenT< ESDigitizerTraits::DigiCollectiontok_es_
 

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 61 of file PreMixingEcalWorker.cc.

64  : EBPileInputTag_(ps.getParameter<edm::InputTag>("EBPileInputTag")),
65  EEPileInputTag_(ps.getParameter<edm::InputTag>("EEPileInputTag")),
66  ESPileInputTag_(ps.getParameter<edm::InputTag>("ESPileInputTag")),
70  m_EBs25notCont(ps.getParameter<double>("EBs25notContainment")),
71  m_EEs25notCont(ps.getParameter<double>("EEs25notContainment")),
72  m_peToABarrel(ps.getParameter<double>("photoelectronsToAnalogBarrel")),
73  m_peToAEndcap(ps.getParameter<double>("photoelectronsToAnalogEndcap")),
74  m_timeDependent(ps.getParameter<bool>("timeDependent")),
80  myEcalDigitizer_(ps, iC) {
81  EBDigiCollectionDM_ = ps.getParameter<std::string>("EBDigiCollectionDM");
82  EEDigiCollectionDM_ = ps.getParameter<std::string>("EEDigiCollectionDM");
83  ESDigiCollectionDM_ = ps.getParameter<std::string>("ESDigiCollectionDM");
84 
85  producesCollector.produces<EBDigiCollection>(EBDigiCollectionDM_);
86  producesCollector.produces<EEDigiCollection>(EEDigiCollectionDM_);
87  producesCollector.produces<ESDigiCollection>(ESDigiCollectionDM_);
88 
92 }

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

◆ ~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 102 of file PreMixingEcalWorker.cc.

102  {
103  LogDebug("PreMixingEcalWorker") << "\n===============> adding pileups from event " << pep.principal().id()
104  << " for bunchcrossing " << pep.bunchCrossing();
105 
106  theEBSignalGenerator.initializeEvent(&pep.principal(), &ES);
107  theEESignalGenerator.initializeEvent(&pep.principal(), &ES);
108  theESSignalGenerator.initializeEvent(&pep.principal(), &ES);
109 
110  // add noise signals using incoming digis
111  theEBSignalGenerator.fill(pep.moduleCallingContext());
112  theEESignalGenerator.fill(pep.moduleCallingContext());
113  theESSignalGenerator.fill(pep.moduleCallingContext());
114 }

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

◆ addSignals()

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

◆ beginLuminosityBlock()

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

◆ initializeEvent()

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

◆ 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

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 48 of file PreMixingEcalWorker.cc.

◆ m_EEs25notCont

const double PreMixingEcalWorker::m_EEs25notCont
private

Definition at line 49 of file PreMixingEcalWorker.cc.

◆ m_peToABarrel

const double PreMixingEcalWorker::m_peToABarrel
private

Definition at line 50 of file PreMixingEcalWorker.cc.

◆ m_peToAEndcap

const double PreMixingEcalWorker::m_peToAEndcap
private

Definition at line 51 of file PreMixingEcalWorker.cc.

◆ m_timeDependent

const bool PreMixingEcalWorker::m_timeDependent
private

Definition at line 52 of file PreMixingEcalWorker.cc.

◆ myEcalDigitizer_

EcalDigiProducer PreMixingEcalWorker::myEcalDigitizer_
private

◆ theEBSignalGenerator

EBSignalGenerator PreMixingEcalWorker::theEBSignalGenerator
private

Definition at line 54 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

◆ theEESignalGenerator

EESignalGenerator PreMixingEcalWorker::theEESignalGenerator
private

Definition at line 55 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

◆ theESSignalGenerator

ESSignalGenerator PreMixingEcalWorker::theESSignalGenerator
private

Definition at line 56 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

◆ tok_eb_

edm::EDGetTokenT<EBDigitizerTraits::DigiCollection> PreMixingEcalWorker::tok_eb_
private

Definition at line 44 of file PreMixingEcalWorker.cc.

◆ tok_ee_

edm::EDGetTokenT<EEDigitizerTraits::DigiCollection> PreMixingEcalWorker::tok_ee_
private

Definition at line 45 of file PreMixingEcalWorker.cc.

◆ tok_es_

edm::EDGetTokenT<ESDigitizerTraits::DigiCollection> PreMixingEcalWorker::tok_es_
private

Definition at line 46 of file PreMixingEcalWorker.cc.

EcalDigiProducer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
Definition: EcalDigiProducer.cc:311
EcalDigiProducer::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
Definition: EcalDigiProducer.cc:411
PreMixingEcalWorker::myEcalDigitizer_
EcalDigiProducer myEcalDigitizer_
Definition: PreMixingEcalWorker.cc:57
PreMixingEcalWorker::ESDigiCollectionDM_
std::string ESDigiCollectionDM_
Definition: PreMixingEcalWorker.cc:42
PreMixingEcalWorker::theEBSignalGenerator
EBSignalGenerator theEBSignalGenerator
Definition: PreMixingEcalWorker.cc:54
PreMixingEcalWorker::EEPileInputTag_
edm::InputTag EEPileInputTag_
Definition: PreMixingEcalWorker.cc:37
PreMixingEcalWorker::ESPileInputTag_
edm::InputTag ESPileInputTag_
Definition: PreMixingEcalWorker.cc:38
PreMixingEcalWorker::tok_ee_
edm::EDGetTokenT< EEDigitizerTraits::DigiCollection > tok_ee_
Definition: PreMixingEcalWorker.cc:45
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
PreMixingEcalWorker::m_EBs25notCont
const double m_EBs25notCont
Definition: PreMixingEcalWorker.cc:48
PreMixingEcalWorker::EBPileInputTag_
edm::InputTag EBPileInputTag_
Definition: PreMixingEcalWorker.cc:36
PreMixingEcalWorker::m_peToAEndcap
const double m_peToAEndcap
Definition: PreMixingEcalWorker.cc:51
PreMixingEcalWorker::m_EEs25notCont
const double m_EEs25notCont
Definition: PreMixingEcalWorker.cc:49
EcalDigiProducer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
Definition: EcalDigiProducer.cc:364
PreMixingEcalWorker::m_timeDependent
const bool m_timeDependent
Definition: PreMixingEcalWorker.cc:52
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
PreMixingEcalWorker::tok_eb_
edm::EDGetTokenT< EBDigitizerTraits::DigiCollection > tok_eb_
Definition: PreMixingEcalWorker.cc:44
ESDigiCollection
Definition: EcalDigiCollections.h:82
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
EBDigiCollection
Definition: EcalDigiCollections.h:56
EEDigiCollection
Definition: EcalDigiCollections.h:69
EcalSignalGenerator::fill
virtual void fill(edm::ModuleCallingContext const *mcc)
Definition: EcalSignalGenerator.h:208
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
PreMixingEcalWorker::theESSignalGenerator
ESSignalGenerator theESSignalGenerator
Definition: PreMixingEcalWorker.cc:56
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalDigiProducer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
Definition: EcalDigiProducer.cc:262
PreMixingEcalWorker::tok_es_
edm::EDGetTokenT< ESDigitizerTraits::DigiCollection > tok_es_
Definition: PreMixingEcalWorker.cc:46
EcalDigiProducer::setESNoiseSignalGenerator
void setESNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
Definition: EcalDigiProducer.cc:570
PreMixingEcalWorker::EBDigiCollectionDM_
std::string EBDigiCollectionDM_
Definition: PreMixingEcalWorker.cc:40
PreMixingEcalWorker::theEESignalGenerator
EESignalGenerator theEESignalGenerator
Definition: PreMixingEcalWorker.cc:55
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
EcalSignalGenerator::initializeEvent
void initializeEvent(const edm::Event *event, const edm::EventSetup *eventSetup)
Definition: EcalSignalGenerator.h:84
EcalDigiProducer::setEENoiseSignalGenerator
void setEENoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
Definition: EcalDigiProducer.cc:564
PreMixingEcalWorker::EEDigiCollectionDM_
std::string EEDigiCollectionDM_
Definition: PreMixingEcalWorker.cc:41
lumi
Definition: LumiSectionData.h:20
PreMixingEcalWorker::m_peToABarrel
const double m_peToABarrel
Definition: PreMixingEcalWorker.cc:50
edm::InputTag
Definition: InputTag.h:15
EcalDigiProducer::setEBNoiseSignalGenerator
void setEBNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
Definition: EcalDigiProducer.cc:558
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37