CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFTauElecRejectionBenchmark.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
2 #define RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
3 
10 
13 
14 #include "Math/GenVector/VectorUtil.h"
15 #include "Math/GenVector/PxPyPzE4D.h"
16 #include "TLorentzVector.h"
17 
19 #include "TH1F.h"
20 #include "TH2F.h"
21 #include <string>
22 #include <TFile.h>
23 
26 
28 
30 
31 class TH1F;
32 class TH2F;
33 
34 //class DQMStore; // CMSSW_2_X_X not needed here?
35 
37 
38  public:
39 
42 
43  void setup(
44  std::string Filename,
45  std::string benchmarkLabel,
46  double maxDeltaR,
47  double minRecoPt,
48  double maxRecoAbsEta,
49  double minMCPt,
50  double maxMCAbsEta,
51  std::string sGenMatchObjectLabel,
52  bool applyEcalCrackCut,
53  DQMStore * db_store);
57  void write();
58 
59  private:
60 
61  bool isInEcalCrack(double eta) const;
62 
63  TFile *file_;
64  std::string outputFile_;
65  std::string benchmarkLabel_;
66  double maxDeltaR_;
67  double minMCPt_;
68  double maxMCAbsEta_;
69  double minRecoPt_;
71  std::string sGenMatchObjectLabel_;
73 
74  // histograms
75  TH1F *hEoverP;
76  TH1F *hHoverP;
77  TH1F *hEmfrac;
78 
82 
86 
90 
94 
95  TH1F *hElecPreID;
96  TH1F *hElecMVA;
98 
99  TH2F *hHoPvsEoP;
102 
106 
111 
112  TH1F *hleadTk_pt;
113  TH1F *hleadTk_eta;
114  TH1F *hleadTk_phi;
115 
116  // to be filled yet!
120 
121 
122  std::vector<TLorentzVector> _GenObjects;
123 
124  protected:
125 
127 };
128 
129 #endif // RecoParticleFlow_Benchmark_PFTauElecRejectionBenchmark_h
tuple pfTaus
Definition: pfTaus_cff.py:119
T eta() const
std::vector< TLorentzVector > _GenObjects
void process(edm::Handle< edm::HepMCProduct > mcevt, edm::Handle< reco::PFTauCollection > pfTaus, edm::Handle< reco::PFTauDiscriminator > pfTauIsoDiscr, edm::Handle< reco::PFTauDiscriminator > pfTauElecDiscr)
void setup(std::string Filename, std::string benchmarkLabel, double maxDeltaR, double minRecoPt, double maxRecoAbsEta, double minMCPt, double maxMCAbsEta, std::string sGenMatchObjectLabel, bool applyEcalCrackCut, DQMStore *db_store)