CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: ErrorsAnalyzer.h,v 1.5 2012/12/20 16:09:21 emiglior Exp $
20 //
21 //
22 
23 // system include files
24 #include <memory>
25 #include <string>
26 #include <vector>
27 
33 
34 #include <TH1D.h>
35 #include <TProfile.h>
36 #include <TString.h>
37 #include <TCanvas.h>
38 #include <TGraphAsymmErrors.h>
39 #include <TROOT.h>
40 
43 #include "MuScleFitUtils.h"
44 
45 //
46 // class declaration
47 //
48 
50 {
51 public:
52  explicit ErrorsAnalyzer(const edm::ParameterSet&);
54 
55 private:
56  virtual void analyze(const edm::Event&, const edm::EventSetup&);
57  void fillHistograms();
58  void drawHistograms(const TProfile * histo, const TProfile * histoPlusErr, const TProfile * histoMinusErr, const TString & type);
59  void fillValueError();
60  virtual void endJob() {};
61 
62  TString treeFileName_;
64  uint32_t maxEvents_;
65  TString outputFileName_;
66  int ptBins_;
67  double ptMin_;
68  double ptMax_;
69  int etaBins_;
70  double etaMin_;
71  double etaMax_;
72  bool debug_;
73 
74  std::vector<double> parameters_;
75  std::vector<double> errors_;
76  std::vector<int> errorFactors_;
77 
78  std::vector<double> valuePlusError_;
79  std::vector<double> valueMinusError_;
80 
81  TProfile * sigmaPtVsEta_;
84 
85  TProfile * sigmaPtVsPt_;
86  TProfile * sigmaPtVsPtPlusErr_;
88 
89  // Mass resolution
90  TProfile * sigmaMassVsEta_;
93 
94  TProfile * sigmaMassVsPt_;
97 };
98 
99 #endif // RESOLUTIONANALYZER_HH
type
Definition: HCALResponse.h:22
TProfile * sigmaMassVsPtPlusErr_
TProfile * sigmaMassVsEta_
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_
TString outputFileName_
TProfile * sigmaPtVsEtaMinusErr_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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_
virtual void endJob()
TProfile * sigmaPtVsEtaPlusErr_