CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
reweight::LumiReWeighting Class Reference

#include <LumiReweightingStandAlone.h>

Public Member Functions

double ITweight (int npv)
 
double ITweight3BX (float ave_int)
 
 LumiReWeighting ()
 
 LumiReWeighting (std::string generatedFile, std::string dataFile, std::string GenHistName, std::string DataHistName)
 
 LumiReWeighting (const std::vector< float > &MC_distr, const std::vector< float > &Lumi_distr)
 
double weight (float n_int)
 
double weight3D (int pv1, int pv2, int pv3)
 
void weight3D_init (float ScaleFactor, std::string WeightOutputFile="")
 
void weight3D_set (std::string WeightFileName)
 
double weightOOT (int npv_in_time, int npv_m50nsBX)
 
void weightOOT_init ()
 

Protected Attributes

TH1F * Data_distr_
 
TFile * dataFile_
 
std::string dataFileName_
 
std::string DataHistName_
 
bool FirstWarning_
 
TFile * generatedFile_
 
std::string generatedFileName_
 
std::string GenHistName_
 
TH1F * MC_distr_
 
double Weight3D_ [50][50][50]
 
double WeightOOTPU_ [25][25]
 
TH1F * weights_
 

Detailed Description

Definition at line 227 of file LumiReweightingStandAlone.h.

Constructor & Destructor Documentation

reweight::LumiReWeighting::LumiReWeighting ( )
inline

Definition at line 230 of file LumiReweightingStandAlone.h.

reweight::LumiReWeighting::LumiReWeighting ( std::string  generatedFile,
std::string  dataFile,
std::string  GenHistName,
std::string  DataHistName 
)
inline

Definition at line 232 of file LumiReweightingStandAlone.h.

reweight::LumiReWeighting::LumiReWeighting ( const std::vector< float > &  MC_distr,
const std::vector< float > &  Lumi_distr 
)
inline

Definition at line 277 of file LumiReweightingStandAlone.h.

Member Function Documentation

double reweight::LumiReWeighting::ITweight ( int  npv)
inline

Definition at line 1297 of file LumiReweightingStandAlone.h.

double reweight::LumiReWeighting::ITweight3BX ( float  ave_int)
inline

Definition at line 1302 of file LumiReweightingStandAlone.h.

double reweight::LumiReWeighting::weight ( float  n_int)
inline

Definition at line 1307 of file LumiReweightingStandAlone.h.

double reweight::LumiReWeighting::weight3D ( int  pv1,
int  pv2,
int  pv3 
)
inline

Definition at line 1313 of file LumiReweightingStandAlone.h.

void reweight::LumiReWeighting::weight3D_init ( float  ScaleFactor,
std::string  WeightOutputFile = "" 
)
inline

Definition at line 333 of file LumiReweightingStandAlone.h.

void reweight::LumiReWeighting::weight3D_set ( std::string  WeightFileName)
inline

Definition at line 509 of file LumiReweightingStandAlone.h.

double reweight::LumiReWeighting::weightOOT ( int  npv_in_time,
int  npv_m50nsBX 
)
inline

Definition at line 1327 of file LumiReweightingStandAlone.h.

void reweight::LumiReWeighting::weightOOT_init ( )
inline

Definition at line 538 of file LumiReweightingStandAlone.h.

Member Data Documentation

TH1F* reweight::LumiReWeighting::Data_distr_
protected

Definition at line 1409 of file LumiReweightingStandAlone.h.

TFile* reweight::LumiReWeighting::dataFile_
protected

Definition at line 1404 of file LumiReweightingStandAlone.h.

std::string reweight::LumiReWeighting::dataFileName_
protected

Definition at line 1400 of file LumiReweightingStandAlone.h.

std::string reweight::LumiReWeighting::DataHistName_
protected

Definition at line 1402 of file LumiReweightingStandAlone.h.

bool reweight::LumiReWeighting::FirstWarning_
protected

Definition at line 1414 of file LumiReweightingStandAlone.h.

TFile* reweight::LumiReWeighting::generatedFile_
protected

Definition at line 1403 of file LumiReweightingStandAlone.h.

std::string reweight::LumiReWeighting::generatedFileName_
protected

Definition at line 1399 of file LumiReweightingStandAlone.h.

std::string reweight::LumiReWeighting::GenHistName_
protected

Definition at line 1401 of file LumiReweightingStandAlone.h.

TH1F* reweight::LumiReWeighting::MC_distr_
protected

Definition at line 1408 of file LumiReweightingStandAlone.h.

double reweight::LumiReWeighting::Weight3D_[50][50][50]
protected

Definition at line 1412 of file LumiReweightingStandAlone.h.

double reweight::LumiReWeighting::WeightOOTPU_[25][25]
protected

Definition at line 1411 of file LumiReweightingStandAlone.h.

TH1F* reweight::LumiReWeighting::weights_
protected

Definition at line 1405 of file LumiReweightingStandAlone.h.