#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 (float npv) |
double | weight (const edm::EventBase &e) |
double | weightOOT (const edm::EventBase &e) |
void | weightOOT_init () |
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_ |
bool | Reweight_4_2_2p2_ |
double | WeightOOTPU_ [25][25] |
boost::shared_ptr< TH1 > | weights_ |
Definition at line 225 of file LumiReWeighting.h.
LumiReWeighting::LumiReWeighting | ( | std::string | generatedFile, |
std::string | dataFile, | ||
std::string | GenHistName = "pileup" , |
||
std::string | DataHistName = "pileup" |
||
) |
Definition at line 38 of file LumiReWeighting.cc.
References gather_cfg::cout, Data_distr_, dataFile_, dataFileName_, DataHistName_, FirstWarning_, generatedFile_, generatedFileName_, GenHistName_, MC_distr_, EnsembleCalibrationLA_cfg::NBins, OldLumiSection_, weightOOT_init(), and weights_.
LumiReWeighting::LumiReWeighting | ( | std::vector< float > | MC_distr, |
std::vector< float > | Lumi_distr | ||
) |
Definition at line 85 of file LumiReWeighting.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, Data_distr_, FirstWarning_, MC_distr_, EnsembleCalibrationLA_cfg::NBins, OldLumiSection_, weightOOT_init(), and weights_.
|
inline |
Definition at line 234 of file LumiReWeighting.h.
double LumiReWeighting::weight | ( | int | npv | ) |
Definition at line 141 of file LumiReWeighting.cc.
References newFWLiteAna::bin, and weights_.
Referenced by weight().
double LumiReWeighting::weight | ( | float | npv | ) |
double LumiReWeighting::weight | ( | const edm::EventBase & | e | ) |
Definition at line 157 of file LumiReWeighting.cc.
References edm::ProcessHistory::begin(), dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, edm::ProcessHistory::end(), FirstWarning_, edm::EventBase::getByLabel(), edm::EventBase::processHistory(), edm::ProcessConfiguration::processName(), edm::ProcessConfiguration::releaseVersion(), and weight().
double LumiReWeighting::weightOOT | ( | const edm::EventBase & | e | ) |
Definition at line 968 of file LumiReWeighting.cc.
References edm::ProcessHistory::begin(), newFWLiteAna::bin, dtNoiseDBValidation_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 206 of file LumiReWeighting.cc.
References iint, and WeightOOTPU_.
Referenced by LumiReWeighting().
|
protected |
Definition at line 259 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 253 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 249 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 251 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 265 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), weight(), and weightOOT().
|
protected |
Definition at line 252 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 248 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 250 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 258 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 263 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weightOOT().
|
protected |
Definition at line 264 of file LumiReWeighting.h.
Referenced by weightOOT().
|
protected |
Definition at line 261 of file LumiReWeighting.h.
Referenced by weightOOT(), and weightOOT_init().
|
protected |
Definition at line 254 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), weight(), and weightOOT().