CMS 3D CMS Logo

QGTagger.h
Go to the documentation of this file.
1 #ifndef JetProducers_QGTagger_h
2 #define JetProducers_QGTagger_h
3 #include <tuple>
4 
6 
9 
12 
15 
17  public:
18  explicit QGTagger(const edm::ParameterSet&);
19  ~QGTagger() override{ delete qgLikelihood;};
20  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
21 
22  private:
23  void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
24  std::tuple<int, float, float> calcVariables(const reco::Jet*, edm::Handle<reco::VertexCollection>&, bool) const;
25  template <typename T> void putInEvent(const std::string&, const edm::Handle<edm::View<reco::Jet>>&, std::vector<T>*, edm::Event&) const;
26  bool isPackedCandidate(const reco::Jet* jet) const;
27 
35 };
36 
37 #endif
Base class for all types of Jets.
Definition: Jet.h:20
void putInEvent(const std::string &, const edm::Handle< edm::View< reco::Jet >> &, std::vector< T > *, edm::Event &) const
Function to put product into event.
Definition: QGTagger.cc:116
edm::EDGetTokenT< reco::VertexCollection > vertexToken
Definition: QGTagger.h:30
const bool useJetCorr
Definition: QGTagger.h:33
bool isPackedCandidate(const reco::Jet *jet) const
Function to tell us if we are using packedCandidates, only test for first candidate.
Definition: QGTagger.cc:127
QGLikelihoodCalculator * qgLikelihood
Definition: QGTagger.h:34
std::string systLabel
Definition: QGTagger.h:32
QGTagger(const edm::ParameterSet &)
Definition: QGTagger.cc:28
const bool produceSyst
Definition: QGTagger.h:33
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Produce qgLikelihood using {mult, ptD, -log(axis2)}.
Definition: QGTagger.cc:53
~QGTagger() override
Definition: QGTagger.h:19
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Descriptions method.
Definition: QGTagger.cc:217
std::tuple< int, float, float > calcVariables(const reco::Jet *, edm::Handle< reco::VertexCollection > &, bool) const
Calculation of axis2, mult and ptD.
Definition: QGTagger.cc:138
edm::EDGetTokenT< edm::View< reco::Jet > > jetsToken
Definition: QGTagger.h:28
std::string jetsLabel
Definition: QGTagger.h:32
edm::EDGetTokenT< double > rhoToken
Definition: QGTagger.h:31
edm::EDGetTokenT< reco::JetCorrector > jetCorrectorToken
Definition: QGTagger.h:29
const bool useQC
Definition: QGTagger.h:33