6 totalGenFilterInfo_(0,0,0,0,0.,0.,0.,0.)
27 std::cout <<
"Lumi section " << iLumi.
id() << std::endl;
29 std::cout <<
"N total = " << genFilter->sumWeights() <<
" N passed = " << genFilter->sumPassWeights() <<
" N failed = " << genFilter->sumFailWeights() << std::endl;
30 std::cout <<
"Generator filter efficiency = " << genFilter->filterEfficiency(-1) <<
" +- " << genFilter->filterEfficiencyError(-1) << std::endl;
LuminosityBlockID id() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double filterEfficiency(int idwtup=+3) const
GenFilterEfficiencyAnalyzer(const edm::ParameterSet &)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void endJob() override
edm::EDGetTokenT< GenFilterInfo > genFilterInfoToken_
bool mergeProduct(GenFilterInfo const &other)
GenFilterInfo totalGenFilterInfo_
double sumPassWeights() const
~GenFilterEfficiencyAnalyzer()
double filterEfficiencyError(int idwtup=+3) const
double sumWeights() const