File indexing completed on 2023-03-17 11:16:33
0001 #ifndef PatUtils_bJetSelector_H_
0002 #define PatUtils_bJetSelector_H_
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0017 #include "DataFormats/PatCandidates/interface/Jet.h"
0018
0019 class bJetSelector {
0020 public:
0021 bJetSelector(const edm::ParameterSet& cfg);
0022 bool IsbTag(const pat::Jet& JetCand, const std::string& operpoint, const std::string& tagger) const;
0023 bool IsbTag(const pat::Jet& JetCand, const std::string& operpoint) const;
0024 bool IsbTag(const pat::Jet& JetCand) const;
0025
0026 private:
0027 std::map<std::string, std::map<std::string, double> > discCut;
0028 std::vector<double> discriminantCutsLoose_;
0029 std::vector<double> discriminantCutsMedium_;
0030 std::vector<double> discriminantCutsTight_;
0031 std::vector<std::string> BTagdiscriminator_;
0032 std::string DefaultOp_;
0033 std::string DefaultTg_;
0034 };
0035
0036 #endif