ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ShallowTools/plugins/ShallowEventDataProducer.cc
Revision: 1.2
Committed: Tue Sep 29 10:16:31 2009 UTC (15 years, 7 months ago) by bbetchar
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
Error occurred while calculating annotation data.
Log Message:
updates for CMSSW_3_3_X

File Contents

# Content
1 #include "UserCode/ShallowTools/interface/ShallowEventDataProducer.h"
2 #include "FWCore/Framework/interface/Event.h"
3
4 ShallowEventDataProducer::ShallowEventDataProducer(const edm::ParameterSet& iConfig) {
5 produces <unsigned int> ( "run" );
6 produces <unsigned int> ( "event" );
7 }
8
9 void ShallowEventDataProducer::
10 produce(edm::Event& iEvent, const edm::EventSetup& iSetup) {
11 std::auto_ptr<unsigned int > run ( new unsigned int(iEvent.id().run() ) );
12 std::auto_ptr<unsigned int > event ( new unsigned int(iEvent.id().event() ) );
13
14 iEvent.put( run, "run" );
15 iEvent.put( event, "event" );
16 }