HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AcceptanceEfficiencyConsumer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <TH2.h>
5 #include "TROOT.h"
6 
7 #include "Artus/Core/interface/ConsumerBase.h"
8 #include "Artus/Utility/interface/RootFileHelper.h"
9 
10 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
11 #include "Artus/Consumer/interface/LambdaNtupleConsumer.h"
12 
13 class AcceptanceEfficiencyConsumer : public LambdaNtupleConsumer<HttTypes> {
14 public:
15 
16  virtual std::string GetConsumerId() const override;
17  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
18  virtual void ProcessFilteredEvent(event_type const& event, product_type const& product, setting_type const& settings, metadata_type const& metadata) override;
19  virtual void Finish(setting_type const& settings, metadata_type const& metadata) override;
20 
21 private:
22 
23  const unsigned int nAttempts = 1000;
24  TH2D* acc_eff_hist;
25  TH2D* number_of_passed_hist;
26  TH2D* number_of_entries_hist;
27 
28  TH1D* PtTau1_hist;
29  TH1D* PtVis1_hist;
30 
31  TH1D* PtTau2_hist;
32  TH1D* PtVis2_hist;
33 
34  unsigned int leadingTauDC = 0;
35  unsigned int trailingTauDC = 0;
36 };
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: AcceptanceEfficiencyConsumer.cc:8
virtual void Finish(setting_type const &settings, metadata_type const &metadata) override
Definition: AcceptanceEfficiencyConsumer.cc:70
virtual std::string GetConsumerId() const override
Definition: AcceptanceEfficiencyConsumer.cc:3
Definition: AcceptanceEfficiencyConsumer.h:13
virtual void ProcessFilteredEvent(event_type const &event, product_type const &product, setting_type const &settings, metadata_type const &metadata) override
Definition: AcceptanceEfficiencyConsumer.cc:28