#include <memory>
#include <string>
#include <vector>
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Common/interface/View.h"
#include "SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h"
: input_(config.getParameter<
edm::InputTag>(
"input")),
branch_(config.getParameter<
std::string>(
"branch")) {
consumes<edm::View<PileupSummaryInfo>>(input_);
info_ = new std::vector<ic::PileupInfo>();
}
void ICPileupInfoProducer::produce(edm::Event& event,
const edm::EventSetup& setup) {
edm::Handle<edm::View<PileupSummaryInfo> > info_handle;
event.getByLabel(input_, info_handle);
info_->clear();
info_->resize(info_handle->size());
for (unsigned i = 0; i < info_handle->size(); ++i) {
PileupSummaryInfo const& src = info_handle->at(i);
}
}
void ICPileupInfoProducer::beginJob() {
}
void ICPileupInfoProducer::endJob() {
}