CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BTagEntry.h
Go to the documentation of this file.
1 #ifndef BTagEntry_H
2 #define BTagEntry_H
3 
18 #include <string>
19 #include <TF1.h>
20 #include <TH1.h>
21 
23 
24 class BTagEntry
25 {
26 public:
32  };
33  enum JetFlavor {
34  FLAV_B=0,
35  FLAV_C=1,
37  };
38  struct Parameters {
43  float etaMin;
44  float etaMax;
45  float ptMin;
46  float ptMax;
47  float discrMin;
48  float discrMax;
49 
50  // default constructor
51  Parameters(
53  std::string measurement_type="comb",
54  std::string sys_type="central",
55  JetFlavor jf=FLAV_B,
56  float eta_min=-99999.,
57  float eta_max=99999.,
58  float pt_min=0.,
59  float pt_max=99999.,
60  float discr_min=0.,
61  float discr_max=99999.
62  );
63 
65  };
66 
67  BTagEntry() {}
68  BTagEntry(const std::string &csvLine);
69  BTagEntry(const std::string &func, Parameters p);
70  BTagEntry(const TF1* func, Parameters p);
71  BTagEntry(const TH1* histo, Parameters p);
73  static std::string makeCSVHeader();
74  std::string makeCSVLine() const;
75  static std::string trimStr(std::string str);
76 
77  // public, no getters needed
80 
82 };
83 
84 #endif // BTagEntry_H
std::string sysType
Definition: BTagEntry.h:41
Parameters(OperatingPoint op=OP_TIGHT, std::string measurement_type="comb", std::string sys_type="central", JetFlavor jf=FLAV_B, float eta_min=-99999., float eta_max=99999., float pt_min=0., float pt_max=99999., float discr_min=0., float discr_max=99999.)
Definition: BTagEntry.cc:7
~BTagEntry()
Definition: BTagEntry.h:72
static std::string trimStr(std::string str)
Definition: BTagEntry.cc:251
JetFlavor jetFlavor
Definition: BTagEntry.h:42
static std::string makeCSVHeader()
Definition: BTagEntry.cc:218
std::string makeCSVLine() const
Definition: BTagEntry.cc:233
vector< ParameterSet > Parameters
OperatingPoint operatingPoint
Definition: BTagEntry.h:39
std::string formula
Definition: BTagEntry.h:78
OperatingPoint
Definition: BTagEntry.h:27
Parameters params
Definition: BTagEntry.h:79
#define COND_SERIALIZABLE
Definition: Serializable.h:37
BTagEntry()
Definition: BTagEntry.h:67
std::string measurementType
Definition: BTagEntry.h:40