#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_, HLT_25ns14e33_v1_cff::InputTag, 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_.
|
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 |
|
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, 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 464 of file GenXSecAnalyzer.cc.
References GenLumiInfoProduct::XSec::error(), GenFilterInfo::filterEfficiency(), GenFilterInfo::filterEfficiencyError(), filterOnlyEffStat_, hepidwtup_, hepMCFilterEffStat_, i, jetMatchEffStat_, prof2calltree::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(), 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 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::getByToken(), GenLumiInfoProduct::getProcessInfos(), hepidwtup_, hepMCFilterEffRun_, i, lheRunInfoToken_, 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 41 of file GenXSecAnalyzer.h.
References 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.