#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.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_QueryRunRegistry::string, weight3D(), weight3D_init(), and weight3D_set().
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_.
Referenced by Lumi3DReWeighting().
double Lumi3DReWeighting::weight3D | ( | int | pv1, |
int | pv2, | ||
int | pv3 | ||
) |
void Lumi3DReWeighting::weight3D_init | ( | float | Scale | ) |
Definition at line 195 of file Lumi3DReWeighting.cc.
References runEdmFileComparison::base, gather_cfg::cout, Data_distr_, Exception, JetChargeProducer_cfi::exp, factorial(), objects.autophobj::float, mps_fire::i, createfilelist::int, gen::k, MC_distr_, SiStripPI::mean, min(), lumiCalc2::outfile, Weight3D_, weightFileName_, and hybridSuperClusters_cfi::xi.
Referenced by Lumi3DReWeighting().
void Lumi3DReWeighting::weight3D_init | ( | std::string | WeightFileName | ) |
Definition at line 379 of file Lumi3DReWeighting.cc.
References gather_cfg::cout, Exception, mps_fire::i, gen::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, Exception, mps_fire::i, gen::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_.
Referenced by Lumi3DReWeighting().
|
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.