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 |
}
|