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::ProducerBase &producer, 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
 
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::PreMixingEcalWorker ( const edm::ParameterSet ps,
edm::ProducerBase producer,
edm::ConsumesCollector &&  iC 
)

Definition at line 61 of file PreMixingEcalWorker.cc.

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

61  :
62  EBPileInputTag_(ps.getParameter<edm::InputTag>("EBPileInputTag")),
63  EEPileInputTag_(ps.getParameter<edm::InputTag>("EEPileInputTag")),
64  ESPileInputTag_(ps.getParameter<edm::InputTag>("ESPileInputTag")),
68  m_EBs25notCont(ps.getParameter<double>("EBs25notContainment") ) ,
69  m_EEs25notCont(ps.getParameter<double>("EEs25notContainment") ) ,
70  m_peToABarrel(ps.getParameter<double>("photoelectronsToAnalogBarrel") ) ,
71  m_peToAEndcap(ps.getParameter<double>("photoelectronsToAnalogEndcap") ),
75  myEcalDigitizer_(ps, iC)
76 {
77  EBDigiCollectionDM_ = ps.getParameter<std::string>("EBDigiCollectionDM");
78  EEDigiCollectionDM_ = ps.getParameter<std::string>("EEDigiCollectionDM");
79  ESDigiCollectionDM_ = ps.getParameter<std::string>("ESDigiCollectionDM");
80 
84 
88 }
BranchAliasSetterT< ProductType > produces()
declare what type of product will make and with which optional label
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
edm::EDGetTokenT< EBDigitizerTraits::DigiCollection > tok_eb_
edm::EDGetTokenT< EEDigitizerTraits::DigiCollection > tok_ee_
void setEENoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
ESSignalGenerator theESSignalGenerator
void setEBNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
void setESNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
edm::InputTag ESPileInputTag_
EcalDigiProducer myEcalDigitizer_
EESignalGenerator theEESignalGenerator
edm::EDGetTokenT< ESDigitizerTraits::DigiCollection > tok_es_
edm::InputTag EBPileInputTag_
edm::InputTag EEPileInputTag_
EBSignalGenerator theEBSignalGenerator
PreMixingEcalWorker::~PreMixingEcalWorker ( )
overridedefault
PreMixingEcalWorker::PreMixingEcalWorker ( const PreMixingEcalWorker )
delete

Member Function Documentation

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

Implements PreMixingWorker.

Definition at line 98 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.

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

Implements PreMixingWorker.

Definition at line 94 of file PreMixingEcalWorker.cc.

References EcalDigiProducer::accumulate(), and myEcalDigitizer_.

94  {
96 }
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
EcalDigiProducer myEcalDigitizer_
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(), DEFINE_PREMIXING_WORKER, and myEcalDigitizer_.

116  {
118 }
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
EcalDigiProducer myEcalDigitizer_
void PreMixingEcalWorker::initializeEvent ( edm::Event const &  e,
edm::EventSetup const &  ES 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 90 of file PreMixingEcalWorker.cc.

References EcalDigiProducer::initializeEvent(), and myEcalDigitizer_.

90  {
92 }
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
EcalDigiProducer myEcalDigitizer_
PreMixingEcalWorker& PreMixingEcalWorker::operator= ( const PreMixingEcalWorker )
delete
void PreMixingEcalWorker::put ( edm::Event e,
edm::EventSetup const &  iSetup,
std::vector< PileupSummaryInfo > const &  ps,
int  bs 
)
overridevirtual

Implements PreMixingWorker.

Definition at line 112 of file PreMixingEcalWorker.cc.

References EcalDigiProducer::finalizeEvent(), and myEcalDigitizer_.

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

Member Data Documentation

std::string PreMixingEcalWorker::EBDigiCollectionDM_
private

Definition at line 40 of file PreMixingEcalWorker.cc.

Referenced by PreMixingEcalWorker().

edm::InputTag PreMixingEcalWorker::EBPileInputTag_
private

Definition at line 36 of file PreMixingEcalWorker.cc.

std::string PreMixingEcalWorker::EEDigiCollectionDM_
private

Definition at line 41 of file PreMixingEcalWorker.cc.

Referenced by PreMixingEcalWorker().

edm::InputTag PreMixingEcalWorker::EEPileInputTag_
private

Definition at line 37 of file PreMixingEcalWorker.cc.

std::string PreMixingEcalWorker::ESDigiCollectionDM_
private

Definition at line 42 of file PreMixingEcalWorker.cc.

Referenced by PreMixingEcalWorker().

edm::InputTag PreMixingEcalWorker::ESPileInputTag_
private

Definition at line 38 of file PreMixingEcalWorker.cc.

const double PreMixingEcalWorker::m_EBs25notCont
private

Definition at line 48 of file PreMixingEcalWorker.cc.

const double PreMixingEcalWorker::m_EEs25notCont
private

Definition at line 49 of file PreMixingEcalWorker.cc.

const double PreMixingEcalWorker::m_peToABarrel
private

Definition at line 50 of file PreMixingEcalWorker.cc.

const double PreMixingEcalWorker::m_peToAEndcap
private

Definition at line 51 of file PreMixingEcalWorker.cc.

EcalDigiProducer PreMixingEcalWorker::myEcalDigitizer_
private
EBSignalGenerator PreMixingEcalWorker::theEBSignalGenerator
private

Definition at line 53 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

EESignalGenerator PreMixingEcalWorker::theEESignalGenerator
private

Definition at line 54 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

ESSignalGenerator PreMixingEcalWorker::theESSignalGenerator
private

Definition at line 55 of file PreMixingEcalWorker.cc.

Referenced by addPileups(), and PreMixingEcalWorker().

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

Definition at line 44 of file PreMixingEcalWorker.cc.

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

Definition at line 45 of file PreMixingEcalWorker.cc.

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

Definition at line 46 of file PreMixingEcalWorker.cc.