#include <PileUp.h>
Public Member Functions | |
double | averageNumber () const |
void | beginJob () |
void | beginLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup) |
void | beginRun (const edm::Run &run, const edm::EventSetup &setup) |
void | CalculatePileup (int MinBunch, int MaxBunch, std::vector< int > &PileupSelection, std::vector< float > &TrueNumInteractions, StreamID const &) |
bool | doPileUp () |
void | dropUnwantedBranches (std::vector< std::string > const &wantedBranches) |
void | endJob () |
void | endLuminosityBlock (const edm::LuminosityBlock &lumi, const edm::EventSetup &setup) |
void | endRun (const edm::Run &run, const edm::EventSetup &setup) |
const unsigned int & | input () const |
void | input (unsigned int s) |
PileUp (ParameterSet const &pset, double averageNumber, TH1F *const histo, const bool playback) | |
template<typename T > | |
void | playPileUp (const std::vector< edm::EventID > &ids, T eventOperator) |
bool | poisson () const |
template<typename T > | |
void | readPileUp (edm::EventID const &signal, std::vector< edm::EventID > &ids, T eventOperator, const int 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) |
|
explicit |
Definition at line 33 of file PileUp.cc.
References dqmPostProcessing_online::DB, edm::ParameterSet::emptyParameterSetID(), eventPrincipal_, edm::hlt::Exception, edm::ParameterSet::exists(), edm::ParameterSet::existsAs(), fixed_, fixed_OOT_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), histoDistribution_, input_, intFixed_ITPU_, intFixed_OOT_, edm::Service< T >::isAvailable(), manage_OOT_, edm::RandomNumberGenerator::mySeed(), none_, poisson_, poisson_OOT_, probFunctionDistribution_, processConfiguration_, productRegistry_, provider_, PU_Study_, seed_, AlCaHLTBitMon_QueryRunRegistry::string, Study_type_, and type_.
|
inline |
void edm::PileUp::beginJob | ( | void | ) |
Definition at line 165 of file PileUp.cc.
References input_, productRegistry_, and provider_.
void edm::PileUp::beginLuminosityBlock | ( | const edm::LuminosityBlock & | lumi, |
const edm::EventSetup & | setup | ||
) |
Definition at line 186 of file PileUp.cc.
References printConversionInfo::aux, edm::LuminosityBlock::luminosityBlockAuxiliary(), lumiPrincipal_, edm::LuminosityBlock::moduleCallingContext(), processConfiguration_, productRegistry_, provider_, and runPrincipal_.
void edm::PileUp::beginRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
Definition at line 179 of file PileUp.cc.
References printConversionInfo::aux, edm::Run::moduleCallingContext(), processConfiguration_, productRegistry_, provider_, edm::Run::runAuxiliary(), and runPrincipal_.
void edm::PileUp::CalculatePileup | ( | int | MinBunch, |
int | MaxBunch, | ||
std::vector< int > & | PileupSelection, | ||
std::vector< float > & | TrueNumInteractions, | ||
StreamID const & | streamID | ||
) |
Definition at line 359 of file PileUp.cc.
References averageNumber_, fixed_, histo_, histoDistribution_, intAverage_, intFixed_ITPU_, intFixed_OOT_, manage_OOT_, none_, poisson_, poisson_OOT_, poissonDistr_OOT(), poissonDistribution(), probFunctionDistribution_, PU_Study_, and Study_type_.
|
inline |
|
inline |
void edm::PileUp::endJob | ( | void | ) |
void edm::PileUp::endLuminosityBlock | ( | const edm::LuminosityBlock & | lumi, |
const edm::EventSetup & | setup | ||
) |
Definition at line 200 of file PileUp.cc.
References lumiPrincipal_, edm::LuminosityBlock::moduleCallingContext(), and provider_.
void edm::PileUp::endRun | ( | const edm::Run & | run, |
const edm::EventSetup & | setup | ||
) |
Definition at line 195 of file PileUp.cc.
References edm::Run::moduleCallingContext(), provider_, and runPrincipal_.
|
inline |
|
inline |
void edm::PileUp::playPileUp | ( | const std::vector< edm::EventID > & | ids, |
T | eventOperator | ||
) |
Definition at line 199 of file PileUp.h.
References eventPrincipal_, and input_.
|
inline |
|
private |
Definition at line 328 of file PileUp.cc.
References cmsHarvester::index, randomEngine(), edm::StreamID::value(), and vPoissonDistr_OOT_.
Referenced by CalculatePileup().
|
private |
Definition at line 313 of file PileUp.cc.
References averageNumber_, cmsHarvester::index, randomEngine(), edm::StreamID::value(), and vPoissonDistribution_.
Referenced by CalculatePileup().
|
private |
Definition at line 343 of file PileUp.cc.
References cmsHarvester::index, randomEngines_, and edm::StreamID::value().
Referenced by poissonDistr_OOT(), poissonDistribution(), and readPileUp().
void edm::PileUp::readPileUp | ( | edm::EventID const & | signal, |
std::vector< edm::EventID > & | ids, | ||
T | eventOperator, | ||
const int | 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 157 of file PileUp.h.
References eventPrincipal_, input_, fjr2json::lumi, edm::EventID::luminosityBlock(), randomEngine(), SiPixelLorentzAngle_cfi::read, edm::EventID::run(), samelumi_, and sequential_.
void edm::PileUp::reload | ( | const edm::EventSetup & | setup | ) |
Definition at line 215 of file PileUp.cc.
References MixingInputConfig::averageNumber(), averageNumber(), averageNumber_, HDQMDatabaseProducer::config, alignCSCRings::e, edm::hlt::Exception, fixed_, fixed_OOT_, MixingInputConfig::fixedOutOfTime(), edm::EventSetup::get(), histo_, histoDistribution_, i, inputType_, intFixed_OOT_, j, LogDebug, manage_OOT_, none_, MixingInputConfig::outOfTime(), poisson_, poisson_OOT_, probFunctionDistribution_, MixingInputConfig::probFunctionVariable(), MixingInputConfig::probValue(), MixingInputConfig::type(), type_, vPoissonDistribution_, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
void edm::PileUp::setupPileUpEvent | ( | const edm::EventSetup & | setup | ) |
Definition at line 206 of file PileUp.cc.
References eventPrincipal_, lumiPrincipal_, and provider_.
|
private |
Definition at line 80 of file PileUp.h.
Referenced by averageNumber(), CalculatePileup(), doPileUp(), poissonDistribution(), and reload().
|
private |
Definition at line 101 of file PileUp.h.
Referenced by PileUp(), playPileUp(), readPileUp(), and setupPileUpEvent().
|
private |
Definition at line 86 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
|
private |
Definition at line 82 of file PileUp.h.
Referenced by CalculatePileup(), and reload().
|
private |
Definition at line 83 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 99 of file PileUp.h.
Referenced by beginJob(), dropUnwantedBranches(), endJob(), PileUp(), playPileUp(), and readPileUp().
|
private |
|
private |
Definition at line 81 of file PileUp.h.
Referenced by CalculatePileup().
|
private |
Definition at line 96 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 95 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 102 of file PileUp.h.
Referenced by beginLuminosityBlock(), endLuminosityBlock(), and setupPileUpEvent().
|
private |
Definition at line 88 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 87 of file PileUp.h.
Referenced by CalculatePileup(), doPileUp(), PileUp(), and reload().
|
private |
|
private |
Definition at line 89 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 84 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 100 of file PileUp.h.
Referenced by beginLuminosityBlock(), beginRun(), and PileUp().
|
private |
Definition at line 98 of file PileUp.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), and PileUp().
|
private |
Definition at line 104 of file PileUp.h.
Referenced by beginJob(), beginLuminosityBlock(), beginRun(), endJob(), endLuminosityBlock(), endRun(), PileUp(), and setupPileUpEvent().
|
private |
Definition at line 92 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 107 of file PileUp.h.
Referenced by randomEngine().
|
private |
Definition at line 103 of file PileUp.h.
Referenced by beginLuminosityBlock(), beginRun(), and endRun().
|
private |
Definition at line 120 of file PileUp.h.
Referenced by readPileUp().
|
private |
Definition at line 117 of file PileUp.h.
Referenced by readPileUp().
|
private |
Definition at line 93 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 79 of file PileUp.h.
Referenced by Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::insertInto(), RandomRunSource.RandomRunSource::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), PileUp(), and reload().
|
private |
Definition at line 106 of file PileUp.h.
Referenced by poissonDistr_OOT().
|
private |
Definition at line 105 of file PileUp.h.
Referenced by poissonDistribution(), and reload().