1 |
bbetchar |
1.1 |
#include "UserCode/ShallowTools/interface/ShallowEventDataProducer.h"
|
2 |
bbetchar |
1.2 |
#include "FWCore/Framework/interface/Event.h"
|
3 |
bbetchar |
1.1 |
|
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 |
|
|
}
|