1 #ifndef __PFClusterTimeAssigner__
2 #define __PFClusterTimeAssigner__
31 produces<reco::PFClusterCollection>();
46 auto clusters_out = std::make_unique<reco::PFClusterCollection>();
54 auto const &
times = *timesH;
56 clusters_out->reserve(
clusters.size());
57 clusters_out->insert(clusters_out->end(),
61 auto&
out = *clusters_out;
62 for(
unsigned i = 0;
i <
out.size(); ++
i ) {
65 const float time =
times[clusterRef];
77 descriptions.
add(
"particleFlowClusterTimeAssignerDefault",desc);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
PFClusterTimeAssigner(const edm::ParameterSet &conf)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::ValueMap< float > > timesTok_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual void produce(edm::Event &e, const edm::EventSetup &es)
edm::EDGetTokenT< reco::PFClusterCollection > clustersTok_