1 #ifndef Mixing_Base_PileUp_h
2 #define Mixing_Base_PileUp_h
7 #include <boost/bind.hpp>
14 #include "CLHEP/Random/RandPoissonQ.h"
15 #include "CLHEP/Random/RandFlat.h"
38 void readPileUp(
edm::EventID const & signal, std::vector<edm::EventID> &ids,
T eventOperator,
const int NumPU );
41 void playPileUp(
const std::vector<edm::EventID> &ids,
T eventOperator);
47 input_->dropUnwantedBranches(wantedBranches);
55 void CalculatePileup(
int MinBunch,
int MaxBunch, std::vector<int>& PileupSelection, std::vector<float>& TrueNumInteractions);
86 std::unique_ptr<VectorInputSource>
const input_;
116 std::vector<edm::EventID>&
ids_;
123 ids_.push_back(eventPrincipal.
id());
145 ids.reserve(pileEventCnt);
174 if (read != pileEventCnt)
175 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)
std::unique_ptr< ProductRegistry > productRegistry_
const unsigned int & input() const
std::vector< edm::EventID > & ids_
std::unique_ptr< CLHEP::RandPoisson > poissonDistr_OOT_
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
bool probFunctionDistribution_
std::unique_ptr< ProcessConfiguration > processConfiguration_
double averageNumber() const
std::unique_ptr< VectorInputSource > const input_
void input(unsigned int s)
RecordEventID(std::vector< edm::EventID > &ids, T &eventOperator)
void reload(const edm::EventSetup &setup)
std::unique_ptr< CLHEP::RandPoissonQ > poissonDistribution_
std::unique_ptr< EventPrincipal > eventPrincipal_
void operator()(EventPrincipal const &eventPrincipal)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")