CMS 3D CMS Logo

PileUp.cc
Go to the documentation of this file.
20 
23 
29 
30 #include "CLHEP/Random/RandPoissonQ.h"
31 #include "CLHEP/Random/RandPoisson.h"
32 
33 #include <algorithm>
34 #include <memory>
35 #include "TMath.h"
36 
41 /*************************************************************************
42  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
43  * All rights reserved. *
44  * *
45  * For the licensing terms see $ROOTSYS/LICENSE. *
46  * For the list of contributors see $ROOTSYS/README/CREDITS. *
47  *************************************************************************/
48 
49 static Double_t GetRandom(TH1* th1, CLHEP::HepRandomEngine* rng) {
50  Int_t nbinsx = th1->GetNbinsX();
51  Double_t* fIntegral = th1->GetIntegral();
52  Double_t integral = fIntegral[nbinsx];
53 
54  if (integral == 0)
55  return 0;
56 
57  Double_t r1 = rng->flat();
58  Int_t ibin = TMath::BinarySearch(nbinsx, fIntegral, r1);
59  Double_t x = th1->GetBinLowEdge(ibin + 1);
60  if (r1 > fIntegral[ibin])
61  x += th1->GetBinWidth(ibin + 1) * (r1 - fIntegral[ibin]) / (fIntegral[ibin + 1] - fIntegral[ibin]);
62  return x;
63 }
65 
66 namespace edm {
67  PileUp::PileUp(ParameterSet const& pset, const std::shared_ptr<PileUpConfig>& config)
68  : type_(pset.getParameter<std::string>("type")),
69  Source_type_(config->sourcename_),
70  averageNumber_(config->averageNumber_),
71  intAverage_(static_cast<int>(averageNumber_)),
72  histo_(std::make_shared<TH1F>(*config->histo_)),
73  histoDistribution_(type_ == "histo"),
74  probFunctionDistribution_(type_ == "probFunction"),
75  poisson_(type_ == "poisson"),
76  fixed_(type_ == "fixed"),
77  none_(type_ == "none"),
78  fileNameHash_(0U),
79  productRegistry_(new SignallingProductRegistry),
81  ->makeVectorInputSource(
83  .release()),
84  processConfiguration_(new ProcessConfiguration(std::string("@MIXING"), getReleaseVersion(), getPassID())),
85  processContext_(new ProcessContext()),
86  eventPrincipal_(),
87  lumiPrincipal_(),
88  runPrincipal_(),
89  provider_(),
90  PoissonDistribution_(),
91  PoissonDistr_OOT_(),
92  randomEngine_(),
93  playback_(config->playback_),
94  sequential_(pset.getUntrackedParameter<bool>("sequential", false)) {
95  // Use the empty parameter set for the parameter set ID of our "@MIXING" process.
96  processConfiguration_->setParameterSetID(ParameterSet::emptyParameterSetID());
97  processContext_->setProcessConfiguration(processConfiguration_.get());
98 
99  if (pset.existsAs<std::vector<ParameterSet> >("producers", true)) {
100  std::vector<ParameterSet> producers = pset.getParameter<std::vector<ParameterSet> >("producers");
101  provider_.reset(new SecondaryEventProvider(producers, *productRegistry_, processConfiguration_));
102  }
103 
104  productRegistry_->setFrozen();
105 
106  // A modified HistoryAppender must be used for unscheduled processing.
107  eventPrincipal_.reset(new EventPrincipal(input_->productRegistry(),
108  std::make_shared<BranchIDListHelper>(),
109  std::make_shared<ThinnedAssociationsHelper>(),
110  *processConfiguration_,
111  nullptr));
112 
113  bool DB = type_ == "readDB";
114 
115  if (pset.exists("nbPileupEvents")) {
116  if (0 != pset.getParameter<edm::ParameterSet>("nbPileupEvents").getUntrackedParameter<int>("seed", 0)) {
117  edm::LogWarning("MixingModule") << "Parameter nbPileupEvents.seed is not supported";
118  }
119  }
120 
122  if (!rng.isAvailable()) {
123  throw cms::Exception("Configuration")
124  << "PileUp requires the RandomNumberGeneratorService\n"
125  "which is not present in the configuration file. You must add the service\n"
126  "in the configuration file or remove the modules that require it.";
127  }
128 
129  if (!(histoDistribution_ || probFunctionDistribution_ || poisson_ || fixed_ || none_) && !DB) {
130  throw cms::Exception("Illegal parameter value", "PileUp::PileUp(ParameterSet const& pset)")
131  << "'type' parameter (a string) has a value of '" << type_ << "'.\n"
132  << "Legal values are 'poisson', 'fixed', or 'none'\n";
133  }
134 
135  if (!DB) {
136  manage_OOT_ = pset.getUntrackedParameter<bool>("manage_OOT", false);
137 
138  // Check for string describing special processing. Add these here for individual cases
139  PU_Study_ = false;
140  Study_type_ = pset.getUntrackedParameter<std::string>("Special_Pileup_Studies", "");
141 
142  if (Study_type_ == "Fixed_ITPU_Vary_OOTPU") {
143  PU_Study_ = true;
144  intFixed_ITPU_ = pset.getUntrackedParameter<int>("intFixed_ITPU", 0);
145  }
146 
147  if (manage_OOT_) { // figure out what the parameters are
148 
149  // if (playback_) throw cms::Exception("Illegal parameter clash","PileUp::PileUp(ParameterSet const& pset)")
150  // << " manage_OOT option not allowed with playback ";
151 
152  std::string OOT_type = pset.getUntrackedParameter<std::string>("OOT_type");
153 
154  if (OOT_type == "Poisson" || OOT_type == "poisson") {
155  poisson_OOT_ = true;
156  } else if (OOT_type == "Fixed" || OOT_type == "fixed") {
157  fixed_OOT_ = true;
158  // read back the fixed number requested out-of-time
159  intFixed_OOT_ = pset.getUntrackedParameter<int>("intFixed_OOT", -1);
160  if (intFixed_OOT_ < 0) {
161  throw cms::Exception("Illegal parameter value", "PileUp::PileUp(ParameterSet const& pset)")
162  << " Fixed out-of-time pileup requested, but no fixed value given ";
163  }
164  } else {
165  throw cms::Exception("Illegal parameter value", "PileUp::PileUp(ParameterSet const& pset)")
166  << "'OOT_type' parameter (a string) has a value of '" << OOT_type << "'.\n"
167  << "Legal values are 'poisson' or 'fixed'\n";
168  }
169  edm::LogInfo("MixingModule") << " Out-of-time pileup will be generated with a " << OOT_type
170  << " distribution. ";
171  }
172  }
173 
174  if (Source_type_ == "cosmics") { // allow for some extra flexibility for mixing
175  minBunch_cosmics_ = pset.getUntrackedParameter<int>("minBunch_cosmics", -1000);
176  maxBunch_cosmics_ = pset.getUntrackedParameter<int>("maxBunch_cosmics", 1000);
177  }
178  } // end of constructor
179 
181  auto iID = eventPrincipal_->streamID(); // each producer has its own workermanager, so use default streamid
182  streamContext_.reset(new StreamContext(iID, processContext_.get()));
183  input_->doBeginJob();
184  if (provider_.get() != nullptr) {
185  //TODO for now, we do not support consumes from EventSetup
187  provider_->beginStream(iID, *streamContext_);
188  }
189  }
190 
191  void PileUp::endStream() {
192  if (provider_.get() != nullptr) {
193  provider_->endStream(streamContext_->streamID(), *streamContext_);
194  provider_->endJob();
195  }
196  input_->doEndJob();
197  }
198 
199  void PileUp::beginRun(const edm::Run& run, const edm::EventSetup& setup) {
200  if (provider_.get() != nullptr) {
201  auto aux = std::make_shared<RunAuxiliary>(run.runAuxiliary());
203  provider_->beginRun(*runPrincipal_, setup.impl(), run.moduleCallingContext(), *streamContext_);
204  }
205  }
207  if (provider_.get() != nullptr) {
209  lumiPrincipal_->setAux(lumi.luminosityBlockAuxiliary());
210  lumiPrincipal_->setRunPrincipal(runPrincipal_);
211  provider_->beginLuminosityBlock(*lumiPrincipal_, setup.impl(), lumi.moduleCallingContext(), *streamContext_);
212  }
213  }
214 
215  void PileUp::endRun(const edm::Run& run, const edm::EventSetup& setup) {
216  if (provider_.get() != nullptr) {
217  provider_->endRun(*runPrincipal_, setup.impl(), run.moduleCallingContext(), *streamContext_);
218  }
219  }
221  if (provider_.get() != nullptr) {
222  provider_->endLuminosityBlock(*lumiPrincipal_, setup.impl(), lumi.moduleCallingContext(), *streamContext_);
223  }
224  }
225 
227  if (provider_.get() != nullptr) {
228  // note: run and lumi numbers must be modified to match lumiPrincipal_
229  eventPrincipal_->setLuminosityBlockPrincipal(lumiPrincipal_.get());
230  eventPrincipal_->setRunAndLumiNumber(lumiPrincipal_->run(), lumiPrincipal_->luminosityBlock());
231  provider_->setupPileUpEvent(*eventPrincipal_, setup.impl(), *streamContext_);
232  }
233  }
234 
235  void PileUp::reload(const edm::EventSetup& setup) {
236  //get the required parameters from DB.
238  setup.get<MixingRcd>().get(configM);
239 
240  const MixingInputConfig& config = configM->config(inputType_);
241 
242  //get the type
243  type_ = config.type();
244  //set booleans
245  histoDistribution_ = type_ == "histo";
246  probFunctionDistribution_ = type_ == "probFunction";
247  poisson_ = type_ == "poisson";
248  fixed_ = type_ == "fixed";
249  none_ = type_ == "none";
250 
251  if (histoDistribution_)
252  edm::LogError("MisConfiguration") << "type histo cannot be reloaded from DB, yet";
253 
254  if (fixed_) {
256  } else if (poisson_) {
257  averageNumber_ = config.averageNumber();
258  if (PoissonDistribution_) {
259  PoissonDistribution_.reset(new CLHEP::RandPoissonQ(PoissonDistribution_->engine(), averageNumber_));
260  }
261  } else if (probFunctionDistribution_) {
262  //need to reload the histogram from DB
263  const std::vector<int>& dataProbFunctionVar = config.probFunctionVariable();
264  std::vector<double> dataProb = config.probValue();
265 
266  int varSize = (int)dataProbFunctionVar.size();
267  int probSize = (int)dataProb.size();
268 
269  if ((dataProbFunctionVar[0] != 0) || (dataProbFunctionVar[varSize - 1] != (varSize - 1)))
270  throw cms::Exception("BadProbFunction")
271  << "Please, check the variables of the probability function! The first variable should be 0 and the "
272  "difference between two variables should be 1."
273  << std::endl;
274 
275  // Complete the vector containing the probability function data
276  // with the values "0"
277  if (probSize < varSize) {
278  edm::LogWarning("MixingModule") << " The probability function data will be completed with "
279  << (varSize - probSize) << " values 0.";
280 
281  for (int i = 0; i < (varSize - probSize); i++)
282  dataProb.push_back(0);
283 
284  probSize = dataProb.size();
285  edm::LogInfo("MixingModule") << " The number of the P(x) data set after adding the values 0 is " << probSize;
286  }
287 
288  // Create an histogram with the data from the probability function provided by the user
289  int xmin = (int)dataProbFunctionVar[0];
290  int xmax = (int)dataProbFunctionVar[varSize - 1] + 1; // need upper edge to be one beyond last value
291  int numBins = varSize;
292 
293  edm::LogInfo("MixingModule") << "An histogram will be created with " << numBins << " bins in the range (" << xmin
294  << "," << xmax << ")." << std::endl;
295 
296  histo_.reset(new TH1F("h", "Histo from the user's probability function", numBins, xmin, xmax));
297 
298  LogDebug("MixingModule") << "Filling histogram with the following data:" << std::endl;
299 
300  for (int j = 0; j < numBins; j++) {
301  LogDebug("MixingModule") << " x = " << dataProbFunctionVar[j] << " P(x) = " << dataProb[j];
302  histo_->Fill(dataProbFunctionVar[j] + 0.5,
303  dataProb[j]); // assuming integer values for the bins, fill bin centers, not edges
304  }
305 
306  // Check if the histogram is normalized
307  if (std::abs(histo_->Integral() - 1) > 1.0e-02) {
308  throw cms::Exception("BadProbFunction") << "The probability function should be normalized!!! " << std::endl;
309  }
310  averageNumber_ = histo_->GetMean();
311  }
312 
313  int oot = config.outOfTime();
314  manage_OOT_ = false;
315  if (oot == 1) {
316  manage_OOT_ = true;
317  poisson_OOT_ = false;
318  fixed_OOT_ = true;
319  intFixed_OOT_ = config.fixedOutOfTime();
320  } else if (oot == 2) {
321  manage_OOT_ = true;
322  poisson_OOT_ = true;
323  fixed_OOT_ = false;
324  }
325  }
326  PileUp::~PileUp() {}
327 
328  std::unique_ptr<CLHEP::RandPoissonQ> const& PileUp::poissonDistribution(StreamID const& streamID) {
329  if (!PoissonDistribution_) {
330  CLHEP::HepRandomEngine& engine = *randomEngine(streamID);
331  PoissonDistribution_.reset(new CLHEP::RandPoissonQ(engine, averageNumber_));
332  }
333  return PoissonDistribution_;
334  }
335 
336  std::unique_ptr<CLHEP::RandPoisson> const& PileUp::poissonDistr_OOT(StreamID const& streamID) {
337  if (!PoissonDistr_OOT_) {
338  CLHEP::HepRandomEngine& engine = *randomEngine(streamID);
339  PoissonDistr_OOT_.reset(new CLHEP::RandPoisson(engine));
340  }
341  return PoissonDistr_OOT_;
342  }
343 
344  CLHEP::HepRandomEngine* PileUp::randomEngine(StreamID const& streamID) {
345  if (!randomEngine_) {
347  randomEngine_ = &rng->getEngine(streamID);
348  }
349  return randomEngine_;
350  }
351 
352  void PileUp::CalculatePileup(int MinBunch,
353  int MaxBunch,
354  std::vector<int>& PileupSelection,
355  std::vector<float>& TrueNumInteractions,
356  StreamID const& streamID) {
357  // if we are managing the distribution of out-of-time pileup separately, select the distribution for bunch
358  // crossing zero first, save it for later.
359 
360  int nzero_crossing = -1;
361  double Fnzero_crossing = -1;
362 
363  if (manage_OOT_) {
364  if (none_) {
365  nzero_crossing = 0;
366  } else if (poisson_) {
367  nzero_crossing = poissonDistribution(streamID)->fire();
368  } else if (fixed_) {
369  nzero_crossing = intAverage_;
371  // RANDOM_NUMBER_ERROR
372  // Random number should be generated by the engines from the
373  // RandomNumberGeneratorService. This appears to use the global
374  // engine in ROOT. This is not thread safe unless the module using
375  // it is a one module and declares a shared resource and all
376  // other modules using it also declare the same shared resource.
377  // This also breaks replay.
378  double d = GetRandom(histo_.get(), randomEngine(streamID));
379  //n = (int) floor(d + 0.5); // incorrect for bins with integer edges
380  Fnzero_crossing = d;
381  nzero_crossing = int(d);
382  }
383  }
384 
385  for (int bx = MinBunch; bx < MaxBunch + 1; ++bx) {
386  if (manage_OOT_) {
387  if (bx == 0 && !poisson_OOT_) {
388  PileupSelection.push_back(nzero_crossing);
389  TrueNumInteractions.push_back(nzero_crossing);
390  } else {
391  if (poisson_OOT_) {
392  if (PU_Study_ && (Study_type_ == "Fixed_ITPU_Vary_OOTPU") && bx == 0) {
393  PileupSelection.push_back(intFixed_ITPU_);
394  } else {
395  PileupSelection.push_back(poissonDistr_OOT(streamID)->fire(Fnzero_crossing));
396  }
397  TrueNumInteractions.push_back(Fnzero_crossing);
398  } else {
399  PileupSelection.push_back(intFixed_OOT_);
400  TrueNumInteractions.push_back(intFixed_OOT_);
401  }
402  }
403  } else {
404  if (none_) {
405  PileupSelection.push_back(0);
406  TrueNumInteractions.push_back(0.);
407  } else if (poisson_) {
408  PileupSelection.push_back(poissonDistribution(streamID)->fire());
409  TrueNumInteractions.push_back(averageNumber_);
410  } else if (fixed_) {
411  PileupSelection.push_back(intAverage_);
412  TrueNumInteractions.push_back(intAverage_);
414  // RANDOM_NUMBER_ERROR
415  // Random number should be generated by the engines from the
416  // RandomNumberGeneratorService. This appears to use the global
417  // engine in ROOT. This is not thread safe unless the module using
418  // it is a one module and declares a shared resource and all
419  // other modules using it also declare the same shared resource.
420  // This also breaks replay.
421  double d = GetRandom(histo_.get(), randomEngine(streamID));
422  PileupSelection.push_back(int(d));
423  TrueNumInteractions.push_back(d);
424  }
425  }
426  }
427  }
428 
429 } //namespace edm
edm::PileUp::beginStream
void beginStream(edm::StreamID)
Definition: PileUp.cc:179
edm::PileUp::reload
void reload(const edm::EventSetup &setup)
Definition: PileUp.cc:234
edm::PileUp::processContext_
std::shared_ptr< ProcessContext > processContext_
Definition: PileUp.h:135
edm::StreamID
Definition: StreamID.h:30
ThinnedAssociationsHelper.h
MixingRcd
Definition: MixingRcd.h:24
mps_fire.i
i
Definition: mps_fire.py:355
GetRandom
static Double_t GetRandom(TH1 *th1, CLHEP::HepRandomEngine *rng)
Definition: PileUp.cc:48
MessageLogger.h
edm::eventsetup::ESRecordsToProxyIndices
Definition: ESRecordsToProxyIndices.h:35
edm::PileUp::intAverage_
const int intAverage_
Definition: PileUp.h:111
edm::PileUp::randomEngine
CLHEP::HepRandomEngine * randomEngine(StreamID const &streamID)
Definition: PileUp.cc:343
edm::PileUp::fixed_OOT_
bool fixed_OOT_
Definition: PileUp.h:120
dqmPostProcessing_online.DB
DB
Definition: dqmPostProcessing_online.py:11
ESHandle.h
edm::PileUp::PileUp
PileUp(ParameterSet const &pset, const std::shared_ptr< PileUpConfig > &config)
Definition: PileUp.cc:66
edm::PileUp::streamContext_
std::shared_ptr< StreamContext > streamContext_
Definition: PileUp.h:136
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::PileUp::poissonDistr_OOT
std::unique_ptr< CLHEP::RandPoisson > const & poissonDistr_OOT(StreamID const &streamID)
Definition: PileUp.cc:335
BranchIDListHelper.h
edm::Run
Definition: Run.h:45
MixingModuleConfig.h
LuminosityBlock.h
edm::PileUp::probFunctionDistribution_
bool probFunctionDistribution_
Definition: PileUp.h:114
edm
HLT enums.
Definition: AlignableModifier.h:19
RandomNumberGenerator.h
edm::ProcessContext
Definition: ProcessContext.h:27
edm::PileUp::poisson_
bool poisson_
Definition: PileUp.h:115
edm::LogInfo
Definition: MessageLogger.h:254
edm::VectorInputSourceDescription
Definition: VectorInputSourceDescription.h:18
edm::PileUp::processConfiguration_
std::shared_ptr< ProcessConfiguration > processConfiguration_
Definition: PileUp.h:134
edm::PileUp::inputType_
unsigned int inputType_
Definition: PileUp.h:107
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::PileUp::fixed_
bool fixed_
Definition: PileUp.h:116
SignallingProductRegistry.h
edm::PileUp::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: PileUp.h:143
edm::ParameterSet::emptyParameterSetID
static ParameterSetID emptyParameterSetID()
Definition: ParameterSet.cc:87
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
edm::PileUp::PU_Study_
bool PU_Study_
Definition: PileUp.h:122
ESRecordsToProxyIndices.h
edm::PileUp::setupPileUpEvent
void setupPileUpEvent(const edm::EventSetup &setup)
Definition: PileUp.cc:225
edm::getPassID
std::string getPassID()
Definition: GetPassID.h:7
edm::PileUp::intFixed_OOT_
int intFixed_OOT_
Definition: PileUp.h:125
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
MixingModuleConfig::config
const MixingInputConfig & config(unsigned int i=0) const
Definition: MixingModuleConfig.h:76
ModuleDescription.h
ActivityRegistry.h
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi.OOT_type
OOT_type
manage out-of-time pileup setting this to True means that the out-of-time pileup will have a differen...
Definition: mix_2012_lumiLevel_15_20_50ns_PoissonOOTPU_cfi.py:59
config
Definition: config.py:1
HLT_2018_cff.producers
producers
Definition: HLT_2018_cff.py:11702
edm::EventPrincipal
Definition: EventPrincipal.h:46
edm::StreamContext
Definition: StreamContext.h:31
EventPrincipal.h
funct::integral
Integral< F, X >::type integral(const F &f)
Definition: Integral.h:70
Service.h
edm::SecondaryEventProvider
Definition: SecondaryEventProvider.h:14
edm::PileUp::none_
bool none_
Definition: PileUp.h:117
vertices_cff.x
x
Definition: vertices_cff.py:29
Run.h
edm::ESHandle
Definition: DTSurvey.h:22
edm::PileUp::poisson_OOT_
bool poisson_OOT_
Definition: PileUp.h:119
edm::PileUp::averageNumber_
double averageNumber_
Definition: PileUp.h:110
edm::PileUp::averageNumber
double averageNumber() const
Definition: PileUp.h:64
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogWarning
Definition: MessageLogger.h:141
edm::PileUp::runPrincipal_
std::shared_ptr< RunPrincipal > runPrincipal_
Definition: PileUp.h:139
VectorInputSourceFactory.h
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::ParameterSet
Definition: ParameterSet.h:36
edm::PileUp::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
Definition: PileUp.cc:205
GetReleaseVersion.h
edm::LogError
Definition: MessageLogger.h:183
edm::PileUp::~PileUp
~PileUp()
Definition: PileUp.cc:325
fetchall_from_DQM_v2.release
release
Definition: fetchall_from_DQM_v2.py:92
edm::PileUp::endStream
void endStream()
Definition: PileUp.cc:190
edm::PileUp::eventPrincipal_
std::unique_ptr< EventPrincipal > eventPrincipal_
Definition: PileUp.h:137
edm::PileUp::PoissonDistr_OOT_
std::unique_ptr< CLHEP::RandPoisson > PoissonDistr_OOT_
Definition: PileUp.h:142
edm::get
T const & get(Event const &event, InputTag const &tag) noexcept(false)
Definition: Event.h:669
edm::PileUp::endRun
void endRun(const edm::Run &run, const edm::EventSetup &setup)
Definition: PileUp.cc:214
printConversionInfo.aux
aux
Definition: printConversionInfo.py:19
MixingRcd.h
edm::Service< edm::RandomNumberGenerator >
createfilelist.int
int
Definition: createfilelist.py:10
edm::PileUp::type_
std::string type_
Definition: PileUp.h:108
edm::PileUp::productRegistry_
std::shared_ptr< ProductRegistry > productRegistry_
Definition: PileUp.h:132
GetPassID.h
edm::PileUp::histo_
std::shared_ptr< TH1F > histo_
Definition: PileUp.h:112
edm::EventSetup
Definition: EventSetup.h:57
edm::PileUp::manage_OOT_
bool manage_OOT_
Definition: PileUp.h:118
edm::PileUp::input_
const std::unique_ptr< VectorInputSource > input_
Definition: PileUp.h:133
edm::PileUp::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumi, const edm::EventSetup &setup)
Definition: PileUp.cc:219
edm::PileUp::beginRun
void beginRun(const edm::Run &run, const edm::EventSetup &setup)
Definition: PileUp.cc:198
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
writedatasetfile.run
run
Definition: writedatasetfile.py:27
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition: TrackerOfflineValidation_Dqm_cff.py:11
edm::getReleaseVersion
std::string getReleaseVersion()
Definition: GetReleaseVersion.cc:7
Exception
Definition: hltDiff.cc:246
edm::PileUp::poissonDistribution
std::unique_ptr< CLHEP::RandPoissonQ > const & poissonDistribution(StreamID const &streamID)
Definition: PileUp.cc:327
SecondaryEventProvider.h
VectorInputSourceDescription.h
EventSetup.h
edm::PileUp::intFixed_ITPU_
int intFixed_ITPU_
Definition: PileUp.h:126
Exception.h
edm::PileUp::provider_
std::unique_ptr< SecondaryEventProvider > provider_
Definition: PileUp.h:140
ztail.d
d
Definition: ztail.py:151
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::PileUp::PoissonDistribution_
std::unique_ptr< CLHEP::RandPoissonQ > PoissonDistribution_
Definition: PileUp.h:141
ParameterSet.h
PileUp.h
edm::RunPrincipal
Definition: RunPrincipal.h:34
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition: TrackerOfflineValidation_Dqm_cff.py:10
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
MixingInputConfig
Definition: MixingModuleConfig.h:14
ProcessContext.h
lumi
Definition: LumiSectionData.h:20
StreamID.h
edm::VectorInputSourceFactory::get
static VectorInputSourceFactory const * get()
Definition: VectorInputSourceFactory.cc:20
edm::PileUp::Study_type_
std::string Study_type_
Definition: PileUp.h:123
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14
edm::PileUp::histoDistribution_
bool histoDistribution_
Definition: PileUp.h:113
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::SignallingProductRegistry
Definition: SignallingProductRegistry.h:32
edm::PileUp::CalculatePileup
void CalculatePileup(int MinBunch, int MaxBunch, std::vector< int > &PileupSelection, std::vector< float > &TrueNumInteractions, StreamID const &)
Definition: PileUp.cc:351
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::PileUp::lumiPrincipal_
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
Definition: PileUp.h:138