#include <LumiReWeighting.h>
Public Member Functions | |
LumiReWeighting (std::string generatedFile, std::string dataFile, std::string GenHistName="pileup", std::string DataHistName="pileup", const edm::InputTag &PileupSumInfoInputTag=edm::InputTag("addPileupInfo")) | |
LumiReWeighting (const std::vector< float > &MC_distr, const std::vector< float > &Lumi_distr, const edm::InputTag &PileupSumInfoInputTag=edm::InputTag("addPileupInfo")) | |
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_ |
edm::InputTag | pileupSumInfoTag_ |
boost::shared_ptr< TH1 > | weights_ |
Definition at line 220 of file LumiReWeighting.h.
LumiReWeighting::LumiReWeighting | ( | std::string | generatedFile, |
std::string | dataFile, | ||
std::string | GenHistName = "pileup" , |
||
std::string | DataHistName = "pileup" , |
||
const edm::InputTag & | PileupSumInfoInputTag = edm::InputTag( "addPileupInfo" ) |
||
) |
Definition at line 39 of file LumiReWeighting.cc.
References gather_cfg::cout, Data_distr_, dataFile_, dataFileName_, DataHistName_, FirstWarning_, generatedFile_, generatedFileName_, GenHistName_, MC_distr_, OldLumiSection_, and weights_.
LumiReWeighting::LumiReWeighting | ( | const std::vector< float > & | MC_distr, |
const std::vector< float > & | Lumi_distr, | ||
const edm::InputTag & | PileupSumInfoInputTag = edm::InputTag( "addPileupInfo" ) |
||
) |
Definition at line 86 of file LumiReWeighting.cc.
References MessageLogger_cfi::cerr, gather_cfg::cout, Data_distr_, FirstWarning_, MC_distr_, OldLumiSection_, and weights_.
|
inline |
Definition at line 230 of file LumiReWeighting.h.
References MillePedeFileConverter_cfg::e, and mps_merge::weight.
double LumiReWeighting::weight | ( | int | npv | ) |
Definition at line 142 of file LumiReWeighting.cc.
References stringResolutionProvider_cfi::bin, and weights_.
Referenced by L1Analysis::L1AnalysisEvent::Set(), and weight().
double LumiReWeighting::weight | ( | float | npv | ) |
Definition at line 147 of file LumiReWeighting.cc.
References stringResolutionProvider_cfi::bin, and weights_.
double LumiReWeighting::weight | ( | const edm::EventBase & | e | ) |
Definition at line 158 of file LumiReWeighting.cc.
References rpcdqm::BX, MessageLogger_cfi::cerr, FirstWarning_, edm::EventBase::getByLabel(), pileupSumInfoTag_, edm::EventBase::processHistory(), and weight().
double LumiReWeighting::weightOOT | ( | const edm::EventBase & | e | ) |
Definition at line 192 of file LumiReWeighting.cc.
References stringResolutionProvider_cfi::bin, rpcdqm::BX, MessageLogger_cfi::cerr, edm::EventBase::getByLabel(), edm::EventBase::luminosityBlock(), OldLumiSection_, pileupSumInfoTag_, edm::EventBase::processHistory(), and weights_.
|
protected |
Definition at line 254 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 248 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 243 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 245 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 257 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weight().
|
protected |
Definition at line 247 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 242 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 244 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 253 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 256 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weightOOT().
|
protected |
Definition at line 246 of file LumiReWeighting.h.
Referenced by weight(), and weightOOT().
|
protected |
Definition at line 249 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), weight(), and weightOOT().