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 {
50 public:
51  explicit ErrorsAnalyzer(const edm::ParameterSet&);
52  ~ErrorsAnalyzer() override;
53 
54 private:
55  void analyze(const edm::Event&, const edm::EventSetup&) override;
56  void fillHistograms();
57  void drawHistograms(const TProfile * histo, const TProfile * histoPlusErr, const TProfile * histoMinusErr, const TString & type);
58  void fillValueError();
59  void endJob() override {};
60 
61  TString treeFileName_;
63  uint32_t maxEvents_;
64  TString outputFileName_;
65  int ptBins_;
66  double ptMin_;
67  double ptMax_;
68  int etaBins_;
69  double etaMin_;
70  double etaMax_;
71  bool debug_;
72 
73  std::vector<double> parameters_;
74  std::vector<double> errors_;
75  std::vector<int> errorFactors_;
76 
77  std::vector<double> valuePlusError_;
78  std::vector<double> valueMinusError_;
79 
80  TProfile * sigmaPtVsEta_;
83 
84  TProfile * sigmaPtVsPt_;
85  TProfile * sigmaPtVsPtPlusErr_;
87 
88  // Mass resolution
89  TProfile * sigmaMassVsEta_;
92 
93  TProfile * sigmaMassVsPt_;
96 };
97 
98 #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