#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_, EnsembleCalibrationLA_cfg::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 86 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 230 of file LumiReWeighting.h.
double LumiReWeighting::weight | ( | int | npv | ) |
Definition at line 142 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 147 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 158 of file LumiReWeighting.cc.
References edm::ProcessHistory::begin(), rpcdqm::BX, ecal_dqm_sourceclient-live_cfg::cerr, edm::ProcessHistory::end(), FirstWarning_, edm::EventBase::getByLabel(), pileupSumInfoTag_, 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 206 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_, pileupSumInfoTag_, edm::EventBase::processHistory(), edm::ProcessConfiguration::processName(), edm::ProcessConfiguration::releaseVersion(), AlCaHLTBitMon_QueryRunRegistry::string, 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().