#include <PileUpProducer.h>
Public Member Functions | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) override |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) override |
PileUpProducer (edm::ParameterSet const &p) | |
virtual void | produce (edm::Event &e, const edm::EventSetup &c) override |
virtual | ~PileUpProducer () |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
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_ |
bool | currentValuesWereSet |
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 27 of file PileUpProducer.h.
|
explicit |
Definition at line 29 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 134 of file PileUpProducer.cc.
References hprob, and theVertexGenerator.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 193 of file PileUpProducer.cc.
References currentValuesWereSet, mergeVDriftHistosByStation::file, edm::LuminosityBlock::index(), random, theCurrentEntry, theCurrentMinBiasEvt, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, and theTrees.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 141 of file PileUpProducer.cc.
References gather_cfg::cout, currentValuesWereSet, edm::hlt::Exception, mergeVDriftHistosByStation::file, spr::find(), contentValuesFiles::fullPath, edm::FileInPath::fullPath(), inputFile, myOutputBuffer, myOutputFile, read(), AlCaHLTBitMon_QueryRunRegistry::string, theBranches, theCurrentEntry, theFileNames, theFiles, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, and theTrees.
|
overridevirtual |
Reimplemented from edm::EDProducer.
Definition at line 213 of file PileUpProducer.cc.
References mergeVDriftHistosByStation::file, myOutputFile, and theFiles.
|
overridevirtual |
Implements edm::EDProducer.
Definition at line 229 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 433 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 411 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 51 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 75 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), and beginRun().
|
private |
Definition at line 71 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 70 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 69 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 53 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 67 of file PileUpProducer.h.
Referenced by beginRun(), and save().
|
private |
Definition at line 66 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and save().
|
private |
Definition at line 73 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 59 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 61 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 62 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 52 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 57 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and PileUpProducer().
|
private |
Definition at line 63 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 54 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 64 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 60 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 58 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 49 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 55 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 72 of file PileUpProducer.h.
Referenced by PileUpProducer().