CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TagCorrelationPlotter.cc
Go to the documentation of this file.
3 
4 #include <string>
5 
6 using namespace std;
7 using namespace RecoBTag;
8 
10  const EtaPtBin& etaPtBin, const edm::ParameterSet& pSet,
11  const unsigned int& mc, DQMStore::IBooker & ibook) :
12  BaseBTagPlotter(tagName2 + "_vs_" + tagName1, etaPtBin),
13  lowerBound1_(pSet.getParameter<double>("Discr1Start")),
14  lowerBound2_(pSet.getParameter<double>("Discr2Start")),
15  upperBound1_(pSet.getParameter<double>("Discr1End")),
16  upperBound2_(pSet.getParameter<double>("Discr2End")),
17  createProfile_(pSet.getParameter<bool>("CreateProfile"))
18  {
19  correlationHisto_ = new FlavourHistograms2D<double, double>("correlation" + theExtensionString, tagName2 + " discr vs " + tagName1 + " discr",
21  "TagCorrelation" + theExtensionString, mc, createProfile_, ibook);
22  correlationHisto_->settitle(tagName1.c_str(), tagName2.c_str());
23 }
24 
26  delete correlationHisto_;
27 }
28 
29 void TagCorrelationPlotter::analyzeTags(const reco::JetTag& jetTag1, const reco::JetTag& jetTag2, const int& jetFlavour, const float & w) {
30  correlationHisto_->fill(jetFlavour, jetTag1.second, jetTag2.second, w);
31 }
32 
33 void TagCorrelationPlotter::analyzeTags(const reco::JetTag& jetTag1, const reco::JetTag& jetTag2, const int& jetFlavour) {
34  analyzeTags(jetTag1, jetTag2, jetFlavour, 1.0);
35 }
36 
37 void TagCorrelationPlotter::analyzeTags(const float& discr1, const float& discr2, const int& jetFlavour, const float & w) {
38  correlationHisto_->fill(jetFlavour, discr1, discr2, w);
39 }
40 
41 void TagCorrelationPlotter::analyzeTags(const float& discr1, const float& discr2, const int& jetFlavour) {
42  analyzeTags(discr1, discr2, jetFlavour, 1.0);
43 }
const double w
Definition: UKUtility.cc:23
void settitle(const char *titleX, const char *titleY)
FlavourHistograms2D< double, double > * correlationHisto_
const std::string theExtensionString
JetFloatAssociation::value_type JetTag
Definition: JetTag.h:17
TagCorrelationPlotter(const std::string &tagName1, const std::string &tagName2, const EtaPtBin &etaPtBin, const edm::ParameterSet &pSet, const unsigned int &mc, DQMStore::IBooker &ibook)
void fill(const int &flavour, const T &variableX, const G &variableY) const
void analyzeTags(const reco::JetTag &jetTag1, const reco::JetTag &jetTag2, const int &jetFlavour)