CMS 3D CMS Logo

TaggingVariablePlotter.h
Go to the documentation of this file.
1 #ifndef TaggingVariablePlotter_H
2 #define TaggingVariablePlotter_H
3 
4 #include <string>
5 #include <vector>
6 
12 
13 
15 
16  public:
17 
19  const edm::ParameterSet& pSet,
20  unsigned int mc, bool willFinalize, DQMStore::IBooker & ibook,
21  const std::string &category = std::string());
22 
23  ~TaggingVariablePlotter () override;
24 
26  void analyzeTag(const reco::BaseTagInfo * baseTagInfo, double jec, int jetFlavour, float w=1) override;
27  void analyzeTag(const reco::TaggingVariableList & variables, int jetFlavour, float w=1);
28 
29  void finalize(DQMStore::IBooker & ibook_, DQMStore::IGetter & igetter_) override {}
30 
31  void epsPlot(const std::string & name) override {}
32 
33  void psPlot(const std::string & name) override {}
34 
35  private:
36 
37  unsigned int mcPlots_;
38 
39  struct VariableConfig {
41  const std::string &category, const std::string& label,
42  unsigned int mc, DQMStore::IBooker & ibook);
43 
45  unsigned int nBins;
46  double min, max;
47  bool logScale;
48 
49  struct Plot {
50  std::shared_ptr< FlavourHistograms<double> > histo;
51  unsigned int index;
52  };
53 
54  std::vector<Plot> plots;
56  };
57 
58  std::vector<VariableConfig> variables;
59 };
60 
61 #endif
TaggingVariablePlotter(const std::string &tagName, const EtaPtBin &etaPtBin, const edm::ParameterSet &pSet, unsigned int mc, bool willFinalize, DQMStore::IBooker &ibook, const std::string &category=std::string())
std::vector< VariableConfig > variables
void epsPlot(const std::string &name) override
const double w
Definition: UKUtility.cc:23
virtual void analyzeTag(const reco::BaseTagInfo *tagInfo, double jec, int jetFlavour, float w=1)
const EtaPtBin & etaPtBin()
void psPlot(const std::string &name) override
void analyzeTag(const reco::BaseTagInfo *baseTagInfo, double jec, int jetFlavour, float w=1) override
std::shared_ptr< FlavourHistograms< double > > histo
void finalize(DQMStore::IBooker &ibook_, DQMStore::IGetter &igetter_) override
VariableConfig(const std::string &name, const edm::ParameterSet &pSet, const std::string &category, const std::string &label, unsigned int mc, DQMStore::IBooker &ibook)