HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HttElectronCorrectionsProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Artus/KappaAnalysis/interface/Producers/ElectronCorrectionsProducer.h"
5 
6 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
7 
8 
15 class HttElectronCorrectionsProducer: public ElectronCorrectionsProducer
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 ElectronEnergyCorrection : int
30  {
31  NONE = -1,
32  FALL2015 = 0,
33  };
34  static ElectronEnergyCorrection ToElectronEnergyCorrection(std::string const& eleEnergyCorrection)
35  {
36  if (eleEnergyCorrection == "fall2015") return ElectronEnergyCorrection::FALL2015;
38  }
39 
40  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
41 
42 
43 protected:
44 
45  // Htt type electron energy corrections
46  virtual void AdditionalCorrections(KElectron* electron, event_type const& event,
47  product_type& product, setting_type const& settings, metadata_type const& metadata) const override;
48 
49 
50 private:
51  ElectronEnergyCorrection eleEnergyCorrection;
52 
53 };
54 
Reads settings for all parts of the KappaAnalysis code from a prepared json configuration file...
Definition: HttSettings.h:15
Producer for electron energy scale corrections (Htt version).
Definition: HttElectronCorrectionsProducer.h:15
HttTypes::event_type spec_event_type
Definition: HttElectronCorrectionsProducer.h:24
Definition: HttMetadata.h:9
KappaTypes::product_type product_type
Definition: HttElectronCorrectionsProducer.h:21
HttTypes::metadata_type spec_metadata_type
Definition: HttElectronCorrectionsProducer.h:27
KappaTypes::metadata_type metadata_type
Definition: HttElectronCorrectionsProducer.h:23
KappaTypes::event_type event_type
Definition: HttElectronCorrectionsProducer.h:20
virtual void AdditionalCorrections(KElectron *electron, event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: HttElectronCorrectionsProducer.cc:19
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: HttElectronCorrectionsProducer.cc:12
HttTypes::product_type spec_product_type
Definition: HttElectronCorrectionsProducer.h:25
static ElectronEnergyCorrection ToElectronEnergyCorrection(std::string const &eleEnergyCorrection)
Definition: HttElectronCorrectionsProducer.h:34
Definition: HttEvent.h:14
HttTypes::setting_type spec_setting_type
Definition: HttElectronCorrectionsProducer.h:26
KappaTypes::setting_type setting_type
Definition: HttElectronCorrectionsProducer.h:22
ElectronEnergyCorrection
Definition: HttElectronCorrectionsProducer.h:29
Definition: HttProduct.h:17