1 |
dnisson |
1.3 |
#ifndef UserCode_JetFitAnalyzer_JetFitAnalyzer_h
|
2 |
|
|
#define UserCode_JetFitAnalyzer_JetFitAnalyzer_h
|
3 |
|
|
|
4 |
dnisson |
1.1 |
// system include files
|
5 |
|
|
#include <memory>
|
6 |
|
|
|
7 |
|
|
// user include files
|
8 |
|
|
#include "FWCore/Framework/interface/Frameworkfwd.h"
|
9 |
|
|
#include "FWCore/Framework/interface/EDAnalyzer.h"
|
10 |
|
|
|
11 |
|
|
#include "FWCore/Framework/interface/Event.h"
|
12 |
|
|
#include "FWCore/Framework/interface/MakerMacros.h"
|
13 |
|
|
|
14 |
|
|
#include "FWCore/ParameterSet/interface/ParameterSet.h"
|
15 |
|
|
|
16 |
|
|
#include "TH2.h"
|
17 |
|
|
|
18 |
dnisson |
1.3 |
#include <string>
|
19 |
|
|
#include <vector>
|
20 |
|
|
|
21 |
|
|
#include <TFormula.h>
|
22 |
|
|
#include <TString.h>
|
23 |
|
|
#include <TMinuit.h>
|
24 |
|
|
#include <TH2.h>
|
25 |
|
|
|
26 |
dnisson |
1.5 |
#include "UserCode/JetFitAnalyzer/interface/HistoFitter.h"
|
27 |
dnisson |
1.4 |
|
28 |
dnisson |
1.1 |
class JetFitAnalyzer : public edm::EDAnalyzer {
|
29 |
dnisson |
1.4 |
public:
|
30 |
dnisson |
1.1 |
explicit JetFitAnalyzer(const edm::ParameterSet&);
|
31 |
|
|
~JetFitAnalyzer();
|
32 |
dnisson |
1.6 |
|
33 |
dnisson |
1.4 |
protected:
|
34 |
dnisson |
1.1 |
virtual void beginJob(const edm::EventSetup&);
|
35 |
|
|
virtual void analyze(const edm::Event&, const edm::EventSetup&);
|
36 |
|
|
virtual void endJob();
|
37 |
|
|
virtual TH2D * make_histo(const edm::Event&, const edm::EventSetup&) = 0;
|
38 |
dnisson |
1.6 |
virtual HistoFitter::ModelDefinition& make_model_def(const edm::Event&,
|
39 |
|
|
const edm::EventSetup&,
|
40 |
|
|
TH2 *hist) = 0;
|
41 |
dnisson |
1.5 |
virtual void analyze_results(HistoFitter::FitResults,
|
42 |
|
|
std::vector<HistoFitter::Trouble>,
|
43 |
dnisson |
1.1 |
TH2 *) = 0;
|
44 |
|
|
|
45 |
dnisson |
1.7 |
private:
|
46 |
dnisson |
1.1 |
// ----------member data ---------------------------
|
47 |
dnisson |
1.7 |
double P_cutoff_val_;
|
48 |
dnisson |
1.1 |
};
|
49 |
|
|
|
50 |
|
|
//
|
51 |
|
|
// constants, enums and typedefs
|
52 |
|
|
//
|
53 |
|
|
|
54 |
|
|
//
|
55 |
|
|
// static data member definitions
|
56 |
|
|
//
|
57 |
dnisson |
1.3 |
|
58 |
|
|
#endif
|