CMS 3D CMS Logo

ErrorsAnalyzer.h
Go to the documentation of this file.
1 #ifndef ERRORSANALYZER_HH
2 #define ERRORSANALYZER_HH
3 
4 // -*- C++ -*-
5 //
6 // Package: ErrorsAnalyzer
7 // Class: ErrorsAnalyzer
8 //
16 //
17 // Original Author: Marco De Mattia
18 // Created: Thu Sep 11 12:16:00 CEST 2008
19 //
20 //
21 
22 // system include files
23 #include <memory>
24 #include <string>
25 #include <vector>
26 
32 
33 #include <TH1D.h>
34 #include <TProfile.h>
35 #include <TString.h>
36 #include <TCanvas.h>
37 #include <TGraphAsymmErrors.h>
38 #include <TROOT.h>
39 
42 #include "MuScleFitUtils.h"
43 
44 //
45 // class declaration
46 //
47 
49 public:
50  explicit ErrorsAnalyzer(const edm::ParameterSet&);
51  ~ErrorsAnalyzer() override;
52 
53 private:
54  void analyze(const edm::Event&, const edm::EventSetup&) override;
55  void fillHistograms();
56  void drawHistograms(const TProfile* histo,
57  const TProfile* histoPlusErr,
58  const TProfile* histoMinusErr,
59  const TString& type);
60  void fillValueError();
61  void endJob() override{};
62 
63  TString treeFileName_;
65  uint32_t maxEvents_;
66  TString outputFileName_;
67  int ptBins_;
68  double ptMin_;
69  double ptMax_;
70  int etaBins_;
71  double etaMin_;
72  double etaMax_;
73  bool debug_;
74 
75  std::vector<double> parameters_;
76  std::vector<double> errors_;
77  std::vector<int> errorFactors_;
78 
79  std::vector<double> valuePlusError_;
80  std::vector<double> valueMinusError_;
81 
82  TProfile* sigmaPtVsEta_;
85 
86  TProfile* sigmaPtVsPt_;
89 
90  // Mass resolution
91  TProfile* sigmaMassVsEta_;
94 
95  TProfile* sigmaMassVsPt_;
98 };
99 
100 #endif // RESOLUTIONANALYZER_HH
type
Definition: HCALResponse.h:21
TProfile * sigmaMassVsPtPlusErr_
TProfile * sigmaMassVsEta_
~ErrorsAnalyzer() override
std::vector< double > valueMinusError_
std::vector< double > errors_
void drawHistograms(const TProfile *histo, const TProfile *histoPlusErr, const TProfile *histoMinusErr, const TString &type)
TProfile * sigmaPtVsPtMinusErr_
TProfile * sigmaMassVsPtMinusErr_
TProfile * sigmaMassVsEtaPlusErr_
void analyze(const edm::Event &, const edm::EventSetup &) override
TString outputFileName_
TProfile * sigmaPtVsEtaMinusErr_
std::vector< int > errorFactors_
uint32_t maxEvents_
std::vector< double > valuePlusError_
TProfile * sigmaPtVsPtPlusErr_
TProfile * sigmaPtVsPt_
TProfile * sigmaMassVsEtaMinusErr_
TProfile * sigmaMassVsPt_
std::vector< double > parameters_
ErrorsAnalyzer(const edm::ParameterSet &)
TString treeFileName_
TProfile * sigmaPtVsEta_
TProfile * sigmaPtVsEtaPlusErr_
void endJob() override