babymaker  e95a6a9342d4604277fe7cc6149b6b5b24447d89
Public Types | Public Member Functions | Private Attributes | List of all members
weight_tools Class Reference

#include <weight_tools.hh>

Public Types

enum  variationType {
  nominal =0, muFup =1, muFdown =2, muRup =3,
  muRup_muFup =4, muRup_muFdown =5, muRdown =6, muRdown_muFup =7,
  muRdown_muFdown =8
}
 

Public Member Functions

float theoryWeight (variationType variation)
 
void getTheoryWeights (edm::Handle< LHEEventProduct > lhe_info)
 
float pileupWeight (unsigned int ntrupv_mean, int type)
 
float triggerEfficiency (int &nmus, int &nels, float &met, std::vector< float > &sys_trig)
 
float topPtWeight (float top_pt1, float top_pt2)
 
float isrWeight (float isrpt)
 
void getPDFWeights (std::vector< float > &sys_pdf, std::vector< float > &w_pdf)
 
 weight_tools ()
 
 ~weight_tools ()
 

Private Attributes

std::vector< gen::WeightsInfo > theoryWeights
 
std::vector< double > w_pu_up
 
std::vector< double > w_pu_nom
 
std::vector< double > w_pu_down
 

Detailed Description

Definition at line 8 of file weight_tools.hh.

Member Enumeration Documentation

Enumerator
nominal 
muFup 
muFdown 
muRup 
muRup_muFup 
muRup_muFdown 
muRdown 
muRdown_muFup 
muRdown_muFdown 

Definition at line 18 of file weight_tools.hh.

Constructor & Destructor Documentation

weight_tools::weight_tools ( )

Definition at line 11 of file weight_tools.cc.

weight_tools::~weight_tools ( )

Definition at line 45 of file weight_tools.cc.

Member Function Documentation

void weight_tools::getPDFWeights ( std::vector< float > &  sys_pdf,
std::vector< float > &  w_pdf 
)

Definition at line 133 of file weight_tools.cc.

References resubmit::ind.

void weight_tools::getTheoryWeights ( edm::Handle< LHEEventProduct >  lhe_info)

Definition at line 128 of file weight_tools.cc.

float weight_tools::isrWeight ( float  isrpt)

Definition at line 115 of file weight_tools.cc.

float weight_tools::pileupWeight ( unsigned int  ntrupv_mean,
int  type 
)

Definition at line 47 of file weight_tools.cc.

float weight_tools::theoryWeight ( weight_tools::variationType  variation)

Definition at line 121 of file weight_tools.cc.

float weight_tools::topPtWeight ( float  top_pt1,
float  top_pt2 
)

Definition at line 103 of file weight_tools.cc.

float weight_tools::triggerEfficiency ( int &  nmus,
int &  nels,
float &  met,
std::vector< float > &  sys_trig 
)

Definition at line 57 of file weight_tools.cc.

Member Data Documentation

std::vector<gen::WeightsInfo> weight_tools::theoryWeights
private

Definition at line 11 of file weight_tools.hh.

std::vector<double> weight_tools::w_pu_down
private

Definition at line 14 of file weight_tools.hh.

std::vector<double> weight_tools::w_pu_nom
private

Definition at line 13 of file weight_tools.hh.

std::vector<double> weight_tools::w_pu_up
private

Definition at line 12 of file weight_tools.hh.


The documentation for this class was generated from the following files: