#include <PileUp.h>
Public Member Functions | |
double | averageNumber () const |
void | beginJob (eventsetup::ESRecordsToProductResolverIndices const &) |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup) |
void | beginRun (const edm::Run &run, const edm::EventSetup &setup) |
void | beginStream (edm::StreamID) |
void | CalculatePileup (int MinBunch, int MaxBunch, std::vector< int > &PileupSelection, std::vector< float > &TrueNumInteractions, StreamID const &) |
bool | doPileUp (int BX) |
void | dropUnwantedBranches (std::vector< std::string > const &wantedBranches) |
void | endLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup) |
void | endRun (const edm::Run &run, const edm::EventSetup &setup) |
void | endStream () |
const unsigned int & | input () const |
void | input (unsigned int s) |
PileUp (ParameterSet const &pset, const std::shared_ptr< PileUpConfig > &config, edm::ConsumesCollector iC, const bool mixingConfigFromDB) | |
template<typename T > | |
void | playOldFormatPileUp (std::vector< edm::EventID >::const_iterator begin, std::vector< edm::EventID >::const_iterator end, std::vector< edm::SecondaryEventIDAndFileInfo > &ids, T eventOperator) |
template<typename T > | |
void | playPileUp (std::vector< edm::SecondaryEventIDAndFileInfo >::const_iterator begin, std::vector< edm::SecondaryEventIDAndFileInfo >::const_iterator end, std::vector< edm::SecondaryEventIDAndFileInfo > &ids, T eventOperator) |
bool | poisson () const |
template<typename T > | |
void | readPileUp (edm::EventID const &signal, std::vector< edm::SecondaryEventIDAndFileInfo > &ids, T eventOperator, int const NumPU, StreamID const &) |
void | reload (const edm::EventSetup &setup) |
void | setupPileUpEvent (const edm::EventSetup &setup) |
~PileUp () | |
Private Member Functions | |
std::unique_ptr< CLHEP::RandPoisson > const & | poissonDistr_OOT (StreamID const &streamID) |
std::unique_ptr< CLHEP::RandPoissonQ > const & | poissonDistribution (StreamID const &streamID) |
CLHEP::HepRandomEngine * | randomEngine (StreamID const &streamID) |
void | setRandomEngine (StreamID) |
void | setRandomEngine (LuminosityBlock const &) |
|
explicit |
Definition at line 69 of file PileUp.cc.
References edm::BeginLuminosityBlock, configToken_, edm::ServiceRegistry::createContaining(), dqmPostProcessing_online::DB, edm::ParameterSet::emptyParameterSetID(), edm::ConsumesCollector::esConsumes(), eventPrincipal_, Exception, fixed_, fixed_OOT_, edm::ParameterSet::getUntrackedParameter(), histoDistribution_, input_, edm::ServiceRegistry::instance(), intFixed_ITPU_, intFixed_OOT_, edm::Service< T >::isAvailable(), manage_OOT_, maxBunch_cosmics_, minBunch_cosmics_, eostools::move(), names, none_, mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi::OOT_type, poisson_, poisson_OOT_, probFunctionDistribution_, processConfiguration_, processContext_, HLT_2024v13_cff::producers, productRegistry_, provider_, muonDTDigis_cfi::pset, PU_Study_, randomGenerator_, serviceToken_, Source_type_, AlCaHLTBitMon_QueryRunRegistry::string, Study_type_, HcalDetIdTransform::transform(), and type_.
|
inline |
void edm::PileUp::beginJob | ( | eventsetup::ESRecordsToProductResolverIndices const & | iES | ) |
Definition at line 201 of file PileUp.cc.
References input_, productRegistry_, provider_, and serviceToken_.
void edm::PileUp::beginLuminosityBlock | ( | const edm::LuminosityBlock & | lumi, |
const edm::EventSetup & | setup | ||
) |
Definition at line 235 of file PileUp.cc.
References lumiPrincipal_, processConfiguration_, productRegistry_, provider_, runPrincipal_, serviceToken_, setRandomEngine(), singleTopDQM_cfi::setup, and streamContext_.
void edm::PileUp::beginRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
Definition at line 227 of file PileUp.cc.
References processConfiguration_, productRegistry_, provider_, writedatasetfile::run, runPrincipal_, serviceToken_, singleTopDQM_cfi::setup, and streamContext_.
void edm::PileUp::beginStream | ( | edm::StreamID | ) |
Definition at line 209 of file PileUp.cc.
References eventPrincipal_, processContext_, provider_, serviceToken_, and streamContext_.
void edm::PileUp::CalculatePileup | ( | int | MinBunch, |
int | MaxBunch, | ||
std::vector< int > & | PileupSelection, | ||
std::vector< float > & | TrueNumInteractions, | ||
StreamID const & | streamID | ||
) |
Definition at line 390 of file PileUp.cc.
References averageNumber_, nano_mu_digi_cff::bx, ztail::d, fixed_, GetRandom(), histo_, histoDistribution_, createfilelist::int, intAverage_, intFixed_ITPU_, intFixed_OOT_, manage_OOT_, none_, poisson_, poisson_OOT_, poissonDistr_OOT(), poissonDistribution(), probFunctionDistribution_, provider_, PU_Study_, randomEngine(), setRandomEngine(), and Study_type_.
|
inline |
Definition at line 72 of file PileUp.h.
References averageNumber_, L1TStage2uGTEmulatorClient_cff::BX, funct::false, maxBunch_cosmics_, minBunch_cosmics_, none_, and Source_type_.
|
inline |
void edm::PileUp::endLuminosityBlock | ( | const edm::LuminosityBlock & | lumi, |
const edm::EventSetup & | setup | ||
) |
Definition at line 252 of file PileUp.cc.
References lumiPrincipal_, provider_, serviceToken_, singleTopDQM_cfi::setup, and streamContext_.
void edm::PileUp::endRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
Definition at line 246 of file PileUp.cc.
References provider_, writedatasetfile::run, runPrincipal_, serviceToken_, singleTopDQM_cfi::setup, and streamContext_.
void edm::PileUp::endStream | ( | ) |
Definition at line 218 of file PileUp.cc.
References input_, provider_, serviceToken_, and streamContext_.
|
inline |
|
inline |
void edm::PileUp::playOldFormatPileUp | ( | std::vector< edm::EventID >::const_iterator | begin, |
std::vector< edm::EventID >::const_iterator | end, | ||
std::vector< edm::SecondaryEventIDAndFileInfo > & | ids, | ||
T | eventOperator | ||
) |
Definition at line 227 of file PileUp.h.
References eventPrincipal_, fileNameHash_, and input_.
void edm::PileUp::playPileUp | ( | std::vector< edm::SecondaryEventIDAndFileInfo >::const_iterator | begin, |
std::vector< edm::SecondaryEventIDAndFileInfo >::const_iterator | end, | ||
std::vector< edm::SecondaryEventIDAndFileInfo > & | ids, | ||
T | eventOperator | ||
) |
Definition at line 217 of file PileUp.h.
References eventPrincipal_, fileNameHash_, and input_.
|
inline |
|
private |
Definition at line 367 of file PileUp.cc.
References PoissonDistr_OOT_, and randomEngine().
Referenced by CalculatePileup().
|
private |
Definition at line 359 of file PileUp.cc.
References averageNumber_, PoissonDistribution_, and randomEngine().
Referenced by CalculatePileup().
|
private |
Definition at line 375 of file PileUp.cc.
References randomEngine_.
Referenced by CalculatePileup(), poissonDistr_OOT(), poissonDistribution(), readPileUp(), and setRandomEngine().
void edm::PileUp::readPileUp | ( | edm::EventID const & | signal, |
std::vector< edm::SecondaryEventIDAndFileInfo > & | ids, | ||
T | eventOperator, | ||
int const | pileEventCnt, | ||
StreamID const & | streamID | ||
) |
Generates events from a VectorInputSource. This function decides which method of VectorInputSource to call: sequential, random, or pre-specified. The ids are either ids to read or ids to store while reading. eventOperator has a type that matches the eventOperator in VectorInputSource::loopRandom.
The "signal" event is optionally used to restrict the secondary events used for pileup and mixing.
Definition at line 199 of file PileUp.h.
References eventPrincipal_, fileNameHash_, input_, randomEngine(), fileinputsource_cfi::read, and sequential_.
void edm::PileUp::reload | ( | const edm::EventSetup & | setup | ) |
Definition at line 269 of file PileUp.cc.
References funct::abs(), averageNumber(), averageNumber_, configToken_, MillePedeFileConverter_cfg::e, Exception, fixed_, fixed_OOT_, histo_, histoDistribution_, mps_fire::i, inputType_, createfilelist::int, intFixed_OOT_, dqmiolumiharvest::j, LogDebug, manage_OOT_, none_, poisson_, poisson_OOT_, PoissonDistribution_, probFunctionDistribution_, singleTopDQM_cfi::setup, type_, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
|
private |
Definition at line 383 of file PileUp.cc.
References randomEngine(), randomGenerator_, and PileupRandomNumberGenerator::setEngine().
Referenced by beginLuminosityBlock(), and CalculatePileup().
|
private |
Definition at line 384 of file PileUp.cc.
References edm::LuminosityBlock::index(), randomGenerator_, PileupRandomNumberGenerator::setEngine(), and PileupRandomNumberGenerator::setSeed().
void edm::PileUp::setupPileUpEvent | ( | const edm::EventSetup & | setup | ) |
Definition at line 259 of file PileUp.cc.
References eventPrincipal_, lumiPrincipal_, provider_, serviceToken_, singleTopDQM_cfi::setup, and streamContext_.
|
private |
Definition at line 119 of file PileUp.h.
Referenced by averageNumber(), CalculatePileup(), doPileUp(), poissonDistribution(), and reload().
|
private |
|
private |
Definition at line 147 of file PileUp.h.
Referenced by beginStream(), PileUp(), playOldFormatPileUp(), playPileUp(), readPileUp(), and setupPileUpEvent().
|
private |
Definition at line 141 of file PileUp.h.
Referenced by playOldFormatPileUp(), playPileUp(), and readPileUp().
|
private |
Definition at line 125 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
|
private |
Definition at line 121 of file PileUp.h.
Referenced by CalculatePileup(), and reload().
|
private |
Definition at line 122 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 143 of file PileUp.h.
Referenced by beginJob(), dropUnwantedBranches(), endStream(), PileUp(), playOldFormatPileUp(), playPileUp(), and readPileUp().
|
private |
|
private |
Definition at line 120 of file PileUp.h.
Referenced by CalculatePileup().
|
private |
Definition at line 135 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 134 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 148 of file PileUp.h.
Referenced by beginLuminosityBlock(), endLuminosityBlock(), and setupPileUpEvent().
|
private |
Definition at line 127 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 138 of file PileUp.h.
Referenced by doPileUp(), and PileUp().
|
private |
Definition at line 137 of file PileUp.h.
Referenced by doPileUp(), and PileUp().
|
private |
Definition at line 126 of file PileUp.h.
Referenced by CalculatePileup(), doPileUp(), PileUp(), and reload().
|
private |
|
private |
Definition at line 128 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 154 of file PileUp.h.
Referenced by poissonDistr_OOT().
|
private |
Definition at line 153 of file PileUp.h.
Referenced by poissonDistribution(), and reload().
|
private |
Definition at line 123 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 144 of file PileUp.h.
Referenced by beginLuminosityBlock(), beginRun(), and PileUp().
|
private |
Definition at line 145 of file PileUp.h.
Referenced by beginStream(), and PileUp().
|
private |
Definition at line 142 of file PileUp.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), and PileUp().
|
private |
Definition at line 152 of file PileUp.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), beginStream(), CalculatePileup(), endLuminosityBlock(), endRun(), endStream(), PileUp(), and setupPileUpEvent().
|
private |
Definition at line 131 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 155 of file PileUp.h.
Referenced by randomEngine().
|
private |
Definition at line 150 of file PileUp.h.
Referenced by PileUp(), and setRandomEngine().
|
private |
Definition at line 149 of file PileUp.h.
Referenced by beginLuminosityBlock(), beginRun(), and endRun().
|
private |
Definition at line 165 of file PileUp.h.
Referenced by readPileUp().
|
private |
Definition at line 151 of file PileUp.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), beginStream(), endLuminosityBlock(), endRun(), endStream(), PileUp(), and setupPileUpEvent().
|
private |
Definition at line 118 of file PileUp.h.
Referenced by doPileUp(), and PileUp().
|
private |
Definition at line 146 of file PileUp.h.
Referenced by beginLuminosityBlock(), beginRun(), beginStream(), endLuminosityBlock(), endRun(), endStream(), and setupPileUpEvent().
|
private |
Definition at line 132 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 117 of file PileUp.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), PileUp(), and reload().