HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
EmuQcdWeightProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 //#include "Artus/KappaAnalysis/interface/KappaProducerBase.h"
5 #include "Artus/Core/interface/ProducerBase.h"
6 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
7 #include "HTT-utilities/QCDModelingEMu/interface/QCDModelForEMu.h"
8 
16 //class EmuQcdWeightProducer : public KappaProducerBase {
17 class EmuQcdWeightProducer: public ProducerBase<HttTypes> {
18 public:
19 
20  std::string GetProducerId() const;
21 
22  virtual void Init(setting_type const& settings, metadata_type& metadata) override
23  {
24  ProducerBase<HttTypes>::Init(settings, metadata);
25  TDirectory *savedir(gDirectory);
26  TFile *savefile(gFile);
27  m_qcdWeights = new QCDModelForEMu("HTT-utilities/QCDModelingEMu/data/QCD_weight_emu.root");
28  gDirectory = savedir;
29  gFile = savefile;
30  }
31 
32  virtual void Produce(event_type const& event, product_type & product,
33  setting_type const& settings, metadata_type const& metadata) const override;
34 private:
35  QCDModelForEMu* m_qcdWeights=0;
36 
37 };
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: EmuQcdWeightProducer.h:22
std::string GetProducerId() const
Definition: EmuQcdWeightProducer.cc:5
virtual void Produce(event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: EmuQcdWeightProducer.cc:10
EmuQcdWeightProducer Config tags:
Definition: EmuQcdWeightProducer.h:17