ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/lucieg/AnalyzerForTests/Analyzer/plugins/Analyzer.h
Revision: 1.1
Committed: Thu Jul 7 16:21:20 2011 UTC (13 years, 9 months ago) by lucieg
Content type: text/plain
Branch: MAIN
CVS Tags: logger_lucieg_22Nov11-00h31m40s, logger_lucieg_11Jul11-14h37m27s, HEAD
Log Message:
resync

File Contents

# User Rev Content
1 lucieg 1.1 // -*- C++ -*-
2     //
3     // Package: Analyzer
4     // Class: Analyzer
5     //
6     /**\class Analyzer Analyzer.cc /Analyzer/plugins/Analyzer.cc
7    
8     Description: [one line class summary]
9    
10     Implementation:
11     [Notes on implementation]
12     */
13     //
14     // Original Author: "Lucie Gauthier"
15     //
16     // $Id: Analyzer.h,v 1.8 2011/04/21 12:15:14 lucieg Exp $
17     //
18     //
19    
20     #ifndef AnalyzerForTests_Analyzer_Analyzer_
21     #define AnalyzerForTests_Analyzer_Analyzer_
22    
23    
24     // system include files
25     #include <memory>
26     #include <string>
27     #include <vector>
28    
29     // user include files
30     //CMSSW includes
31     #include "FWCore/Framework/interface/Frameworkfwd.h"
32     #include "FWCore/Framework/interface/EDAnalyzer.h"
33     #include "FWCore/Framework/interface/Event.h"
34     #include "FWCore/Framework/interface/MakerMacros.h"
35     #include "FWCore/ParameterSet/interface/ParameterSet.h"
36     #include "FWCore/Framework/interface/ESHandle.h"
37    
38     #include "FWCore/Utilities/interface/Exception.h"
39     #include "FWCore/Framework/interface/EventSetup.h"
40    
41     #include "DataFormats/Common/interface/Handle.h"
42    
43     #include <DataFormats/PatCandidates/interface/Electron.h>
44     #include "DataFormats/Math/interface/deltaR.h"
45     #include "DataFormats/Common/interface/ValueMap.h"
46     #include "AnalysisDataFormats/CMGTools/interface/Electron.h"
47    
48     //ROOT includes
49     #include "TFile.h"
50     #include "TH1F.h"
51     #include "TH2F.h"
52     #include "TF1.h"
53     #include "TTree.h"
54    
55     //
56     // class declaration
57     //
58    
59     class Analyzer : public edm::EDAnalyzer {
60     public:
61     explicit Analyzer(const edm::ParameterSet&);
62     ~Analyzer();
63    
64    
65     private:
66     virtual void beginJob() ;
67     virtual void analyze(const edm::Event&, const edm::EventSetup&);
68     virtual void endJob() ;
69    
70    
71     // ----------member data ---------------------------
72     edm::InputTag inputTagElectrons_;
73     edm::InputTag inputTagCmgElectrons_;
74    
75     //output
76     TFile *outputFile_;
77     std::string fOutputFileName_;
78    
79    
80     // tree & its variables
81     TTree* eleTree_;
82     double deltaR_;
83     double ptReco_;
84     double ptGen_;
85     double etaReco_;
86     double etaGen_;
87    
88    
89    
90     };
91    
92     #endif
93