52 svTagInfo_(pSet.getParameter<
std::
string>(
"svTagInfo")),
53 ptMin_(pSet.getParameter<double>(
"ptMin")),
54 etaMax_(pSet.getParameter<double>(
"etaMax")) {}
59 n_sv_ = ibook.
book1D(
"n_sv",
"number of SV in jet", 5, 0, 5);
65 sv_pt_ = ibook.
book1D(
"sv_pt",
"SV transverse momentum", 40, 0., 120.);
77 sv_ptrel_ = ibook.
book1D(
"sv_ptrel",
"SV jet transverse momentum ratio", 25, 0., 1.);
86 sv_dxy_ = ibook.
book1D(
"sv_dxy",
"2D flight distance", 40, 0., 8.);
89 sv_dxysig_ = ibook.
book1D(
"sv_dxysig",
"2D flight distance significance", 25, 0., 250.);
92 sv_d3d_ = ibook.
book1D(
"sv_d3d",
"3D flight distance", 40, 0., 8.);
95 sv_d3dsig_ = ibook.
book1D(
"sv_d3dsig",
"3D flight distance significance", 25, 0., 250.);
112 for (
unsigned int i = 0;
i < taginfo->
nVertices();
i++) {
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
virtual void setCurrentFolder(std::string const &fullpath)
MiniAODSVAnalyzer(const edm::ParameterSet &pSet)
~MiniAODSVAnalyzer() override=default
MonitorElement * sv_mass_
MonitorElement * sv_dxysig_
MonitorElement * sv_chi2norm_
MonitorElement * sv_ptrel_
MonitorElement * sv_energyratio_
const edm::EDGetTokenT< std::vector< pat::Jet > > jetToken_
const std::string svTagInfo_
Abs< T >::type abs(const T &t)
float ChiSquaredProbability(double chiSquared, double nrDOF)
#define DEFINE_FWK_MODULE(type)
constexpr auto deltaR(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Measurement1D flightDistance(unsigned int index, int dim=0) const
MonitorElement * sv_deltaR_
MonitorElement * sv_chi2prob_
const VTX & secondaryVertex(unsigned int index) const
double significance() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * sv_ntracks_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * sv_d3dsig_
unsigned int nVertices() const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)