Main Page
Namespaces
Classes
Package Documentation
Mixing
Base
interface
PoissonPUGenerator.h
Go to the documentation of this file.
1
#ifndef POISSON_PU_GENERATOR_H
2
#define POISSON_PU_GENERATOR_H
3
4
#include "
Mixing/Base/interface/PUGenerator.h
"
5
#include "CLHEP/Random/RandPoissonQ.h"
6
7
/*----------------------------------------------------------------------
8
9
----------------------------------------------------------------------*/
10
11
namespace
edm
12
{
13
14
class
PoissonPUGenerator
:
public
PUGenerator
15
{
16
public
:
17
explicit
PoissonPUGenerator
(
double
av) :
average
(av){ }
18
~PoissonPUGenerator
() { }
19
20
private
:
21
virtual
unsigned
int
numberOfEventsPerBunch
()
const
{
return
CLHEP::RandPoissonQ::fire(
average
);}
22
double
average
;
23
};
24
}
//edm
25
26
#endif
average
Definition:
average.py:1
edm::PoissonPUGenerator::PoissonPUGenerator
PoissonPUGenerator(double av)
Definition:
PoissonPUGenerator.h:17
edm::PoissonPUGenerator::numberOfEventsPerBunch
virtual unsigned int numberOfEventsPerBunch() const
Definition:
PoissonPUGenerator.h:21
edm::PUGenerator
Definition:
PUGenerator.h:11
PUGenerator.h
edm::PoissonPUGenerator
Definition:
PoissonPUGenerator.h:14
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::PoissonPUGenerator::average
double average
Definition:
PoissonPUGenerator.h:22
edm::PoissonPUGenerator::~PoissonPUGenerator
~PoissonPUGenerator()
Definition:
PoissonPUGenerator.h:18
Generated for CMSSW Reference Manual by
1.8.11