4 #include "Artus/Core/interface/ProducerBase.h"
5 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
6 #include "RooWorkspace.h"
7 #include "RooFunctor.h"
22 virtual void Init(setting_type
const& settings, metadata_type& metadata)
override
24 ProducerBase<HttTypes>::Init(settings, metadata);
25 TDirectory *savedir(gDirectory);
26 TFile *savefile(gFile);
27 TFile
f(settings.GetRooWorkspace().c_str());
28 gSystem->AddIncludePath(
"-I$ROOFITSYS/include");
29 m_workspace = (RooWorkspace*)
f.Get(
"w");
33 m_functorTau1 = m_workspace->function(
"t_trgTightIso_data")->functor(m_workspace->argSet(
"t_pt"));
34 m_functorTau1ss = m_workspace->function(
"t_trgTightIsoSS_data")->functor(m_workspace->argSet(
"t_pt"));
37 virtual void Produce(event_type
const& event, product_type & product,
38 setting_type
const& settings, metadata_type
const& metadata)
const override;
40 RooWorkspace *m_workspace;
41 RooFunctor* m_functorTau1;
42 RooFunctor* m_functorTau1ss;
virtual void Produce(event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: TauTauTriggerScaleFactorProducer.cc:11
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: TauTauTriggerScaleFactorProducer.h:22
std::string GetProducerId() const
Definition: TauTauTriggerScaleFactorProducer.cc:6
TauTauTriggerScaleFactorProducer Config tags:
Definition: TauTauTriggerScaleFactorProducer.h:17