#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_ |
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 |
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::one::EDAnalyzerBase | |
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 33 of file GenXSecAnalyzer.h.
|
explicit |
Definition at line 8 of file GenXSecAnalyzer.cc.
References currentLumiBlockLHEXSec_, genFilterInfoToken_, genLumiInfoToken_, hepMCFilterInfoToken_, HLT_25ns14e33_v1_cff::InputTag, jetMatchEffStat_, 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_.
|
overrideprivatevirtual |
Definition at line 77 of file GenXSecAnalyzer.cc.
|
overrideprivatevirtual |
Definition at line 50 of file GenXSecAnalyzer.cc.
References currentLumiBlockLHEXSec_, filterOnlyEffRun_, hepMCFilterEffRun_, jetMatchEffStat_, nMCs_, previousLumiBlockLHEXSec_, product_, thisRunWeight_, thisRunWeightPre_, xsecAfterMatching_, and xsecBeforeMatching_.
|
private |
Definition at line 319 of file GenXSecAnalyzer.cc.
References GenLumiInfoProduct::XSec::error(), relativeConstraints::error, GenLumiInfoProduct::XSec::value(), and relativeConstraints::value.
Referenced by endLuminosityBlock(), and endRun().
|
private |
Definition at line 290 of file GenXSecAnalyzer.cc.
References alignCSCRings::e, and mathSSE::sqrt().
|
private |
Definition at line 332 of file GenXSecAnalyzer.cc.
References cuy::denominator, alignCSCRings::e, GenLumiInfoProduct::XSec::error(), GenLumiInfoProduct::getProcessInfos(), hepidwtup_, 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, query::result, GenLumiInfoProduct::ProcessInfo::selected(), mathSSE::sqrt(), GenLumiInfoProduct::FinalStat::sum(), GenLumiInfoProduct::FinalStat::sum2(), GenLumiInfoProduct::XSec::value(), xsecAfterMatching_, and xsecBeforeMatching_.
Referenced by endRun().
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 456 of file GenXSecAnalyzer.cc.
References GenLumiInfoProduct::XSec::error(), GenFilterInfo::filterEfficiency(), GenFilterInfo::filterEfficiencyError(), filterOnlyEffStat_, hepidwtup_, hepMCFilterEffStat_, i, getDQMSummary::iter, jetMatchEffStat_, prof2calltree::last, nMCs_, GenFilterInfo::numEventsPassed(), GenFilterInfo::numEventsTotal(), GenFilterInfo::numPassNegativeEvents(), GenFilterInfo::numPassPositiveEvents(), GenFilterInfo::numTotalNegativeEvents(), GenFilterInfo::numTotalPositiveEvents(), funct::pow(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, GenFilterInfo::sumPassWeights(), GenFilterInfo::sumWeights(), GenFilterInfo::sumWeights2(), indexGen::title, GenLumiInfoProduct::XSec::value(), xsec_, xsecAfterMatching_, xsecBeforeMatching_, and xsecPreFilter_.
|
overrideprivatevirtual |
Definition at line 91 of file GenXSecAnalyzer.cc.
References combine(), currentLumiBlockLHEXSec_, GenLumiInfoProduct::XSec::error(), filterOnlyEffRun_, filterOnlyEffStat_, genFilterInfoToken_, genLumiInfoToken_, edm::LuminosityBlock::getByToken(), hepidwtup_, hepMCFilterEffRun_, hepMCFilterEffStat_, hepMCFilterInfoToken_, edm::HandleBase::isValid(), jetMatchEffStat_, GenFilterInfo::mergeProduct(), GenLumiInfoProduct::mergeProduct(), previousLumiBlockLHEXSec_, product_, GenLumiInfoProduct::FinalStat::sum(), GenLumiInfoProduct::FinalStat::sum2(), thisRunWeight_, thisRunWeightPre_, GenLumiInfoProduct::XSec::value(), relativeConstraints::value, x, and detailsBasic3DVector::y.
|
overrideprivatevirtual |
Definition at line 210 of file GenXSecAnalyzer.cc.
References combine(), compute(), gather_cfg::cout, currentLumiBlockLHEXSec_, GenLumiInfoProduct::XSec::error(), GenFilterInfo::filterEfficiency(), GenFilterInfo::filterEfficiencyError(), filterOnlyEffRun_, edm::Run::getByLabel(), GenLumiInfoProduct::getProcessInfos(), hepidwtup_, hepMCFilterEffRun_, i, getDQMSummary::iter, lhef::HEPRUP::LPRUP, Max(), funct::pow(), product_, DTTTrigCorrFirst::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.
|
inline |
Definition at line 40 of file GenXSecAnalyzer.h.
References GenLumiInfoProduct::XSec::error(), and xsec_.
|
inline |
Definition at line 39 of file GenXSecAnalyzer.h.
References GenLumiInfoProduct::XSec::value(), and xsec_.
|
private |
Definition at line 118 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), endLuminosityBlock(), endRun(), and GenXSecAnalyzer().
|
private |
Definition at line 87 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 93 of file GenXSecAnalyzer.h.
Referenced by endJob(), and endLuminosityBlock().
|
private |
Definition at line 57 of file GenXSecAnalyzer.h.
Referenced by endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 59 of file GenXSecAnalyzer.h.
Referenced by endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 65 of file GenXSecAnalyzer.h.
Referenced by compute(), endJob(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 90 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 96 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 107 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), endJob(), endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 63 of file GenXSecAnalyzer.h.
Referenced by beginRun(), and endJob().
|
private |
Definition at line 113 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), endLuminosityBlock(), and GenXSecAnalyzer().
|
private |
Definition at line 83 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 73 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 69 of file GenXSecAnalyzer.h.
Referenced by beginRun(), endLuminosityBlock(), and endRun().
|
private |
Definition at line 72 of file GenXSecAnalyzer.h.
Referenced by endRun().
|
private |
Definition at line 68 of file GenXSecAnalyzer.h.
Referenced by endRun().
|
private |
Definition at line 79 of file GenXSecAnalyzer.h.
Referenced by endJob(), endRun(), final_xsec_error(), and final_xsec_value().
|
private |
Definition at line 105 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), compute(), endJob(), and GenXSecAnalyzer().
|
private |
Definition at line 103 of file GenXSecAnalyzer.h.
Referenced by beginJob(), beginRun(), compute(), endJob(), and GenXSecAnalyzer().
|
private |
Definition at line 76 of file GenXSecAnalyzer.h.