#include <LumiReWeighting.h>
Public Member Functions | |
LumiReWeighting (std::string generatedFile, std::string dataFile, std::string GenHistName, std::string DataHistName) | |
LumiReWeighting (const std::vector< float > &MC_distr, const std::vector< float > &Lumi_distr) | |
LumiReWeighting () | |
double | weight (int npv) |
double | weight (float npv) |
double | weight (const edm::EventBase &e) |
double | weightOOT (const edm::EventBase &e) |
Protected Attributes | |
boost::shared_ptr< TH1 > | Data_distr_ |
boost::shared_ptr< TFile > | dataFile_ |
std::string | dataFileName_ |
std::string | DataHistName_ |
bool | FirstWarning_ |
boost::shared_ptr< TFile > | generatedFile_ |
std::string | generatedFileName_ |
std::string | GenHistName_ |
boost::shared_ptr< TH1 > | MC_distr_ |
int | OldLumiSection_ |
boost::shared_ptr< TH1 > | weights_ |
Definition at line 219 of file LumiReWeighting.h.
LumiReWeighting::LumiReWeighting | ( | std::string | generatedFile, |
std::string | dataFile, | ||
std::string | GenHistName = "pileup" , |
||
std::string | DataHistName = "pileup" |
||
) |
Definition at line 39 of file LumiReWeighting.cc.
References gather_cfg::cout, Data_distr_, dataFile_, dataFileName_, DataHistName_, FirstWarning_, generatedFile_, generatedFileName_, GenHistName_, MC_distr_, EnsembleCalibrationLA_cfg::NBins, OldLumiSection_, and weights_.
LumiReWeighting::LumiReWeighting | ( | const std::vector< float > & | MC_distr, |
const std::vector< float > & | Lumi_distr | ||
) |
Definition at line 84 of file LumiReWeighting.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, gather_cfg::cout, Data_distr_, FirstWarning_, MC_distr_, EnsembleCalibrationLA_cfg::NBins, OldLumiSection_, and weights_.
|
inline |
Definition at line 228 of file LumiReWeighting.h.
double LumiReWeighting::weight | ( | int | npv | ) |
Definition at line 138 of file LumiReWeighting.cc.
References newFWLiteAna::bin, and weights_.
Referenced by cuy.ValElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), and weight().
double LumiReWeighting::weight | ( | float | npv | ) |
Definition at line 143 of file LumiReWeighting.cc.
References newFWLiteAna::bin, and weights_.
Referenced by cuy.ValElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), and cuy.graphElement::__init__().
double LumiReWeighting::weight | ( | const edm::EventBase & | e | ) |
Definition at line 154 of file LumiReWeighting.cc.
References edm::ProcessHistory::begin(), rpcdqm::BX, ecal_dqm_sourceclient-live_cfg::cerr, edm::ProcessHistory::end(), FirstWarning_, edm::EventBase::getByLabel(), edm::EventBase::processHistory(), edm::ProcessConfiguration::processName(), edm::ProcessConfiguration::releaseVersion(), AlCaHLTBitMon_QueryRunRegistry::string, and weight().
Referenced by cuy.ValElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), and cuy.graphElement::__init__().
double LumiReWeighting::weightOOT | ( | const edm::EventBase & | e | ) |
Definition at line 202 of file LumiReWeighting.cc.
References edm::ProcessHistory::begin(), newFWLiteAna::bin, rpcdqm::BX, ecal_dqm_sourceclient-live_cfg::cerr, edm::ProcessHistory::end(), edm::EventBase::getByLabel(), edm::EventBase::luminosityBlock(), OldLumiSection_, edm::EventBase::processHistory(), edm::ProcessConfiguration::processName(), edm::ProcessConfiguration::releaseVersion(), AlCaHLTBitMon_QueryRunRegistry::string, and weights_.
|
protected |
Definition at line 251 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 245 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 241 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 243 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 254 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weight().
|
protected |
Definition at line 244 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 240 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 242 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 250 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 253 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weightOOT().
|
protected |
Definition at line 246 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), weight(), and weightOOT().