#include <PileUpProducer.h>
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 |
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 |
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) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 23 of file PileUpProducer.h.
|
explicit |
Definition at line 27 of file PileUpProducer.cc.
References averageNumber_, gather_cfg::cout, dataProb, dataProbFunctionVar, alignCSCRings::e, edm::hlt::Exception, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hprob, i, inputFile, j, LogDebug, probSize, AlCaHLTBitMon_QueryRunRegistry::string, theBranches, theCurrentEntry, theCurrentMinBiasEvt, theFileNames, theFiles, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, theTrees, theVertexGenerator, usePoisson_, varSize, SiStripMonitorClusterAlca_cfi::xmax, and SiStripMonitorClusterAlca_cfi::xmin.
|
virtual |
Definition at line 132 of file PileUpProducer.cc.
References hprob, and theVertexGenerator.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 139 of file PileUpProducer.cc.
References gather_cfg::cout, edm::hlt::Exception, mergeVDriftHistosByStation::file, spr::find(), RandomEngineAndDistribution::flatShoot(), edm::FileInPath::fullPath(), input, inputFile, myOutputBuffer, myOutputFile, random, read(), AlCaHLTBitMon_QueryRunRegistry::string, theBranches, theCurrentEntry, theCurrentMinBiasEvt, theFileNames, theFiles, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, and theTrees.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 215 of file PileUpProducer.cc.
References mergeVDriftHistosByStation::file, myOutputFile, and theFiles.
|
overridevirtual |
Implements edm::EDProducer.
Definition at line 235 of file PileUpProducer.cc.
References averageNumber_, PrimaryVertexGenerator::boost(), funct::cos(), relval_parameters_module::energy, mergeVDriftHistosByStation::file, PUEvent::PUMinBiasEvt::first, PrimaryVertexGenerator::generate(), configurableAnalysis::GenParticle, hprob, PUEvent::PUParticle::id, PUEvent::PUParticle::mass, edm::Event::put(), PUEvent::PUParticle::px, PUEvent::PUParticle::py, PUEvent::PUParticle::pz, random, save(), funct::sin(), PUEvent::PUMinBiasEvt::size, mathSSE::sqrt(), edm::Event::streamID(), theCurrentEntry, theCurrentMinBiasEvt, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, theTrees, theVertexGenerator, and usePoisson_.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
private |
Read former minbias configuration (from previous run)
Definition at line 435 of file PileUpProducer.cc.
References python.entryComment::results, findQualityFiles::size, theCurrentEntry, and theCurrentMinBiasEvt.
Referenced by beginRun(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
private |
Save current minbias configuration (for later use)
Definition at line 413 of file PileUpProducer.cc.
References myOutputBuffer, myOutputFile, theCurrentEntry, and theCurrentMinBiasEvt.
Referenced by Vispa.Main.TabController.TabController::allowClose(), Vispa.Main.TabController.TabController::checkModificationTimestamp(), and produce().
|
private |
Definition at line 46 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 66 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 65 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 64 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 48 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 62 of file PileUpProducer.h.
Referenced by beginRun(), and save().
|
private |
Definition at line 61 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and save().
|
private |
Definition at line 68 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 54 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 56 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 57 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 47 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 52 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and PileUpProducer().
|
private |
Definition at line 58 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 49 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 59 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 53 of file PileUpProducer.h.
Referenced by beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 44 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 50 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 67 of file PileUpProducer.h.
Referenced by PileUpProducer().