TIMBER  beta
Tree Interface for Making Binned Events with RDataFrame
Trigger_weight.h
1 #ifndef _TIMBER_TRIGGER_WEIGHT
2 #define _TIMBER_TRIGGER_WEIGHT
3 #include <cmath>
4 #include <algorithm>
5 #include "HistLoader.h"
6 #include <ROOT/RVec.hxx>
7 using namespace ROOT::VecOps;
8 
25 {
26  private:
27  TH1 *hist;
28  HistLoader HL;
29  public:
36  Trigger_weight(std::string filename, std::string histname){
37  HistLoader HL(filename,histname);
38  TH1 *hist = HL.hist;
39  };
40  ~Trigger_weight(){};
51  RVec<float> eval(float var,float plateau = 0);
52 };
53 #endif
TH1 * hist
Histogram object.
Definition: HistLoader.h:28
Trigger_weight(std::string filename, std::string histname)
Construct a new Trigger_weight object.
Definition: Trigger_weight.h:36
C++ class. Generic histogram loader with methods to return bin values.
Definition: HistLoader.h:13
C++ class. Specializes in the construction of trigger efficiency weights stored as histograms...
Definition: Trigger_weight.h:24