ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cvega/RPCPlusHOLayer/src/RPCPlusHOLayer.cc
Revision: 1.1
Committed: Wed May 1 22:35:17 2013 UTC (12 years ago) by cvegaaco
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
0-version of RPC+HO Layer emulator

File Contents

# User Rev Content
1 cvegaaco 1.1 // -*- C++ -*-
2     //
3     // Package: RPCPlusHOLayer
4     // Class: RPCPlusHOLayer
5     //
6     /**\class RPCPlusHOLayer RPCPlusHOLayer.cc UserCode/RPCPlusHOLayer/src/RPCPlusHOLayer.cc
7    
8     Description: [one line class summary]
9    
10     Implementation:
11     [Notes on implementation]
12     */
13     //
14     // Original Author: cristian vega
15     // Created: Wed May 1 16:38:10 CDT 2013
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/EDProducer.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     #include "../interface/HORPCCandidate.h"
34    
35     //
36     // class declaration
37     //
38    
39     class RPCPlusHOLayer : public edm::EDProducer {
40    
41     public:
42     explicit RPCPlusHOLayer(const edm::ParameterSet&);
43     ~RPCPlusHOLayer();
44    
45     static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
46    
47     typedef std::vector<HORPCCandidate> HORPCCandidateCollection;
48    
49     private:
50    
51     virtual void beginJob() ;
52     virtual void produce(edm::Event&, const edm::EventSetup&);
53     virtual void endJob() ;
54    
55     virtual void beginRun(edm::Run&, edm::EventSetup const&);
56     virtual void endRun(edm::Run&, edm::EventSetup const&);
57     virtual void beginLuminosityBlock(edm::LuminosityBlock&, edm::EventSetup const&);
58     virtual void endLuminosityBlock(edm::LuminosityBlock&, edm::EventSetup const&);
59    
60     // ----------member data ---------------------------
61    
62     };
63    
64     //
65     // constructors and destructor
66     //
67    
68     RPCPlusHOLayer::RPCPlusHOLayer(const edm::ParameterSet& iConfig)
69     {
70    
71     produces<HORPCCandidateCollection>();
72    
73     }
74    
75    
76     RPCPlusHOLayer::~RPCPlusHOLayer()
77     {
78    
79    
80     }
81    
82     // ------------ method called to produce the data ------------
83     void
84     RPCPlusHOLayer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
85     {
86    
87    
88     std::auto_ptr<HORPCCandidateCollection> pOut(new HORPCCandidateCollection);
89    
90     ///DO emulation
91    
92    
93    
94     //uncorrected Jet and Tau collections
95     //for(list<HORPCCandidate>::iterator itr = candidateList.begin(); itr != candidateList.end(); ++itr ) {
96     //
97     // pOut ->push_back(*itr);
98     //
99     // }
100    
101    
102     iEvent.put(pOut);
103    
104    
105     }
106    
107     // ------------ method called once each job just before starting event loop ------------
108     void
109     RPCPlusHOLayer::beginJob()
110     {
111     }
112    
113     // ------------ method called once each job just after ending the event loop ------------
114     void
115     RPCPlusHOLayer::endJob() {
116     }
117    
118     // ------------ method called when starting to processes a run ------------
119     void
120     RPCPlusHOLayer::beginRun(edm::Run&, edm::EventSetup const&)
121     {
122     }
123    
124     // ------------ method called when ending the processing of a run ------------
125     void
126     RPCPlusHOLayer::endRun(edm::Run&, edm::EventSetup const&)
127     {
128     }
129    
130     // ------------ method called when starting to processes a luminosity block ------------
131     void
132     RPCPlusHOLayer::beginLuminosityBlock(edm::LuminosityBlock&, edm::EventSetup const&)
133     {
134     }
135    
136     // ------------ method called when ending the processing of a luminosity block ------------
137     void
138     RPCPlusHOLayer::endLuminosityBlock(edm::LuminosityBlock&, edm::EventSetup const&)
139     {
140     }
141    
142     // ------------ method fills 'descriptions' with the allowed parameters for the module ------------
143     void
144     RPCPlusHOLayer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
145     //The following says we do not know what parameters are allowed so do no validation
146     // Please change this to state exactly what you do use, even if it is no parameters
147     edm::ParameterSetDescription desc;
148     desc.setUnknown();
149     descriptions.addDefault(desc);
150     }
151    
152     //define this as a plug-in
153     DEFINE_FWK_MODULE(RPCPlusHOLayer);