#include <LumiReWeighting.h>
Public Member Functions | |
LumiReWeighting (std::string generatedFile, std::string dataFile, std::string GenHistName, std::string DataHistName) | |
LumiReWeighting (std::vector< float > MC_distr, std::vector< float > Lumi_distr) | |
LumiReWeighting () | |
double | weight (int npv) |
double | weight (const edm::EventBase &e) |
double | weightOOT (const edm::EventBase &e) |
void | weightOOT_init () |
Protected Attributes | |
boost::shared_ptr< TFile > | dataFile_ |
std::string | dataFileName_ |
std::string | DataHistName_ |
bool | FirstWarning_ |
boost::shared_ptr< TFile > | generatedFile_ |
std::string | generatedFileName_ |
std::string | GenHistName_ |
int | OldLumiSection_ |
bool | Reweight_4_2_2p2_ |
double | WeightOOTPU_ [25][25] |
boost::shared_ptr< TH1F > | weights_ |
Definition at line 26 of file LumiReWeighting.h.
LumiReWeighting::LumiReWeighting | ( | std::string | generatedFile, |
std::string | dataFile, | ||
std::string | GenHistName = "pileup" , |
||
std::string | DataHistName = "pileup" |
||
) |
Definition at line 34 of file LumiReWeighting.cc.
References gather_cfg::cout, dataFile_, dataFileName_, DataHistName_, FirstWarning_, generatedFile_, generatedFileName_, GenHistName_, EnsembleCalibrationLA_cfg::NBins, OldLumiSection_, weightOOT_init(), and weights_.
LumiReWeighting::LumiReWeighting | ( | std::vector< float > | MC_distr, |
std::vector< float > | Lumi_distr | ||
) |
Definition at line 76 of file LumiReWeighting.cc.
References benchmark_cfg::cerr, gather_cfg::cout, FirstWarning_, EnsembleCalibrationLA_cfg::NBins, OldLumiSection_, weightOOT_init(), and weights_.
|
inline |
Definition at line 35 of file LumiReWeighting.h.
double LumiReWeighting::weight | ( | int | npv | ) |
double LumiReWeighting::weight | ( | const edm::EventBase & | e | ) |
Definition at line 134 of file LumiReWeighting.cc.
References edm::ProcessHistory::begin(), newFWLiteAna::bin, benchmark_cfg::cerr, gather_cfg::cout, edm::ProcessHistory::end(), FirstWarning_, edm::EventBase::getByLabel(), edm::EventBase::processHistory(), edm::ProcessConfiguration::processName(), edm::ProcessConfiguration::releaseVersion(), and weights_.
double LumiReWeighting::weightOOT | ( | const edm::EventBase & | e | ) |
Definition at line 947 of file LumiReWeighting.cc.
References edm::ProcessHistory::begin(), newFWLiteAna::bin, benchmark_cfg::cerr, gather_cfg::cout, edm::ProcessHistory::end(), FirstWarning_, edm::EventBase::getByLabel(), edm::EventBase::luminosityBlock(), OldLumiSection_, edm::EventBase::processHistory(), edm::ProcessConfiguration::processName(), edm::ProcessConfiguration::releaseVersion(), Reweight_4_2_2p2_, WeightOOTPU_, and weights_.
void LumiReWeighting::weightOOT_init | ( | ) |
Definition at line 185 of file LumiReWeighting.cc.
References WeightOOTPU_.
Referenced by LumiReWeighting().
|
protected |
Definition at line 52 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 48 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 50 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 59 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), weight(), and weightOOT().
|
protected |
Definition at line 51 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 47 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 49 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 57 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weightOOT().
|
protected |
Definition at line 58 of file LumiReWeighting.h.
Referenced by weightOOT().
|
protected |
Definition at line 55 of file LumiReWeighting.h.
Referenced by weightOOT(), and weightOOT_init().
|
protected |
Definition at line 53 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), weight(), and weightOOT().