Public Member Functions | |
void | addPileups (PileUpEventPrincipal const &pep, edm::EventSetup const &iSetup) override |
void | addSignals (edm::Event const &iEvent, edm::EventSetup const &iSetup) override |
void | initializeEvent (edm::Event const &iEvent, edm::EventSetup const &iSetup) override |
PreMixingCaloParticleWorker (const edm::ParameterSet &ps, edm::ProducerBase &producer, edm::ConsumesCollector &&iC) | |
void | put (edm::Event &iEvent, edm::EventSetup const &iSetup, std::vector< PileupSummaryInfo > const &ps, int bunchSpacing) override |
~PreMixingCaloParticleWorker () override=default | |
Public Member Functions inherited from PreMixingWorker | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &iLumi, edm::EventSetup const &iSetup) |
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 Types | |
using | EnergyMap = std::vector< std::pair< unsigned, float >> |
Private Member Functions | |
void | add (const SimClusterCollection &clusters, const CaloParticleCollection &particles, const EnergyMap &energyMap) |
Private Attributes | |
SimClusterRefProd | clusterRef_ |
std::unique_ptr< SimClusterCollection > | newClusters_ |
std::unique_ptr< CaloParticleCollection > | newParticles_ |
std::string | particleCollectionDM_ |
edm::InputTag | particlePileInputTag_ |
edm::EDGetTokenT< SimClusterCollection > | sigClusterToken_ |
edm::EDGetTokenT< EnergyMap > | sigEnergyToken_ |
edm::EDGetTokenT< CaloParticleCollection > | sigParticleToken_ |
std::unordered_map< unsigned, float > | totalEnergy_ |
Definition at line 17 of file PreMixingCaloParticleWorker.cc.
|
private |
Definition at line 31 of file PreMixingCaloParticleWorker.cc.
PreMixingCaloParticleWorker::PreMixingCaloParticleWorker | ( | const edm::ParameterSet & | ps, |
edm::ProducerBase & | producer, | ||
edm::ConsumesCollector && | iC | ||
) |
Definition at line 49 of file PreMixingCaloParticleWorker.cc.
References particleCollectionDM_, and edm::ProductRegistryHelper::produces().
|
overridedefault |
|
private |
Definition at line 101 of file PreMixingCaloParticleWorker.cc.
References clusterRef_, popcon2dropbox::copy(), HTMLExport::elem(), newClusters_, newParticles_, AlCaHLTBitMon_ParallelJobs::p, and totalEnergy_.
Referenced by addPileups(), addSignals(), and counter.Counter::register().
|
overridevirtual |
Implements PreMixingWorker.
Definition at line 86 of file PreMixingCaloParticleWorker.cc.
References add(), fastPrimaryVertexProducer_cfi::clusters, PileUpEventPrincipal::getByLabel(), edm::HandleBase::isValid(), particlePileInputTag_, and HadronAndPartonSelector_cfi::particles.
|
overridevirtual |
Implements PreMixingWorker.
Definition at line 71 of file PreMixingCaloParticleWorker.cc.
References add(), fastPrimaryVertexProducer_cfi::clusters, edm::Event::getByToken(), edm::HandleBase::isValid(), HadronAndPartonSelector_cfi::particles, sigClusterToken_, sigEnergyToken_, and sigParticleToken_.
|
overridevirtual |
Implements PreMixingWorker.
Definition at line 61 of file PreMixingCaloParticleWorker.cc.
References clusterRef_, iEvent, newClusters_, newParticles_, and particleCollectionDM_.
|
overridevirtual |
Implements PreMixingWorker.
Definition at line 129 of file PreMixingCaloParticleWorker.cc.
References SimCluster::addRecHitAndFraction(), SimCluster::clearHitsAndFractions(), DEFINE_PREMIXING_WORKER, dedxEstimators_cff::fraction, SimCluster::hits_and_fractions(), eostools::move(), newClusters_, newParticles_, particleCollectionDM_, edm::Event::put(), SimDataFormats::CaloAnalysis::sc, and totalEnergy_.
|
private |
Definition at line 46 of file PreMixingCaloParticleWorker.cc.
Referenced by add(), and initializeEvent().
|
private |
Definition at line 44 of file PreMixingCaloParticleWorker.cc.
Referenced by add(), initializeEvent(), and put().
|
private |
Definition at line 45 of file PreMixingCaloParticleWorker.cc.
Referenced by add(), initializeEvent(), and put().
|
private |
Definition at line 40 of file PreMixingCaloParticleWorker.cc.
Referenced by initializeEvent(), PreMixingCaloParticleWorker(), and put().
|
private |
Definition at line 39 of file PreMixingCaloParticleWorker.cc.
Referenced by addPileups().
|
private |
Definition at line 35 of file PreMixingCaloParticleWorker.cc.
Referenced by addSignals().
|
private |
Definition at line 37 of file PreMixingCaloParticleWorker.cc.
Referenced by addSignals().
|
private |
Definition at line 36 of file PreMixingCaloParticleWorker.cc.
Referenced by addSignals().
|
private |
Definition at line 42 of file PreMixingCaloParticleWorker.cc.