HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SvfitCacheConsumer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <TTree.h>
5 
6 #include "Artus/Core/interface/ConsumerBase.h"
7 
8 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
9 
10 
13 class SvfitCacheConsumer: public ConsumerBase<HttTypes> {
14 public:
15 
16  virtual std::string GetConsumerId() const override
17  {
18  return "SvfitCacheConsumer";
19  }
20 
21  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
22 
23  virtual void ProcessFilteredEvent(event_type const& event, product_type const& product,
24  setting_type const& settings, metadata_type const& metadata) override;
25 
26  virtual void Finish(setting_type const& settings, metadata_type const& metadata) override;
27 
28 
29 private:
30  TTree* m_svfitCacheTree = 0;
31  bool m_svfitCacheTreeInitialised = false;
32  bool m_firstSvfitCacheFile = true;
33  int m_fileIndex = 0;
34 
35 };
36 
37 
virtual void Finish(setting_type const &settings, metadata_type const &metadata) override
Definition: SvfitCacheConsumer.cc:95
Definition: SvfitCacheConsumer.h:13
virtual std::string GetConsumerId() const override
Definition: SvfitCacheConsumer.h:16
virtual void ProcessFilteredEvent(event_type const &event, product_type const &product, setting_type const &settings, metadata_type const &metadata) override
Definition: SvfitCacheConsumer.cc:25
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: SvfitCacheConsumer.cc:11