#include <Lumi3DReWeighting.h>
Public Member Functions | |
Lumi3DReWeighting (std::string generatedFile, std::string dataFile, std::string GenHistName, std::string DataHistName, std::string WeightOutputFile) | |
Lumi3DReWeighting (const std::vector< float > &MC_distr, const std::vector< float > &Lumi_distr, std::string WeightOutputFile) | |
Lumi3DReWeighting () | |
double | weight3D (const edm::EventBase &e) |
double | weight3D (int, int, int) |
void | weight3D_init (float Scale) |
void | weight3D_init (std::string WeightFileName) |
void | weight3D_init (std::string MCFileName, std::string DataFileName) |
void | weight3D_set (std::string generatedFile, std::string dataFile, std::string GenHistName, std::string DataHistName, std::string WeightOutputFile) |
Protected Attributes | |
boost::shared_ptr< TH1 > | Data_distr_ |
boost::shared_ptr< TFile > | dataFile_ |
std::string | dataFileName_ |
std::string | DataHistName_ |
boost::shared_ptr< TFile > | generatedFile_ |
std::string | generatedFileName_ |
std::string | GenHistName_ |
boost::shared_ptr< TH1 > | MC_distr_ |
double | Weight3D_ [50][50][50] |
std::string | weightFileName_ |
boost::shared_ptr< TH1 > | weights_ |
Definition at line 29 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 71 of file Lumi3DReWeighting.cc.
References Data_distr_, MC_distr_, and weightFileName_.
|
inline |
Definition at line 40 of file Lumi3DReWeighting.h.
double Lumi3DReWeighting::weight3D | ( | const edm::EventBase & | e | ) |
Definition at line 124 of file Lumi3DReWeighting.cc.
References rpcdqm::BX, edm::EventBase::getByLabel(), min(), edm::min(), and Weight3D_.
double Lumi3DReWeighting::weight3D | ( | int | pv1, |
int | pv2, | ||
int | pv3 | ||
) |
void Lumi3DReWeighting::weight3D_init | ( | float | Scale | ) |
Definition at line 195 of file Lumi3DReWeighting.cc.
References newFWLiteAna::base, gather_cfg::cout, Data_distr_, edm::hlt::Exception, create_public_lumi_plots::exp, factorial(), i, j, roll_playback::k, MC_distr_, timingPdfMaker::mean, min(), getDQMSummary::outfile, Weight3D_, weightFileName_, and x.
void Lumi3DReWeighting::weight3D_init | ( | std::string | WeightFileName | ) |
Definition at line 379 of file Lumi3DReWeighting.cc.
References gather_cfg::cout, edm::hlt::Exception, i, getDQMSummary::infile, j, roll_playback::k, and Weight3D_.
void Lumi3DReWeighting::weight3D_init | ( | std::string | MCFileName, |
std::string | DataFileName | ||
) |
Definition at line 409 of file Lumi3DReWeighting.cc.
References gather_cfg::cout, edm::hlt::Exception, i, j, roll_playback::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 165 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 72 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.