2 #ifndef PhysicsTools_NanoAODTools_WeightCalculatorFromHistogram_h 3 #define PhysicsTools_NanoAODTools_WeightCalculatorFromHistogram_h 20 float getWeight(
float x,
float y=0)
const;
21 float getWeightErr(
float x,
float y=0)
const;
24 std::vector<float> loadVals(TH1 *hist,
bool norm=
true);
25 TH1* ratio(TH1 *hist, TH1* targethist,
bool fixLargeWgts);
26 void fixLargeWeights(std::vector<float> &weights,
float maxshift=0.0025,
float hardmax=3);
27 float checkIntegral(std::vector<float> wgt1, std::vector<float> wgt2);
30 std::vector<float> refvals_,targetvals_;
Definition: WeightCalculatorFromHistogram.h:11