#include <PileUp.h>
Public Member Functions | |
double | averageNumber () const |
void | CalculatePileup (int MinBunch, int MaxBunch, std::vector< int > &PileupSelection, std::vector< float > &TrueNumInteractions) |
bool | doPileUp () |
void | dropUnwantedBranches (std::vector< std::string > const &wantedBranches) |
void | endJob () |
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) |
void | reload (const edm::EventSetup &setup) |
~PileUp () | |
Private Attributes | |
double | averageNumber_ |
std::unique_ptr< EventPrincipal > | eventPrincipal_ |
bool | fixed_ |
bool | fixed_OOT_ |
TH1F * | h1f |
TH1F * | histo_ |
bool | histoDistribution_ |
TH1F * | hprobFunction |
std::unique_ptr < VectorInputSource > const | input_ |
unsigned int | inputType_ |
int const | intAverage_ |
int | intFixed_ITPU_ |
int | intFixed_OOT_ |
bool | manage_OOT_ |
bool | none_ |
bool | playback_ |
bool | poisson_ |
bool | poisson_OOT_ |
std::unique_ptr < CLHEP::RandPoisson > | poissonDistr_OOT_ |
std::unique_ptr < CLHEP::RandPoissonQ > | poissonDistribution_ |
TFile * | probFileHisto |
bool | probFunctionDistribution_ |
std::unique_ptr < ProcessConfiguration > | processConfiguration_ |
std::unique_ptr< ProductRegistry > | productRegistry_ |
bool | PU_Study_ |
bool | samelumi_ |
int | seed_ |
bool | sequential_ |
std::string | Study_type_ |
std::string | type_ |
|
explicit |
Definition at line 28 of file PileUp.cc.
References averageNumber_, eventPrincipal_, edm::hlt::Exception, edm::ParameterSet::exists(), fixed_, fixed_OOT_, edm::RandomNumberGenerator::getEngine(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), histoDistribution_, edm::ParameterSet::id(), input_, intFixed_ITPU_, intFixed_OOT_, edm::Service< T >::isAvailable(), manage_OOT_, none_, poisson_, poisson_OOT_, poissonDistr_OOT_, poissonDistribution_, probFunctionDistribution_, processConfiguration_, PU_Study_, edm::ParameterSet::registerIt(), seed_, AlCaHLTBitMon_QueryRunRegistry::string, Study_type_, and type_.
|
inline |
void edm::PileUp::CalculatePileup | ( | int | MinBunch, |
int | MaxBunch, | ||
std::vector< int > & | PileupSelection, | ||
std::vector< float > & | TrueNumInteractions | ||
) |
Definition at line 254 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 |
|
inline |
|
inline |
void edm::PileUp::playPileUp | ( | const std::vector< edm::EventID > & | ids, |
T | eventOperator | ||
) |
Definition at line 182 of file PileUp.h.
References eventPrincipal_, and input_.
|
inline |
void edm::PileUp::readPileUp | ( | edm::EventID const & | signal, |
std::vector< edm::EventID > & | ids, | ||
T | eventOperator, | ||
const int | pileEventCnt | ||
) |
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 141 of file PileUp.h.
References eventPrincipal_, input_, fjr2json::lumi, edm::EventID::luminosityBlock(), SiPixelLorentzAngle_cfi::read, edm::EventID::run(), samelumi_, and sequential_.
void edm::PileUp::reload | ( | const edm::EventSetup & | setup | ) |
Definition at line 151 of file PileUp.cc.
References MixingInputConfig::averageNumber(), averageNumber(), averageNumber_, HDQMDatabaseProducer::config, alignCSCRings::e, edm::hlt::Exception, fixed_, fixed_OOT_, MixingInputConfig::fixedOutOfTime(), edm::EventSetup::get(), edm::RandomNumberGenerator::getEngine(), histo_, histoDistribution_, i, inputType_, intFixed_OOT_, j, LogDebug, manage_OOT_, none_, MixingInputConfig::outOfTime(), poisson_, poisson_OOT_, poissonDistr_OOT_, poissonDistribution_, probFunctionDistribution_, MixingInputConfig::probFunctionVariable(), MixingInputConfig::probValue(), MixingInputConfig::type(), type_, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
|
private |
Definition at line 67 of file PileUp.h.
Referenced by averageNumber(), CalculatePileup(), doPileUp(), PileUp(), and reload().
|
private |
Definition at line 88 of file PileUp.h.
Referenced by PileUp(), playPileUp(), and readPileUp().
|
private |
Definition at line 73 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
|
private |
Definition at line 69 of file PileUp.h.
Referenced by CalculatePileup(), and reload().
|
private |
Definition at line 70 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 86 of file PileUp.h.
Referenced by dropUnwantedBranches(), endJob(), PileUp(), playPileUp(), and readPileUp().
|
private |
|
private |
Definition at line 68 of file PileUp.h.
Referenced by CalculatePileup().
|
private |
Definition at line 83 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 82 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 75 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 74 of file PileUp.h.
Referenced by CalculatePileup(), doPileUp(), PileUp(), and reload().
|
private |
|
private |
Definition at line 76 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 90 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 89 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
Definition at line 71 of file PileUp.h.
Referenced by CalculatePileup(), PileUp(), and reload().
|
private |
|
private |
|
private |
Definition at line 79 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 104 of file PileUp.h.
Referenced by readPileUp().
|
private |
Definition at line 101 of file PileUp.h.
Referenced by readPileUp().
|
private |
Definition at line 80 of file PileUp.h.
Referenced by CalculatePileup(), and PileUp().
|
private |
Definition at line 66 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().