#include <PileUpProducer.h>
Public Member Functions | |
virtual void | beginRun (edm::Run &, edm::EventSetup const &) |
virtual void | endRun () |
PileUpProducer (edm::ParameterSet const &p) | |
virtual void | produce (edm::Event &e, const edm::EventSetup &c) |
virtual | ~PileUpProducer () |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
bool | read (std::string inputFile) |
Read former minbias configuration (from previous run) More... | |
void | save () |
Save current minbias configuration (for later use) More... | |
Private Attributes | |
double | averageNumber_ |
std::vector< double > | dataProb |
std::vector< int > | dataProbFunctionVar |
TH1F * | hprob |
std::string | inputFile |
unsigned | myOutputBuffer |
std::ofstream | myOutputFile |
int | probSize |
const RandomEngine * | random |
std::vector< TBranch * > | theBranches |
std::vector< unsigned > | theCurrentEntry |
std::vector< unsigned > | theCurrentMinBiasEvt |
std::vector< std::string > | theFileNames |
std::vector< TFile * > | theFiles |
std::vector< unsigned > | theNumberOfEntries |
unsigned | theNumberOfFiles |
std::vector< unsigned > | theNumberOfMinBiasEvts |
std::vector< PUEvent * > | thePUEvents |
std::vector< TTree * > | theTrees |
PrimaryVertexGenerator * | theVertexGenerator |
bool | usePoisson_ |
int | varSize |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Definition at line 24 of file PileUpProducer.h.
|
explicit |
Definition at line 27 of file PileUpProducer.cc.
References averageNumber_, gather_cfg::cout, dataProb, dataProbFunctionVar, edm::hlt::Exception, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hprob, i, inputFile, j, LogDebug, probSize, random, theBranches, theCurrentEntry, theCurrentMinBiasEvt, theFileNames, theFiles, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, theTrees, theVertexGenerator, usePoisson_, and varSize.
|
virtual |
Definition at line 124 of file PileUpProducer.cc.
References hprob, and theVertexGenerator.
|
virtual |
Reimplemented from edm::EDProducer.
Definition at line 131 of file PileUpProducer.cc.
References gather_cfg::cout, edm::hlt::Exception, mergeVDriftHistosByStation::file, spr::find(), RandomEngine::flatShoot(), edm::FileInPath::fullPath(), collect_tpl::input, inputFile, myOutputBuffer, myOutputFile, random, read(), theBranches, theCurrentEntry, theCurrentMinBiasEvt, theFileNames, theFiles, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, and theTrees.
|
virtual |
Definition at line 203 of file PileUpProducer.cc.
References mergeVDriftHistosByStation::file, myOutputFile, and theFiles.
|
virtual |
Implements edm::EDProducer.
Definition at line 223 of file PileUpProducer.cc.
References averageNumber_, PrimaryVertexGenerator::boost(), funct::cos(), relval_parameters_module::energy, mergeVDriftHistosByStation::file, PUEvent::PUMinBiasEvt::first, RandomEngine::flatShoot(), PrimaryVertexGenerator::generate(), configurableAnalysis::GenParticle, hprob, PUEvent::PUParticle::id, PUEvent::PUParticle::mass, RandomEngine::poissonShoot(), edm::Event::put(), PUEvent::PUParticle::px, PUEvent::PUParticle::py, PUEvent::PUParticle::pz, random, save(), funct::sin(), PUEvent::PUMinBiasEvt::size, mathSSE::sqrt(), theCurrentEntry, theCurrentMinBiasEvt, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, theTrees, theVertexGenerator, and usePoisson_.
Referenced by python.JSONExport.JsonExport::export(), and python.HTMLExport.HTMLExport::export().
|
private |
Read former minbias configuration (from previous run)
Definition at line 406 of file PileUpProducer.cc.
References python.entryComment::results, findQualityFiles::size, theCurrentEntry, and theCurrentMinBiasEvt.
Referenced by beginRun(), python.Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and python.Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
private |
Save current minbias configuration (for later use)
Definition at line 384 of file PileUpProducer.cc.
References myOutputBuffer, myOutputFile, theCurrentEntry, and theCurrentMinBiasEvt.
Referenced by python.Vispa.Main.TabController.TabController::allowClose(), python.Vispa.Main.TabController.TabController::checkModificationTimestamp(), and produce().
|
private |
Definition at line 47 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 68 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 67 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 66 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 50 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 64 of file PileUpProducer.h.
Referenced by beginRun(), and save().
|
private |
Definition at line 63 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and save().
|
private |
Definition at line 70 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 48 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 56 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 58 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 59 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 49 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 54 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and PileUpProducer().
|
private |
Definition at line 60 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 51 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 61 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 57 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 55 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 45 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 52 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 69 of file PileUpProducer.h.
Referenced by PileUpProducer().