ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/kenan/AnalysisCodes/JetAnalyzer/src/JetAnalyzer.cc
Revision: 1.1
Committed: Thu Jul 17 13:35:43 2008 UTC (16 years, 9 months ago) by kenan
Content type: text/plain
Branch point for: INITIAL, MAIN
Log Message:
Initial revision

File Contents

# User Rev Content
1 kenan 1.1 // -*- C++ -*-
2     //
3     // Package: JetAnalyzer
4     // Class: JetAnalyzer
5     //
6     /**\class JetAnalyzer JetAnalyzer.cc MyAnalyzers/JetAnalyzer/src/JetAnalyzer.cc
7    
8     Description: <one line class summary>
9    
10     Implementation:
11     <Notes on implementation>
12     */
13     //
14     // Original Author: Kenan Sogut
15     // Created: Thu Jul 17 15:32:55 CEST 2008
16     // $Id$
17     //
18     //
19    
20    
21     // system include files
22     #include <memory>
23    
24     // user include files
25     #include "FWCore/Framework/interface/Frameworkfwd.h"
26     #include "FWCore/Framework/interface/EDAnalyzer.h"
27    
28     #include "FWCore/Framework/interface/Event.h"
29     #include "FWCore/Framework/interface/MakerMacros.h"
30    
31     #include "FWCore/ParameterSet/interface/ParameterSet.h"
32     //
33     // class decleration
34     //
35    
36     class JetAnalyzer : public edm::EDAnalyzer {
37     public:
38     explicit JetAnalyzer(const edm::ParameterSet&);
39     ~JetAnalyzer();
40    
41    
42     private:
43     virtual void beginJob(const edm::EventSetup&) ;
44     virtual void analyze(const edm::Event&, const edm::EventSetup&);
45     virtual void endJob() ;
46    
47     // ----------member data ---------------------------
48     };
49    
50     //
51     // constants, enums and typedefs
52     //
53    
54     //
55     // static data member definitions
56     //
57    
58     //
59     // constructors and destructor
60     //
61     JetAnalyzer::JetAnalyzer(const edm::ParameterSet& iConfig)
62    
63     {
64     //now do what ever initialization is needed
65    
66     }
67    
68    
69     JetAnalyzer::~JetAnalyzer()
70     {
71    
72     // do anything here that needs to be done at desctruction time
73     // (e.g. close files, deallocate resources etc.)
74    
75     }
76    
77    
78     //
79     // member functions
80     //
81    
82     // ------------ method called to for each event ------------
83     void
84     JetAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup)
85     {
86     using namespace edm;
87    
88    
89    
90     #ifdef THIS_IS_AN_EVENT_EXAMPLE
91     Handle<ExampleData> pIn;
92     iEvent.getByLabel("example",pIn);
93     #endif
94    
95     #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
96     ESHandle<SetupData> pSetup;
97     iSetup.get<SetupRecord>().get(pSetup);
98     #endif
99     }
100    
101    
102     // ------------ method called once each job just before starting event loop ------------
103     void
104     JetAnalyzer::beginJob(const edm::EventSetup&)
105     {
106     }
107    
108     // ------------ method called once each job just after ending the event loop ------------
109     void
110     JetAnalyzer::endJob() {
111     }
112    
113     //define this as a plug-in
114     DEFINE_FWK_MODULE(JetAnalyzer);