6 #include <boost/bind.hpp>
13 #include "CLHEP/Random/RandPoissonQ.h"
14 #include "CLHEP/Random/RandFlat.h"
37 void readPileUp(
edm::EventID const & signal, std::vector<edm::EventID> &ids,
T eventOperator,
const int NumPU );
40 void playPileUp(
const std::vector<edm::EventID> &ids,
T eventOperator);
54 void CalculatePileup(
int MinBunch,
int MaxBunch, std::vector<int>& PileupSelection, std::vector<float>& TrueNumInteractions);
112 std::vector<edm::EventID>&
ids_;
119 ids_.push_back(eventPrincipal.
id());
141 ids.reserve(pileEventCnt);
170 if (read != pileEventCnt)
171 edm::LogWarning(
"PileUp") <<
"Could not read enough pileup events: only " << read <<
" out of " << pileEventCnt <<
" requested.";
void playPileUp(const std::vector< edm::EventID > &ids, T eventOperator)
void CalculatePileup(int MinBunch, int MaxBunch, std::vector< int > &PileupSelection, std::vector< float > &TrueNumInteractions)
const unsigned int & input() const
std::vector< edm::EventID > & ids_
void dropUnwantedBranches(std::vector< std::string > const &wantedBranches)
EventID const & id() const
void readPileUp(edm::EventID const &signal, std::vector< edm::EventID > &ids, T eventOperator, const int NumPU)
PileUp(ParameterSet const &pset, double averageNumber, TH1F *const histo, const bool playback)
LuminosityBlockNumber_t luminosityBlock() const
VectorInputSource *const input_
bool probFunctionDistribution_
double averageNumber() const
void input(unsigned int s)
RecordEventID(std::vector< edm::EventID > &ids, T &eventOperator)
CLHEP::RandPoisson * poissonDistr_OOT_
void reload(const edm::EventSetup &setup)
void operator()(EventPrincipal const &eventPrincipal)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
CLHEP::RandPoissonQ * poissonDistribution_