#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::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
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 | |
std::vector< ConsumesInfo > | consumesInfo () const |
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 |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) 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::stream::EDProducer<> | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
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 28 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 135 of file PileUpProducer.cc.
References hprob, and theVertexGenerator.
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 194 of file PileUpProducer.cc.
References currentValuesWereSet, mergeVDriftHistosByStation::file, edm::LuminosityBlock::index(), random, theCurrentEntry, theCurrentMinBiasEvt, theNumberOfEntries, theNumberOfFiles, theNumberOfMinBiasEvts, thePUEvents, and theTrees.
|
overridevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 142 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::stream::EDProducerBase.
Definition at line 214 of file PileUpProducer.cc.
References mergeVDriftHistosByStation::file, myOutputFile, and theFiles.
|
overridevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 230 of file PileUpProducer.cc.
References averageNumber_, PrimaryVertexGenerator::boost(), funct::cos(), relval_parameters_module::energy, mergeVDriftHistosByStation::file, PUEvent::PUMinBiasEvt::first, PrimaryVertexGenerator::generate(), GenParticle::GenParticle, hprob, PUEvent::PUParticle::id, cmsHarvester::index, 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 453 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 431 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 52 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 76 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), and beginRun().
|
private |
Definition at line 72 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 71 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 70 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 54 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 68 of file PileUpProducer.h.
Referenced by beginRun(), and save().
|
private |
Definition at line 67 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and save().
|
private |
Definition at line 74 of file PileUpProducer.h.
Referenced by PileUpProducer().
|
private |
Definition at line 60 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 62 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 63 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), PileUpProducer(), produce(), read(), and save().
|
private |
Definition at line 53 of file PileUpProducer.h.
Referenced by beginRun(), and PileUpProducer().
|
private |
Definition at line 58 of file PileUpProducer.h.
Referenced by beginRun(), endRun(), and PileUpProducer().
|
private |
Definition at line 64 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 55 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 65 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 61 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 59 of file PileUpProducer.h.
Referenced by beginLuminosityBlock(), beginRun(), PileUpProducer(), and produce().
|
private |
Definition at line 50 of file PileUpProducer.h.
Referenced by PileUpProducer(), produce(), and ~PileUpProducer().
|
private |
Definition at line 56 of file PileUpProducer.h.
Referenced by PileUpProducer(), and produce().
|
private |
Definition at line 73 of file PileUpProducer.h.
Referenced by PileUpProducer().