ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/JetFitAnalyzer/interface/JetFitAnalyzer.h
Revision: 1.1
Committed: Fri Sep 11 19:05:51 2009 UTC (15 years, 7 months ago) by dnisson
Content type: text/plain
Branch: MAIN
CVS Tags: V00-01-00, V00-00-01
Log Message:
Added JetFitAnalyzer.h again. (What happened?)

File Contents

# User Rev Content
1 dnisson 1.1 // system include files
2     #include <memory>
3     #include <string>
4    
5     // user include files
6     #include "FWCore/Framework/interface/Frameworkfwd.h"
7     #include "FWCore/Framework/interface/EDAnalyzer.h"
8    
9     #include "FWCore/Framework/interface/Event.h"
10     #include "FWCore/Framework/interface/MakerMacros.h"
11    
12     #include "FWCore/ParameterSet/interface/ParameterSet.h"
13    
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     };
25    
26     class JetFitAnalyzer : public edm::EDAnalyzer {
27     public:
28     explicit JetFitAnalyzer(const edm::ParameterSet&);
29     ~JetFitAnalyzer();
30    
31     protected:
32     virtual void beginJob(const edm::EventSetup&);
33     virtual void analyze(const edm::Event&, const edm::EventSetup&);
34     virtual void endJob();
35     virtual TH2D * make_histo(const edm::Event&, const edm::EventSetup&) = 0;
36     virtual jetfit::model_def& make_model_def(const edm::Event&,
37     const edm::EventSetup&,
38     TH2 *hist) = 0;
39     virtual void analyze_results(jetfit::results, std::vector<jetfit::trouble>,
40     TH2 *) = 0;
41     void set_user_minuit(void (*_user_minuit)(TMinuit *, TH2 *, int) ) {
42     user_minuit = _user_minuit;
43     }
44    
45     private:
46     // ----------member data ---------------------------
47     bool ignorezero_;
48     int rebinX_;
49     int rebinY_;
50     double P_cutoff_val_;
51     void (*user_minuit)(TMinuit *, TH2 *, int);
52     };
53    
54     //
55     // constants, enums and typedefs
56     //
57    
58     //
59     // static data member definitions
60     //