SCEnergyCorrectorProducer::SCEnergyCorrectorProducer |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 33 of file SCEnergyCorrectorProducer.cc.
References writeFeatures_.
37 produces<reco::SuperClusterCollection>();
39 produces<edm::ValueMap<std::vector<float>>>(
"features");
SCEnergyCorrectorSemiParm energyCorrector_
const edm::EDGetTokenT< reco::SuperClusterCollection > inputSCToken_
ParameterSet const & getParameterSet(std::string const &) const
T getParameter(std::string const &) const
const bool writeFeatures_
Definition at line 47 of file SCEnergyCorrectorProducer.cc.
References energyCorrector_, edm::Event::get(), SCEnergyCorrectorSemiParm::getRegData(), inputSCToken_, SCEnergyCorrectorSemiParm::modifyObject(), eostools::move(), edm::Event::put(), SCEnergyCorrectorSemiParm::setEvent(), and writeFeatures_.
51 auto corrSCs = std::make_unique<reco::SuperClusterCollection>();
52 std::vector<std::vector<float>> scFeatures;
53 for (
const auto& inputSC : inputSCs) {
54 corrSCs->push_back(inputSC);
64 auto valMap = std::make_unique<edm::ValueMap<std::vector<float>>>();
66 filler.insert(scHandle, scFeatures.begin(), scFeatures.end());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
SCEnergyCorrectorSemiParm energyCorrector_
bool get(ProductID const &oid, Handle< PROD > &result) const
std::vector< float > getRegData(const reco::SuperCluster &sc) const
const edm::EDGetTokenT< reco::SuperClusterCollection > inputSCToken_
void setEvent(const edm::Event &e)
void modifyObject(reco::SuperCluster &sc) const
const bool writeFeatures_
const bool SCEnergyCorrectorProducer::writeFeatures_ |
|
private |