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
ErrorsAnalyzer::ptMin_
double ptMin_
Definition: ErrorsAnalyzer.h:68
MuScleFitUtils.h
ErrorsAnalyzer::errors_
std::vector< double > errors_
Definition: ErrorsAnalyzer.h:76
ErrorsAnalyzer::outputFileName_
TString outputFileName_
Definition: ErrorsAnalyzer.h:66
ErrorsAnalyzer::sigmaMassVsPtPlusErr_
TProfile * sigmaMassVsPtPlusErr_
Definition: ErrorsAnalyzer.h:96
ErrorsAnalyzer::etaMin_
double etaMin_
Definition: ErrorsAnalyzer.h:71
ErrorsAnalyzer::valueMinusError_
std::vector< double > valueMinusError_
Definition: ErrorsAnalyzer.h:80
timingPdfMaker.histo
histo
Definition: timingPdfMaker.py:278
ErrorsAnalyzer::sigmaMassVsEta_
TProfile * sigmaMassVsEta_
Definition: ErrorsAnalyzer.h:91
EDAnalyzer.h
ErrorsAnalyzer::drawHistograms
void drawHistograms(const TProfile *histo, const TProfile *histoPlusErr, const TProfile *histoMinusErr, const TString &type)
Definition: ErrorsAnalyzer.cc:81
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
ErrorsAnalyzer::resolFitType_
int resolFitType_
Definition: ErrorsAnalyzer.h:64
ErrorsAnalyzer::sigmaMassVsPtMinusErr_
TProfile * sigmaMassVsPtMinusErr_
Definition: ErrorsAnalyzer.h:97
MakerMacros.h
ErrorsAnalyzer::etaBins_
int etaBins_
Definition: ErrorsAnalyzer.h:70
ErrorsAnalyzer::sigmaMassVsEtaPlusErr_
TProfile * sigmaMassVsEtaPlusErr_
Definition: ErrorsAnalyzer.h:92
ErrorsAnalyzer::errorFactors_
std::vector< int > errorFactors_
Definition: ErrorsAnalyzer.h:77
RootTreeHandler.h
ErrorsAnalyzer::maxEvents_
uint32_t maxEvents_
Definition: ErrorsAnalyzer.h:65
ErrorsAnalyzer::valuePlusError_
std::vector< double > valuePlusError_
Definition: ErrorsAnalyzer.h:79
ErrorsAnalyzer::sigmaPtVsEtaMinusErr_
TProfile * sigmaPtVsEtaMinusErr_
Definition: ErrorsAnalyzer.h:84
ErrorsAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: ErrorsAnalyzer.cc:194
ErrorsAnalyzer
Definition: ErrorsAnalyzer.h:48
ErrorsAnalyzer::fillHistograms
void fillHistograms()
Definition: ErrorsAnalyzer.cc:196
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
ErrorsAnalyzer::sigmaPtVsEta_
TProfile * sigmaPtVsEta_
Definition: ErrorsAnalyzer.h:82
ErrorsAnalyzer::sigmaPtVsEtaPlusErr_
TProfile * sigmaPtVsEtaPlusErr_
Definition: ErrorsAnalyzer.h:83
ErrorsAnalyzer::parameters_
std::vector< double > parameters_
Definition: ErrorsAnalyzer.h:75
edm::EventSetup
Definition: EventSetup.h:58
ErrorsAnalyzer::ErrorsAnalyzer
ErrorsAnalyzer(const edm::ParameterSet &)
Definition: ErrorsAnalyzer.cc:6
ErrorsAnalyzer::etaMax_
double etaMax_
Definition: ErrorsAnalyzer.h:72
ErrorsAnalyzer::sigmaMassVsEtaMinusErr_
TProfile * sigmaMassVsEtaMinusErr_
Definition: ErrorsAnalyzer.h:93
ErrorsAnalyzer::fillValueError
void fillValueError()
Definition: ErrorsAnalyzer.cc:50
ErrorsAnalyzer::sigmaMassVsPt_
TProfile * sigmaMassVsPt_
Definition: ErrorsAnalyzer.h:95
ErrorsAnalyzer::debug_
bool debug_
Definition: ErrorsAnalyzer.h:73
ErrorsAnalyzer::ptMax_
double ptMax_
Definition: ErrorsAnalyzer.h:69
ErrorsAnalyzer::treeFileName_
TString treeFileName_
Definition: ErrorsAnalyzer.h:61
Frameworkfwd.h
ErrorsAnalyzer::sigmaPtVsPtMinusErr_
TProfile * sigmaPtVsPtMinusErr_
Definition: ErrorsAnalyzer.h:88
ErrorsAnalyzer::endJob
void endJob() override
Definition: ErrorsAnalyzer.h:61
ErrorsAnalyzer::sigmaPtVsPtPlusErr_
TProfile * sigmaPtVsPtPlusErr_
Definition: ErrorsAnalyzer.h:87
ErrorsAnalyzer::sigmaPtVsPt_
TProfile * sigmaPtVsPt_
Definition: ErrorsAnalyzer.h:86
Functions.h
ParameterSet.h
edm::Event
Definition: Event.h:73
ErrorsAnalyzer::~ErrorsAnalyzer
~ErrorsAnalyzer() override
Definition: ErrorsAnalyzer.cc:64
ErrorsAnalyzer::ptBins_
int ptBins_
Definition: ErrorsAnalyzer.h:67