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
edm::LumiReWeighting Class Reference

#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_
 

Detailed Description

Definition at line 220 of file LumiReWeighting.h.

Constructor & Destructor Documentation

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.

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.

edm::LumiReWeighting::LumiReWeighting ( )
inline

Definition at line 230 of file LumiReWeighting.h.

230 { } ;

Member Function Documentation

double LumiReWeighting::weight ( int  npv)

Definition at line 142 of file LumiReWeighting.cc.

double LumiReWeighting::weight ( float  npv)

Definition at line 147 of file LumiReWeighting.cc.

double LumiReWeighting::weight ( const edm::EventBase e)

Definition at line 158 of file LumiReWeighting.cc.

double LumiReWeighting::weightOOT ( const edm::EventBase e)

Definition at line 206 of file LumiReWeighting.cc.

Member Data Documentation

boost::shared_ptr<TH1> edm::LumiReWeighting::Data_distr_
protected

Definition at line 254 of file LumiReWeighting.h.

boost::shared_ptr<TFile> edm::LumiReWeighting::dataFile_
protected

Definition at line 248 of file LumiReWeighting.h.

std::string edm::LumiReWeighting::dataFileName_
protected

Definition at line 243 of file LumiReWeighting.h.

std::string edm::LumiReWeighting::DataHistName_
protected

Definition at line 245 of file LumiReWeighting.h.

bool edm::LumiReWeighting::FirstWarning_
protected

Definition at line 257 of file LumiReWeighting.h.

boost::shared_ptr<TFile> edm::LumiReWeighting::generatedFile_
protected

Definition at line 247 of file LumiReWeighting.h.

std::string edm::LumiReWeighting::generatedFileName_
protected

Definition at line 242 of file LumiReWeighting.h.

std::string edm::LumiReWeighting::GenHistName_
protected

Definition at line 244 of file LumiReWeighting.h.

boost::shared_ptr<TH1> edm::LumiReWeighting::MC_distr_
protected

Definition at line 253 of file LumiReWeighting.h.

int edm::LumiReWeighting::OldLumiSection_
protected

Definition at line 256 of file LumiReWeighting.h.

edm::InputTag edm::LumiReWeighting::pileupSumInfoTag_
protected

Definition at line 246 of file LumiReWeighting.h.

boost::shared_ptr<TH1> edm::LumiReWeighting::weights_
protected

Definition at line 249 of file LumiReWeighting.h.