#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 | |
std::shared_ptr< TH1 > | Data_distr_ |
std::shared_ptr< TFile > | dataFile_ |
std::string | dataFileName_ |
std::string | DataHistName_ |
bool | FirstWarning_ |
std::shared_ptr< TFile > | generatedFile_ |
std::string | generatedFileName_ |
std::string | GenHistName_ |
std::shared_ptr< TH1 > | MC_distr_ |
int | OldLumiSection_ |
edm::InputTag | pileupSumInfoTag_ |
std::shared_ptr< TH1 > | weights_ |
Definition at line 105 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_, SiStripSourceConfigP5_cff::NBins, 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 84 of file LumiReWeighting.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, gather_cfg::cout, Data_distr_, FirstWarning_, MC_distr_, SiStripSourceConfigP5_cff::NBins, OldLumiSection_, and weights_.
|
inline |
Definition at line 117 of file LumiReWeighting.h.
double LumiReWeighting::weight | ( | int | npv | ) |
Definition at line 139 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 152 of file LumiReWeighting.cc.
References L1TStage2uGTEmulatorClient_cff::BX, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, MillePedeFileConverter_cfg::e, FirstWarning_, pileupSumInfoTag_, and weight().
double LumiReWeighting::weightOOT | ( | const edm::EventBase & | e | ) |
Definition at line 183 of file LumiReWeighting.cc.
References newFWLiteAna::bin, L1TStage2uGTEmulatorClient_cff::BX, EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, MillePedeFileConverter_cfg::e, OldLumiSection_, pileupSumInfoTag_, and weights_.
|
protected |
Definition at line 140 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 134 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 129 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 131 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 143 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weight().
|
protected |
Definition at line 133 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 128 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 130 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 139 of file LumiReWeighting.h.
Referenced by LumiReWeighting().
|
protected |
Definition at line 142 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), and weightOOT().
|
protected |
Definition at line 132 of file LumiReWeighting.h.
Referenced by weight(), and weightOOT().
|
protected |
Definition at line 135 of file LumiReWeighting.h.
Referenced by LumiReWeighting(), weight(), and weightOOT().