#include <GenXSecAnalyzer.h>
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) override |
virtual void | beginJob () override |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
virtual void | beginRun (edm::Run const &, edm::EventSetup const &) override |
void | combine (GenLumiInfoProduct::XSec &, double &, const GenLumiInfoProduct::XSec &, const double &) |
void | combine (double &, double &, double &, const double &, const double &, const double &) |
GenLumiInfoProduct::XSec | compute (const GenLumiInfoProduct &) |
virtual void | endJob () override |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
virtual void | endRun (edm::Run const &, edm::EventSetup const &) override |
Private Attributes | |
std::map< int, GenLumiInfoProduct::XSec > | currentLumiBlockLHEXSec_ |
GenFilterInfo | filterOnlyEffRun_ |
GenFilterInfo | filterOnlyEffStat_ |
edm::EDGetTokenT< GenFilterInfo > | genFilterInfoToken_ |
edm::EDGetTokenT< GenLumiInfoProduct > | genLumiInfoToken_ |
int | hepidwtup_ |
GenFilterInfo | hepMCFilterEffRun_ |
GenFilterInfo | hepMCFilterEffStat_ |
edm::EDGetTokenT< GenFilterInfo > | hepMCFilterInfoToken_ |
std::map< int, GenFilterInfo > | jetMatchEffStat_ |
edm::EDGetTokenT< LHERunInfoProduct > | lheRunInfoToken_ |
int | nMCs_ |
std::map< int, GenLumiInfoProduct::XSec > | previousLumiBlockLHEXSec_ |
GenLumiInfoProduct | product_ |
double | thisRunWeight_ |
double | thisRunWeightPre_ |
double | totalWeight_ |
double | totalWeightPre_ |
GenLumiInfoProduct::XSec | xsec_ |
std::vector< GenLumiInfoProduct::XSec > | xsecAfterMatching_ |
std::vector< GenLumiInfoProduct::XSec > | xsecBeforeMatching_ |
GenLumiInfoProduct::XSec | xsecPreFilter_ |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
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 34 of file GenXSecAnalyzer.h.
|
explicit |
Definition at line 7 of file GenXSecAnalyzer.cc.
References currentLumiBlockLHEXSec_, genFilterInfoToken_, genLumiInfoToken_, hepMCFilterInfoToken_, jetMatchEffStat_, lheRunInfoToken_, previousLumiBlockLHEXSec_, xsecAfterMatching_, and xsecBeforeMatching_.
GenXSecAnalyzer::~GenXSecAnalyzer | ( | ) |
Definition at line 34 of file GenXSecAnalyzer.cc.
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 39 of file GenXSecAnalyzer.cc.
References currentLumiBlockLHEXSec_, jetMatchEffStat_, previousLumiBlockLHEXSec_, xsecAfterMatching_, and xsecBeforeMatching_.
Referenced by final_xsec_error().
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Definition at line 50 of file GenXSecAnalyzer.cc.
References currentLumiBlockLHEXSec_, filterOnlyEffRun_, hepMCFilterEffRun_, jetMatchEffStat_, nMCs_, previousLumiBlockLHEXSec_, product_, thisRunWeight_, thisRunWeightPre_, xsecAfterMatching_, and xsecBeforeMatching_.
Referenced by final_xsec_error().
|
private |
Definition at line 319 of file GenXSecAnalyzer.cc.
References GenLumiInfoProduct::XSec::error(), relativeConstraints::error, and GenLumiInfoProduct::XSec::value().
Referenced by endLuminosityBlock(), endRun(), and final_xsec_error().
|
private |
|
private |
Definition at line 332 of file GenXSecAnalyzer.cc.
References cuy::denominator, GenLumiInfoProduct::XSec::error(), GenLumiInfoProduct::getProcessInfos(), hepidwtup_, jetMatchEffStat_, GenLumiInfoProduct::ProcessInfo::killed(), GenLumiInfoProduct::ProcessInfo::lheXSec(), GenLumiInfoProduct::FinalStat::n(), GenLumiInfoProduct::ProcessInfo::nPassNeg(), GenLumiInfoProduct::ProcessInfo::nPassPos(), groupFilesInBlocks::ntotal, GenLumiInfoProduct::ProcessInfo::nTotalNeg(), GenLumiInfoProduct::ProcessInfo::nTotalPos(), cuy::numerator, funct::pow(), proc, mps_fire::result, GenLumiInfoProduct::ProcessInfo::selected(), mathSSE::sqrt(), GenLumiInfoProduct::FinalStat::sum(), GenLumiInfoProduct::FinalStat::sum2(), GenLumiInfoProduct::XSec::value(), xsecAfterMatching_, and xsecBeforeMatching_.
Referenced by endRun(), and final_xsec_error().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 464 of file GenXSecAnalyzer.cc.
References GenLumiInfoProduct::XSec::error(), GenFilterInfo::filterEfficiency(), GenFilterInfo::filterEfficiencyError(), filterOnlyEffStat_, alignBH_cfg::fixed, hepidwtup_, hepMCFilterEffStat_, i, jetMatchEffStat_, plotBeamSpotDB::last, nMCs_, GenFilterInfo::numEventsPassed(), GenFilterInfo::numEventsTotal(), GenFilterInfo::numPassNegativeEvents(), GenFilterInfo::numPassPositiveEvents(), GenFilterInfo::numTotalNegativeEvents(), GenFilterInfo::numTotalPositiveEvents(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, GenFilterInfo::sumPassWeights(), GenFilterInfo::sumWeights(), GenFilterInfo::sumWeights2(), fftjetcommon_cfi::title, GenLumiInfoProduct::XSec::value(), xsec_, xsecAfterMatching_, xsecBeforeMatching_, and xsecPreFilter_.
Referenced by final_xsec_error().
|
overrideprivatevirtual |
Definition at line 91 of file GenXSecAnalyzer.cc.
References combine(), currentLumiBlockLHEXSec_, GenLumiInfoProduct::XSec::error(), filterOnlyEffRun_, filterOnlyEffStat_, genFilterInfoToken_, genLumiInfoToken_, edm::LuminosityBlock::getByToken(), GenLumiInfoProduct::getHEPIDWTUP(), GenLumiInfoProduct::getProcessInfos(), hepidwtup_, hepMCFilterEffRun_, hepMCFilterEffStat_, hepMCFilterInfoToken_, hcalTTPDigis_cfi::id, edm::HandleBase::isValid(), jetMatchEffStat_, GenFilterInfo::mergeProduct(), GenLumiInfoProduct::mergeProduct(), previousLumiBlockLHEXSec_, product_, GenLumiInfoProduct::FinalStat::sum(), GenLumiInfoProduct::FinalStat::sum2(), GenFilterInfo::sumPassWeights(), thisRunWeight_, thisRunWeightPre_, GenLumiInfoProduct::XSec::value(), relativeConstraints::value, x, and y.
Referenced by final_xsec_error().
|
overrideprivatevirtual |
Definition at line 210 of file GenXSecAnalyzer.cc.
References combine(), compute(), gather_cfg::cout, currentLumiBlockLHEXSec_, GenLumiInfoProduct::XSec::error(), GenFilterInfo::filterEfficiency(), GenFilterInfo::filterEfficiencyError(), filterOnlyEffRun_, alignBH_cfg::fixed, edm::Run::getByToken(), GenLumiInfoProduct::getProcessInfos(), hepidwtup_, hepMCFilterEffRun_, LHERunInfoProduct::heprup(), i, lheRunInfoToken_, lhef::HEPRUP::LPRUP, Max(), funct::pow(), product_, findQualityFiles::run, GenLumiInfoProduct::ProcessInfo::setLheXSec(), GenLumiInfoProduct::setProcessInfo(), mathSSE::sqrt(), GenFilterInfo::sumWeights2(), groupFilesInBlocks::temp, thisRunWeight_, thisRunWeightPre_, totalWeight_, totalWeightPre_, GenLumiInfoProduct::XSec::value(), lhef::HEPRUP::XERRUP, lhef::HEPRUP::XMAXUP, xsec_, xsecPreFilter_, and lhef::HEPRUP::XSECUP.
Referenced by final_xsec_error().
|
inline |
Definition at line 41 of file GenXSecAnalyzer.h.
References analyze(), beginJob(), beginLuminosityBlock(), beginRun(), combine(), compute(), endJob(), endLuminosityBlock(), endRun(), GenLumiInfoProduct::XSec::error(), and xsec_.
|
inline |
Definition at line 40 of file GenXSecAnalyzer.h.
References GenLumiInfoProduct::XSec::value(), and xsec_.
|
private |
Definition at line 120 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), endLuminosityBlock(), endRun(), and GenXSecAnalyzer().
|
private |
Definition at line 89 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 95 of file GenXSecAnalyzer.h.
Referenced by endJob(), and endLuminosityBlock().
|
private |
Definition at line 58 of file GenXSecAnalyzer.h.
Referenced by endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 60 of file GenXSecAnalyzer.h.
Referenced by endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 67 of file GenXSecAnalyzer.h.
Referenced by compute(), endJob(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 92 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 98 of file GenXSecAnalyzer.h.
Referenced by endJob(), and endLuminosityBlock().
|
private |
Definition at line 59 of file GenXSecAnalyzer.h.
Referenced by endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 109 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), compute(), endJob(), endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 61 of file GenXSecAnalyzer.h.
Referenced by endRun(), and GenXSecAnalyzer().
|
private |
Definition at line 65 of file GenXSecAnalyzer.h.
Referenced by beginRun(), and endJob().
|
private |
Definition at line 115 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 85 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 75 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 71 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 74 of file GenXSecAnalyzer.h.
Referenced by endRun().
|
private |
Definition at line 70 of file GenXSecAnalyzer.h.
Referenced by endRun().
|
private |
Definition at line 81 of file GenXSecAnalyzer.h.
Referenced by endJob(), endRun(), final_xsec_error(), and final_xsec_value().
|
private |
Definition at line 107 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), compute(), endJob(), and GenXSecAnalyzer().
|
private |
Definition at line 105 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), compute(), endJob(), and GenXSecAnalyzer().
|
private |
Definition at line 78 of file GenXSecAnalyzer.h.