1 |
+ |
#ifndef UserCode_JetFitAnalyzer_JetFitAnalyzer_h |
2 |
+ |
#define UserCode_JetFitAnalyzer_JetFitAnalyzer_h |
3 |
+ |
|
4 |
|
// system include files |
5 |
|
#include <memory> |
3 |
– |
#include <string> |
6 |
|
|
7 |
|
// user include files |
8 |
|
#include "FWCore/Framework/interface/Frameworkfwd.h" |
13 |
|
|
14 |
|
#include "FWCore/ParameterSet/interface/ParameterSet.h" |
15 |
|
|
14 |
– |
#include "UserCode/JetFitAnalyzer/interface/jetfit.h" |
15 |
– |
|
16 |
|
#include "TH2.h" |
17 |
|
|
18 |
< |
struct indiv_par { |
19 |
< |
std::string name; |
20 |
< |
double pval; |
21 |
< |
double perr; |
22 |
< |
double plo; |
23 |
< |
double phi; |
24 |
< |
}; |
18 |
> |
#include <string> |
19 |
> |
#include <vector> |
20 |
> |
|
21 |
> |
#include <TFormula.h> |
22 |
> |
#include <TString.h> |
23 |
> |
#include <TMinuit.h> |
24 |
> |
#include <TH2.h> |
25 |
> |
|
26 |
> |
#include "UserCode/JetFitAnalyzer/interface/HistoFitter.h" |
27 |
|
|
28 |
|
class JetFitAnalyzer : public edm::EDAnalyzer { |
29 |
< |
public: |
29 |
> |
public: |
30 |
|
explicit JetFitAnalyzer(const edm::ParameterSet&); |
31 |
|
~JetFitAnalyzer(); |
32 |
+ |
|
33 |
|
|
34 |
< |
protected: |
34 |
> |
protected: |
35 |
|
virtual void beginJob(const edm::EventSetup&); |
36 |
|
virtual void analyze(const edm::Event&, const edm::EventSetup&); |
37 |
|
virtual void endJob(); |
39 |
|
virtual jetfit::model_def& make_model_def(const edm::Event&, |
40 |
|
const edm::EventSetup&, |
41 |
|
TH2 *hist) = 0; |
42 |
< |
virtual void analyze_results(jetfit::results, std::vector<jetfit::trouble>, |
42 |
> |
virtual void analyze_results(HistoFitter::FitResults, |
43 |
> |
std::vector<HistoFitter::Trouble>, |
44 |
|
TH2 *) = 0; |
45 |
|
void set_user_minuit(void (*_user_minuit)(TMinuit *, TH2 *, int) ) { |
46 |
|
user_minuit = _user_minuit; |
62 |
|
// |
63 |
|
// static data member definitions |
64 |
|
// |
65 |
+ |
|
66 |
+ |
#endif |