SoftLeptonTagPlotter

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#ifndef RecoBTag_Analysis_SoftLeptonTagPlotter_h
#define RecoBTag_Analysis_SoftLeptonTagPlotter_h

#include "DataFormats/BTauReco/interface/SoftLeptonTagInfo.h"
#include "DQMOffline/RecoB/interface/BaseTagInfoPlotter.h"
#include "DQMOffline/RecoB/interface/FlavourHistorgrams.h"
// #include "RecoBTag/MCTools/interface/JetFlavour.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"

class SoftLeptonTagPlotter : public BaseTagInfoPlotter {
public:
  SoftLeptonTagPlotter(const std::string& tagName,
                       const EtaPtBin& etaPtBin,
                       const edm::ParameterSet& pSet,
                       unsigned int mc,
                       bool willFinalize,
                       DQMStore::IBooker& ibook);

  ~SoftLeptonTagPlotter(void) override;

  void analyzeTag(const reco::BaseTagInfo* baseTagInfo, double jec, int jetFlavour, float w /*=1*/) override;

  void finalize(DQMStore::IBooker& ibook_, DQMStore::IGetter& igetter_) override {}

  void psPlot(const std::string& name) override;
  void epsPlot(const std::string& name) override;

private:
  unsigned int mcPlots_;
  bool willFinalize_;

  // keep plots for up to 2 leptons per jet
  static const int s_leptons = 2;
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_leptonId;  // lepton identification discriminant
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_leptonPt;  // lepton transverse momentum
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_sip2dsig;  // 2D signed inpact parameter significance
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_sip3dsig;  // 3D signed inpact parameter significance
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_sip2d;     // 2D signed inpact parameter
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_sip3d;     // 3D signed inpact parameter
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_ptRel;     // transverse momentum wrt. jet axis
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_p0Par;  // parallel momentum wrt. jet axis in the B rest frame
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_etaRel;    // (pseudo)rapidity along jet axis
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_deltaR;    // (pseudo)angular distance to jet axis
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_ratio;     // momentum over jet energy
  std::vector<std::unique_ptr<FlavourHistograms<double>>> m_ratioRel;  // momentum parallel to jet axis over jet energy
};

#endif  // RecoBTag_Analysis_SoftLeptonTagPlotter_h