|
| ISRWeightProducer (const edm::ParameterSet &) |
|
| ~ISRWeightProducer () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
| 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 () |
|
| 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 |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 20 of file ISRWeightProducer.cc.
Implements edm::EDProducer.
Definition at line 69 of file ISRWeightProducer.cc.
References funct::abs(), genParticleCandidates2GenParticles_cfi::genParticles, genTag_, edm::Event::getByLabel(), i, isrBinEdges_, edm::EventBase::isRealData(), j, pileupCalc::nbins, reco::LeafCandidate::pdgId(), RecoTauCleanerPlugins::pt, reco::LeafCandidate::pt(), ptWeights_, edm::Event::put(), reco::LeafCandidate::status(), ntuplemaker::status, and histoStyle::weight.
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
75 unsigned int gensize = genParticles->size();
77 std::auto_ptr<double>
weight (
new double);
83 for(
unsigned int i = 0;
i<gensize; ++
i) {
85 int id = part.
pdgId();
86 if (
id!=23 &&
abs(
id)!=24)
continue;
88 if (status!=3)
continue;
89 double pt = part.
pt();
91 for (
unsigned int j=1;
j<=
nbins; ++
j) {
virtual int pdgId() const GCC11_FINAL
PDG identifier.
std::vector< double > isrBinEdges_
virtual int status() const GCC11_FINAL
status word
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Abs< T >::type abs(const T &t)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< double > ptWeights_
virtual float pt() const GCC11_FINAL
transverse momentum