CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::PileUp Class Reference

#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< EventPrincipaleventPrincipal_
 
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< ProductRegistryproductRegistry_
 
bool PU_Study_
 
bool samelumi_
 
int seed_
 
bool sequential_
 
std::string Study_type_
 
std::string type_
 

Detailed Description

Definition at line 32 of file PileUp.h.

Constructor & Destructor Documentation

edm::PileUp::PileUp ( ParameterSet const &  pset,
double  averageNumber,
TH1F *const  histo,
const bool  playback 
)
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_.

28  :
29  type_(pset.getParameter<std::string>("type")),
31  intAverage_(static_cast<int>(averageNumber)),
32  histo_(histo),
33  histoDistribution_(type_ == "histo"),
34  probFunctionDistribution_(type_ == "probFunction"),
35  poisson_(type_ == "poisson"),
36  fixed_(type_ == "fixed"),
37  none_(type_ == "none"),
39  input_(VectorInputSourceFactory::get()->makeVectorInputSource(pset, InputSourceDescription(
40  ModuleDescription(),
42  boost::shared_ptr<BranchIDListHelper>(new BranchIDListHelper),
43  boost::shared_ptr<ActivityRegistry>(new ActivityRegistry),
44  -1, -1
45  )).release()),
46  processConfiguration_(new ProcessConfiguration(std::string("@MIXING"), getReleaseVersion(), getPassID())),
51  sequential_(pset.getUntrackedParameter<bool>("sequential", false)),
52  samelumi_(pset.getUntrackedParameter<bool>("sameLumiBlock", false)),
53  seed_(0) {
54 
55  // Use the empty parameter set for the parameter set ID of our "@MIXING" process.
56  ParameterSet emptyPSet;
57  emptyPSet.registerIt();
58  processConfiguration_->setParameterSetID(emptyPSet.id());
59 
60  input_->productRegistry()->setFrozen();
61 
62  // A modified HistoryAppender must be used for unscheduled processing.
63  eventPrincipal_.reset(new EventPrincipal(input_->productRegistry(),
64  input_->branchIDListHelper(),
66  nullptr));
67 
68  if (pset.exists("nbPileupEvents")) {
69  seed_=pset.getParameter<edm::ParameterSet>("nbPileupEvents").getUntrackedParameter<int>("seed",0);
70  }
71 
72  bool DB=type_=="readDB";
73 
75  if (!rng.isAvailable()) {
76  throw cms::Exception("Configuration")
77  << "PileUp requires the RandomNumberGeneratorService\n"
78  "which is not present in the configuration file. You must add the service\n"
79  "in the configuration file or remove the modules that require it.";
80  }
81 
82  CLHEP::HepRandomEngine& engine = rng->getEngine();
83  poissonDistribution_.reset(new CLHEP::RandPoissonQ(engine, averageNumber_));
84 
85  // Get seed for the case when using user histogram or probability function
87  if(seed_ !=0) {
88  gRandom->SetSeed(seed_);
89  LogInfo("MixingModule") << " Change seed for " << type_ << " mode. The seed is set to " << seed_;
90  }
91  else {
92  gRandom->SetSeed(engine.getSeed());
93  }
94  }
95 
96 
98  throw cms::Exception("Illegal parameter value","PileUp::PileUp(ParameterSet const& pset)")
99  << "'type' parameter (a string) has a value of '" << type_ << "'.\n"
100  << "Legal values are 'poisson', 'fixed', or 'none'\n";
101  }
102 
103  if (!DB){
104  manage_OOT_ = pset.getUntrackedParameter<bool>("manage_OOT", false);
105 
106  // Check for string describing special processing. Add these here for individual cases
107 
108  PU_Study_ = false;
109  Study_type_ = "";
110 
111  Study_type_ = pset.getUntrackedParameter<std::string>("Special_Pileup_Studies", "");
112 
113  if(Study_type_ == "Fixed_ITPU_Vary_OOTPU") {
114 
115  PU_Study_ = true;
116  intFixed_ITPU_ = pset.getUntrackedParameter<int>("intFixed_ITPU", 0);
117 
118  }
119 
120  if(manage_OOT_) { // figure out what the parameters are
121 
122  // if (playback_) throw cms::Exception("Illegal parameter clash","PileUp::PileUp(ParameterSet const& pset)")
123  // << " manage_OOT option not allowed with playback ";
124 
125  std::string OOT_type = pset.getUntrackedParameter<std::string>("OOT_type");
126 
127  if(OOT_type == "Poisson" || OOT_type == "poisson") {
128  poisson_OOT_ = true;
129  poissonDistr_OOT_.reset(new CLHEP::RandPoisson(engine));
130  }
131  else if(OOT_type == "Fixed" || OOT_type == "fixed") {
132  fixed_OOT_ = true;
133  // read back the fixed number requested out-of-time
134  intFixed_OOT_ = pset.getUntrackedParameter<int>("intFixed_OOT", -1);
135  if(intFixed_OOT_ < 0) {
136  throw cms::Exception("Illegal parameter value","PileUp::PileUp(ParameterSet const& pset)")
137  << " Fixed out-of-time pileup requested, but no fixed value given ";
138  }
139  }
140  else {
141  throw cms::Exception("Illegal parameter value","PileUp::PileUp(ParameterSet const& pset)")
142  << "'OOT_type' parameter (a string) has a value of '" << OOT_type << "'.\n"
143  << "Legal values are 'poisson' or 'fixed'\n";
144  }
145  edm::LogInfo("MixingModule") <<" Out-of-time pileup will be generated with a " << OOT_type << " distribution. " ;
146  }
147  }
148 
149  }
std::unique_ptr< ProductRegistry > productRegistry_
Definition: PileUp.h:85
bool manage_OOT_
Definition: PileUp.h:75
std::string getPassID()
Definition: GetPassID.h:8
std::unique_ptr< CLHEP::RandPoisson > poissonDistr_OOT_
Definition: PileUp.h:90
TH1F * histo_
Definition: PileUp.h:69
bool fixed_
Definition: PileUp.h:73
int const intAverage_
Definition: PileUp.h:68
bool probFunctionDistribution_
Definition: PileUp.h:71
std::string Study_type_
Definition: PileUp.h:80
std::unique_ptr< ProcessConfiguration > processConfiguration_
Definition: PileUp.h:87
bool histoDistribution_
Definition: PileUp.h:70
bool poisson_
Definition: PileUp.h:72
double averageNumber() const
Definition: PileUp.h:43
bool playback_
Definition: PileUp.h:98
bool samelumi_
Definition: PileUp.h:104
std::unique_ptr< VectorInputSource > const input_
Definition: PileUp.h:86
bool poisson_OOT_
Definition: PileUp.h:76
bool isAvailable() const
Definition: Service.h:47
int intFixed_ITPU_
Definition: PileUp.h:83
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
bool PU_Study_
Definition: PileUp.h:79
bool fixed_OOT_
Definition: PileUp.h:77
std::string getReleaseVersion()
static VectorInputSourceFactory * get()
std::string type_
Definition: PileUp.h:66
bool sequential_
Definition: PileUp.h:101
std::unique_ptr< CLHEP::RandPoissonQ > poissonDistribution_
Definition: PileUp.h:89
int seed_
Definition: PileUp.h:107
bool none_
Definition: PileUp.h:74
tuple playback
Definition: Playback_cff.py:20
int intFixed_OOT_
Definition: PileUp.h:82
std::unique_ptr< EventPrincipal > eventPrincipal_
Definition: PileUp.h:88
double averageNumber_
Definition: PileUp.h:67
edm::PileUp::~PileUp ( )

Definition at line 251 of file PileUp.cc.

251  {
252  }

Member Function Documentation

double edm::PileUp::averageNumber ( ) const
inline

Definition at line 43 of file PileUp.h.

References averageNumber_.

Referenced by reload().

43 {return averageNumber_;}
double averageNumber_
Definition: PileUp.h:67
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_.

254  {
255 
256  // if we are managing the distribution of out-of-time pileup separately, select the distribution for bunch
257  // crossing zero first, save it for later.
258 
259  int nzero_crossing = -1;
260  double Fnzero_crossing = -1;
261 
262  if(manage_OOT_) {
263  if (none_){
264  nzero_crossing = 0;
265  }else if (poisson_){
266  nzero_crossing = poissonDistribution_->fire() ;
267  }else if (fixed_){
268  nzero_crossing = intAverage_ ;
270  double d = histo_->GetRandom();
271  //n = (int) floor(d + 0.5); // incorrect for bins with integer edges
272  Fnzero_crossing = d;
273  nzero_crossing = int(d);
274  }
275 
276  }
277 
278  for(int bx = MinBunch; bx < MaxBunch+1; ++bx) {
279 
280  if(manage_OOT_) {
281  if(bx==0 && !poisson_OOT_) {
282  PileupSelection.push_back(nzero_crossing) ;
283  TrueNumInteractions.push_back( nzero_crossing );
284  }
285  else{
286  if(poisson_OOT_) {
287  if(PU_Study_ && (Study_type_ == "Fixed_ITPU_Vary_OOTPU" ) && bx==0 ) {
288  PileupSelection.push_back(intFixed_ITPU_) ;
289  }
290  else{
291  PileupSelection.push_back(poissonDistr_OOT_->fire(Fnzero_crossing)) ;
292  }
293  TrueNumInteractions.push_back( Fnzero_crossing );
294  }
295  else {
296  PileupSelection.push_back(intFixed_OOT_) ;
297  TrueNumInteractions.push_back( intFixed_OOT_ );
298  }
299  }
300  }
301  else {
302  if (none_){
303  PileupSelection.push_back(0);
304  TrueNumInteractions.push_back( 0. );
305  }else if (poisson_){
306  PileupSelection.push_back(poissonDistribution_->fire());
307  TrueNumInteractions.push_back( averageNumber_ );
308  }else if (fixed_){
309  PileupSelection.push_back(intAverage_);
310  TrueNumInteractions.push_back( intAverage_ );
312  double d = histo_->GetRandom();
313  PileupSelection.push_back(int(d));
314  TrueNumInteractions.push_back( d );
315  }
316  }
317 
318  }
319  }
bool manage_OOT_
Definition: PileUp.h:75
std::unique_ptr< CLHEP::RandPoisson > poissonDistr_OOT_
Definition: PileUp.h:90
TH1F * histo_
Definition: PileUp.h:69
bool fixed_
Definition: PileUp.h:73
int const intAverage_
Definition: PileUp.h:68
bool probFunctionDistribution_
Definition: PileUp.h:71
std::string Study_type_
Definition: PileUp.h:80
bool histoDistribution_
Definition: PileUp.h:70
bool poisson_
Definition: PileUp.h:72
bool poisson_OOT_
Definition: PileUp.h:76
int intFixed_ITPU_
Definition: PileUp.h:83
bool PU_Study_
Definition: PileUp.h:79
std::unique_ptr< CLHEP::RandPoissonQ > poissonDistribution_
Definition: PileUp.h:89
bool none_
Definition: PileUp.h:74
int intFixed_OOT_
Definition: PileUp.h:82
double averageNumber_
Definition: PileUp.h:67
bool edm::PileUp::doPileUp ( )
inline

Definition at line 45 of file PileUp.h.

References averageNumber_, and none_.

45 {return none_ ? false : averageNumber_>0.;}
bool none_
Definition: PileUp.h:74
double averageNumber_
Definition: PileUp.h:67
void edm::PileUp::dropUnwantedBranches ( std::vector< std::string > const &  wantedBranches)
inline

Definition at line 46 of file PileUp.h.

References input_.

46  {
47  input_->dropUnwantedBranches(wantedBranches);
48  }
std::unique_ptr< VectorInputSource > const input_
Definition: PileUp.h:86
void edm::PileUp::endJob ( void  )
inline

Definition at line 49 of file PileUp.h.

References input_.

49  {
50  input_->doEndJob();
51  }
std::unique_ptr< VectorInputSource > const input_
Definition: PileUp.h:86
const unsigned int& edm::PileUp::input ( ) const
inline

Definition at line 61 of file PileUp.h.

References inputType_.

61 {return inputType_;}
unsigned int inputType_
Definition: PileUp.h:65
void edm::PileUp::input ( unsigned int  s)
inline

Definition at line 62 of file PileUp.h.

References inputType_, and alignCSCRings::s.

62 {inputType_=s;}
unsigned int inputType_
Definition: PileUp.h:65
template<typename T >
void edm::PileUp::playPileUp ( const std::vector< edm::EventID > &  ids,
T  eventOperator 
)

Definition at line 182 of file PileUp.h.

References eventPrincipal_, and input_.

182  {
183  //TrueNumInteractions.push_back( ids.size() ) ;
184  input_->loopSpecified(*eventPrincipal_,ids,eventOperator);
185  }
std::unique_ptr< VectorInputSource > const input_
Definition: PileUp.h:86
std::unique_ptr< EventPrincipal > eventPrincipal_
Definition: PileUp.h:88
bool edm::PileUp::poisson ( ) const
inline

Definition at line 44 of file PileUp.h.

References poisson_.

44 {return poisson_;}
bool poisson_
Definition: PileUp.h:72
template<typename T >
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_.

141  {
142 
143  // One reason PileUp is responsible for recording event IDs is
144  // that it is the one that knows how many events will be read.
145  ids.reserve(pileEventCnt);
146  RecordEventID<T> recorder(ids,eventOperator);
147  int read;
148  if (samelumi_) {
149  const edm::LuminosityBlockID lumi(signal.run(), signal.luminosityBlock());
150  if (sequential_)
151  read = input_->loopSequentialWithID(*eventPrincipal_, lumi, pileEventCnt, recorder);
152  else
153  read = input_->loopRandomWithID(*eventPrincipal_, lumi, pileEventCnt, recorder);
154  } else {
155  if (sequential_) {
156  // boost::bind creates a functor from recordEventForPlayback
157  // so that recordEventForPlayback can insert itself before
158  // the original eventOperator.
159 
160  read = input_->loopSequential(*eventPrincipal_, pileEventCnt, recorder);
161  //boost::bind(&PileUp::recordEventForPlayback<T>,
162  // boost::ref(*this), _1, boost::ref(ids),
163  // boost::ref(eventOperator))
164  // );
165 
166  } else {
167  read = input_->loopRandom(*eventPrincipal_, pileEventCnt, recorder);
168  // boost::bind(&PileUp::recordEventForPlayback<T>,
169  // boost::ref(*this), _1, boost::ref(ids),
170  // boost::ref(eventOperator))
171  // );
172  }
173  }
174  if (read != pileEventCnt)
175  edm::LogWarning("PileUp") << "Could not read enough pileup events: only " << read << " out of " << pileEventCnt << " requested.";
176  }
tuple lumi
Definition: fjr2json.py:35
bool samelumi_
Definition: PileUp.h:104
std::unique_ptr< VectorInputSource > const input_
Definition: PileUp.h:86
bool sequential_
Definition: PileUp.h:101
std::unique_ptr< EventPrincipal > eventPrincipal_
Definition: PileUp.h:88
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.

151  {
152  //get the required parameters from DB.
154  setup.get<MixingRcd>().get(configM);
155 
156  const MixingInputConfig & config=configM->config(inputType_);
157 
158  //get the type
159  type_=config.type();
160  //set booleans
161  histoDistribution_=type_ == "histo";
162  probFunctionDistribution_=type_ == "probFunction";
163  poisson_=type_ == "poisson";
164  fixed_=type_ == "fixed";
165  none_=type_ == "none";
166 
167  if (histoDistribution_) edm::LogError("MisConfiguration")<<"type histo cannot be reloaded from DB, yet";
168 
169  if (fixed_){
171  }
172  else if (poisson_)
173  {
174  averageNumber_=config.averageNumber();
176  CLHEP::HepRandomEngine& engine = rng->getEngine();
177  poissonDistribution_.reset(new CLHEP::RandPoissonQ(engine, averageNumber_));
178  }
179  else if (probFunctionDistribution_)
180  {
181  //need to reload the histogram from DB
182  const std::vector<int> & dataProbFunctionVar = config.probFunctionVariable();
183  std::vector<double> dataProb = config.probValue();
184 
185  int varSize = (int) dataProbFunctionVar.size();
186  int probSize = (int) dataProb.size();
187 
188  if ((dataProbFunctionVar[0] != 0) || (dataProbFunctionVar[varSize - 1] != (varSize - 1)))
189  throw cms::Exception("BadProbFunction") << "Please, check the variables of the probability function! The first variable should be 0 and the difference between two variables should be 1." << std::endl;
190 
191  // Complete the vector containing the probability function data
192  // with the values "0"
193  if (probSize < varSize){
194  edm::LogWarning("MixingModule") << " The probability function data will be completed with " <<(varSize - probSize) <<" values 0.";
195 
196  for (int i=0; i<(varSize - probSize); i++) dataProb.push_back(0);
197 
198  probSize = dataProb.size();
199  edm::LogInfo("MixingModule") << " The number of the P(x) data set after adding the values 0 is " << probSize;
200  }
201 
202  // Create an histogram with the data from the probability function provided by the user
203  int xmin = (int) dataProbFunctionVar[0];
204  int xmax = (int) dataProbFunctionVar[varSize-1]+1; // need upper edge to be one beyond last value
205  int numBins = varSize;
206 
207  edm::LogInfo("MixingModule") << "An histogram will be created with " << numBins << " bins in the range ("<< xmin << "," << xmax << ")." << std::endl;
208 
209  if (histo_) delete histo_;
210  histo_ = new TH1F("h","Histo from the user's probability function",numBins,xmin,xmax);
211 
212  LogDebug("MixingModule") << "Filling histogram with the following data:" << std::endl;
213 
214  for (int j=0; j < numBins ; j++){
215  LogDebug("MixingModule") << " x = " << dataProbFunctionVar[j ]<< " P(x) = " << dataProb[j];
216  histo_->Fill(dataProbFunctionVar[j]+0.5,dataProb[j]); // assuming integer values for the bins, fill bin centers, not edges
217  }
218 
219  // Check if the histogram is normalized
220  if ( ((histo_->Integral() - 1) > 1.0e-02) && ((histo_->Integral() - 1) < -1.0e-02)){
221  throw cms::Exception("BadProbFunction") << "The probability function should be normalized!!! " << std::endl;
222  }
223  averageNumber_=histo_->GetMean();
224  }
225 
226  int oot=config.outOfTime();
227  manage_OOT_=false;
228  if (oot==1)
229  {
230  manage_OOT_=true;
231  poisson_OOT_ = false;
232  if (poissonDistr_OOT_){poissonDistr_OOT_.reset(); }
233  fixed_OOT_ = true;
234  intFixed_OOT_=config.fixedOutOfTime();
235  }
236  else if (oot==2)
237  {
238  manage_OOT_=true;
239  poisson_OOT_ = true;
240  fixed_OOT_ = false;
241  if (!poissonDistr_OOT_) {
242  //no need to trash the previous one if already there
244  CLHEP::HepRandomEngine& engine = rng->getEngine();
245  poissonDistr_OOT_.reset(new CLHEP::RandPoisson(engine));
246  }
247  }
248 
249 
250  }
#define LogDebug(id)
bool manage_OOT_
Definition: PileUp.h:75
int i
Definition: DBlmapReader.cc:9
unsigned int inputType_
Definition: PileUp.h:65
std::unique_ptr< CLHEP::RandPoisson > poissonDistr_OOT_
Definition: PileUp.h:90
const int fixedOutOfTime() const
TH1F * histo_
Definition: PileUp.h:69
bool fixed_
Definition: PileUp.h:73
const std::vector< double > & probValue() const
const double averageNumber() const
bool probFunctionDistribution_
Definition: PileUp.h:71
bool histoDistribution_
Definition: PileUp.h:70
bool poisson_
Definition: PileUp.h:72
double averageNumber() const
Definition: PileUp.h:43
const int outOfTime() const
bool poisson_OOT_
Definition: PileUp.h:76
int j
Definition: DBlmapReader.cc:9
virtual CLHEP::HepRandomEngine & getEngine() const =0
Use this to get the random number engine, this is the only function most users should call...
bool fixed_OOT_
Definition: PileUp.h:77
std::string type_
Definition: PileUp.h:66
const T & get() const
Definition: EventSetup.h:55
const std::vector< int > & probFunctionVariable() const
std::unique_ptr< CLHEP::RandPoissonQ > poissonDistribution_
Definition: PileUp.h:89
bool none_
Definition: PileUp.h:74
int intFixed_OOT_
Definition: PileUp.h:82
std::string type() const
double averageNumber_
Definition: PileUp.h:67

Member Data Documentation

double edm::PileUp::averageNumber_
private

Definition at line 67 of file PileUp.h.

Referenced by averageNumber(), CalculatePileup(), doPileUp(), PileUp(), and reload().

std::unique_ptr<EventPrincipal> edm::PileUp::eventPrincipal_
private

Definition at line 88 of file PileUp.h.

Referenced by PileUp(), playPileUp(), and readPileUp().

bool edm::PileUp::fixed_
private

Definition at line 73 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

bool edm::PileUp::fixed_OOT_
private

Definition at line 77 of file PileUp.h.

Referenced by PileUp(), and reload().

TH1F* edm::PileUp::h1f
private

Definition at line 93 of file PileUp.h.

TH1F* edm::PileUp::histo_
private

Definition at line 69 of file PileUp.h.

Referenced by CalculatePileup(), and reload().

bool edm::PileUp::histoDistribution_
private

Definition at line 70 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

TH1F* edm::PileUp::hprobFunction
private

Definition at line 94 of file PileUp.h.

std::unique_ptr<VectorInputSource> const edm::PileUp::input_
private

Definition at line 86 of file PileUp.h.

Referenced by dropUnwantedBranches(), endJob(), PileUp(), playPileUp(), and readPileUp().

unsigned int edm::PileUp::inputType_
private

Definition at line 65 of file PileUp.h.

Referenced by input(), and reload().

int const edm::PileUp::intAverage_
private

Definition at line 68 of file PileUp.h.

Referenced by CalculatePileup().

int edm::PileUp::intFixed_ITPU_
private

Definition at line 83 of file PileUp.h.

Referenced by CalculatePileup(), and PileUp().

int edm::PileUp::intFixed_OOT_
private

Definition at line 82 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

bool edm::PileUp::manage_OOT_
private

Definition at line 75 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

bool edm::PileUp::none_
private

Definition at line 74 of file PileUp.h.

Referenced by CalculatePileup(), doPileUp(), PileUp(), and reload().

bool edm::PileUp::playback_
private

Definition at line 98 of file PileUp.h.

bool edm::PileUp::poisson_
private

Definition at line 72 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), poisson(), and reload().

bool edm::PileUp::poisson_OOT_
private

Definition at line 76 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

std::unique_ptr<CLHEP::RandPoisson> edm::PileUp::poissonDistr_OOT_
private

Definition at line 90 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

std::unique_ptr<CLHEP::RandPoissonQ> edm::PileUp::poissonDistribution_
private

Definition at line 89 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

TFile* edm::PileUp::probFileHisto
private

Definition at line 95 of file PileUp.h.

bool edm::PileUp::probFunctionDistribution_
private

Definition at line 71 of file PileUp.h.

Referenced by CalculatePileup(), PileUp(), and reload().

std::unique_ptr<ProcessConfiguration> edm::PileUp::processConfiguration_
private

Definition at line 87 of file PileUp.h.

Referenced by PileUp().

std::unique_ptr<ProductRegistry> edm::PileUp::productRegistry_
private

Definition at line 85 of file PileUp.h.

bool edm::PileUp::PU_Study_
private

Definition at line 79 of file PileUp.h.

Referenced by CalculatePileup(), and PileUp().

bool edm::PileUp::samelumi_
private

Definition at line 104 of file PileUp.h.

Referenced by readPileUp().

int edm::PileUp::seed_
private

Definition at line 107 of file PileUp.h.

Referenced by PileUp().

bool edm::PileUp::sequential_
private

Definition at line 101 of file PileUp.h.

Referenced by readPileUp().

std::string edm::PileUp::Study_type_
private

Definition at line 80 of file PileUp.h.

Referenced by CalculatePileup(), and PileUp().

std::string edm::PileUp::type_
private