#include <Lumi3DReWeighting.h>
Public Member Functions | |
Lumi3DReWeighting () | |
Lumi3DReWeighting (const std::vector< float > &MC_distr, const std::vector< float > &Lumi_distr, std::string WeightOutputFile) | |
Lumi3DReWeighting (std::string generatedFile, std::string dataFile, std::string GenHistName, std::string DataHistName, std::string WeightOutputFile) | |
double | weight3D (const edm::EventBase &e) |
double | weight3D (int, int, int) |
void | weight3D_init (float Scale) |
void | weight3D_init (std::string MCFileName, std::string DataFileName) |
void | weight3D_init (std::string WeightFileName) |
void | weight3D_set (std::string generatedFile, std::string dataFile, std::string GenHistName, std::string DataHistName, std::string WeightOutputFile) |
Protected Attributes | |
std::shared_ptr< TH1 > | Data_distr_ |
std::shared_ptr< TFile > | dataFile_ |
std::string | dataFileName_ |
std::string | DataHistName_ |
std::shared_ptr< TFile > | generatedFile_ |
std::string | generatedFileName_ |
std::string | GenHistName_ |
std::shared_ptr< TH1 > | MC_distr_ |
double | Weight3D_ [50][50][50] |
std::string | weightFileName_ |
std::shared_ptr< TH1 > | weights_ |
Definition at line 26 of file Lumi3DReWeighting.h.
Lumi3DReWeighting::Lumi3DReWeighting | ( | std::string | generatedFile, |
std::string | dataFile, | ||
std::string | GenHistName = "pileup" , |
||
std::string | DataHistName = "pileup" , |
||
std::string | WeightOutputFile = "" |
||
) |
Definition at line 40 of file Lumi3DReWeighting.cc.
References Data_distr_, dataFile_, dataFileName_, DataHistName_, generatedFile_, generatedFileName_, GenHistName_, and MC_distr_.
Lumi3DReWeighting::Lumi3DReWeighting | ( | const std::vector< float > & | MC_distr, |
const std::vector< float > & | Lumi_distr, | ||
std::string | WeightOutputFile = "" |
||
) |
Definition at line 70 of file Lumi3DReWeighting.cc.
References Data_distr_, MC_distr_, and weightFileName_.
|
inline |
Definition at line 38 of file Lumi3DReWeighting.h.
double Lumi3DReWeighting::weight3D | ( | const edm::EventBase & | e | ) |
Definition at line 119 of file Lumi3DReWeighting.cc.
References L1TStage2uGTEmulatorClient_cff::BX, MillePedeFileConverter_cfg::e, min(), edm::min(), and Weight3D_.
double Lumi3DReWeighting::weight3D | ( | int | pv1, |
int | pv2, | ||
int | pv3 | ||
) |
void Lumi3DReWeighting::weight3D_init | ( | float | Scale | ) |
Definition at line 190 of file Lumi3DReWeighting.cc.
References newFWLiteAna::base, gather_cfg::cout, Data_distr_, Exception, JetChargeProducer_cfi::exp, factorial(), dqmMemoryStats::float, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, dqmdumpme::k, MC_distr_, SiStripPI::mean, min(), timingPdfMaker::outfile, Weight3D_, weightFileName_, and protons_cff::xi.
void Lumi3DReWeighting::weight3D_init | ( | std::string | MCFileName, |
std::string | DataFileName | ||
) |
Definition at line 387 of file Lumi3DReWeighting.cc.
References gather_cfg::cout, Exception, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, and Weight3D_.
void Lumi3DReWeighting::weight3D_init | ( | std::string | WeightFileName | ) |
Definition at line 361 of file Lumi3DReWeighting.cc.
References gather_cfg::cout, Exception, mps_fire::i, timingPdfMaker::infile, dqmiolumiharvest::j, dqmdumpme::k, and Weight3D_.
void Lumi3DReWeighting::weight3D_set | ( | std::string | generatedFile, |
std::string | dataFile, | ||
std::string | GenHistName, | ||
std::string | DataHistName, | ||
std::string | WeightOutputFile | ||
) |
Definition at line 156 of file Lumi3DReWeighting.cc.
References gather_cfg::cout, Data_distr_, dataFile_, dataFileName_, DataHistName_, generatedFile_, generatedFileName_, GenHistName_, MC_distr_, and weightFileName_.
|
protected |
Definition at line 69 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), weight3D_init(), and weight3D_set().
|
protected |
Definition at line 63 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), and weight3D_set().
|
protected |
Definition at line 58 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), and weight3D_set().
|
protected |
Definition at line 60 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), and weight3D_set().
|
protected |
Definition at line 62 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), and weight3D_set().
|
protected |
Definition at line 57 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), and weight3D_set().
|
protected |
Definition at line 59 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), and weight3D_set().
|
protected |
Definition at line 68 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), weight3D_init(), and weight3D_set().
|
protected |
Definition at line 71 of file Lumi3DReWeighting.h.
Referenced by weight3D(), and weight3D_init().
|
protected |
Definition at line 61 of file Lumi3DReWeighting.h.
Referenced by Lumi3DReWeighting(), weight3D_init(), and weight3D_set().
|
protected |
Definition at line 64 of file Lumi3DReWeighting.h.