ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ShallowTools/plugins/ShallowEventDataProducer.cc
Revision: 1.1
Committed: Sat Jun 6 14:23:09 2009 UTC (15 years, 11 months ago) by bbetchar
Content type: text/plain
Branch: MAIN
CVS Tags: V03-00-02, V03-00-01, V03-00-00
Log Message:
Move directories around

File Contents

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