HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HttTauCorrectionsProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Artus/KappaAnalysis/interface/Producers/TauCorrectionsProducer.h"
5 
6 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
7 
8 
15 class HttTauCorrectionsProducer: public TauCorrectionsProducer
16 {
17 
18 public:
19 
20  typedef typename KappaTypes::event_type event_type;
21  typedef typename KappaTypes::product_type product_type;
22  typedef typename KappaTypes::setting_type setting_type;
23  typedef typename KappaTypes::metadata_type metadata_type;
28 
29  enum class TauEnergyCorrection : int
30  {
31  NONE = -1,
32  SUMMER2013 = 0,
33  NEWTAUID = 1,
34  SMHTT2016,
36  };
37  static TauEnergyCorrection ToTauEnergyCorrection(std::string const& tauEnergyCorrection)
38  {
39  if (tauEnergyCorrection == "summer2013") return TauEnergyCorrection::SUMMER2013;
40  else if (tauEnergyCorrection == "newtauid") return TauEnergyCorrection::NEWTAUID;
41  else if (tauEnergyCorrection == "smhtt2016") return TauEnergyCorrection::SMHTT2016;
42  else if (tauEnergyCorrection == "mssmhtt2016") return TauEnergyCorrection::MSSMHTT2016;
43  else return TauEnergyCorrection::NONE;
44  }
45 
46  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
47 
48 
49 protected:
50 
51  // Htt type tau energy corrections
52  virtual void AdditionalCorrections(KTau* tau, event_type const& event,
53  product_type& product, setting_type const& settings, metadata_type const& metadata) const override;
54 
55 
56 private:
57  TauEnergyCorrection tauEnergyCorrection;
58 
59 };
60 
Reads settings for all parts of the KappaAnalysis code from a prepared json configuration file...
Definition: HttSettings.h:15
TauEnergyCorrection
Definition: HttTauCorrectionsProducer.h:29
Definition: HttMetadata.h:9
static TauEnergyCorrection ToTauEnergyCorrection(std::string const &tauEnergyCorrection)
Definition: HttTauCorrectionsProducer.h:37
KappaTypes::setting_type setting_type
Definition: HttTauCorrectionsProducer.h:22
HttTypes::product_type spec_product_type
Definition: HttTauCorrectionsProducer.h:25
HttTypes::metadata_type spec_metadata_type
Definition: HttTauCorrectionsProducer.h:27
HttTypes::event_type spec_event_type
Definition: HttTauCorrectionsProducer.h:24
Producer for tau energy scale corrections (Htt version).
Definition: HttTauCorrectionsProducer.h:15
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: HttTauCorrectionsProducer.cc:17
virtual void AdditionalCorrections(KTau *tau, event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: HttTauCorrectionsProducer.cc:24
Definition: HttEvent.h:14
KappaTypes::product_type product_type
Definition: HttTauCorrectionsProducer.h:21
KappaTypes::metadata_type metadata_type
Definition: HttTauCorrectionsProducer.h:23
HttTypes::setting_type spec_setting_type
Definition: HttTauCorrectionsProducer.h:26
Definition: HttProduct.h:17
KappaTypes::event_type event_type
Definition: HttTauCorrectionsProducer.h:20