1 #ifndef __PFClusterTimeAssigner__ 2 #define __PFClusterTimeAssigner__ 35 produces<reco::PFClusterCollection>();
51 auto clusters_out = std::make_unique<reco::PFClusterCollection>();
60 auto const &
times = *timesH;
61 auto const & timeResos = *timeResosH;
63 clusters_out->reserve(
clusters.size());
64 clusters_out->insert(clusters_out->end(),
68 auto&
out = *clusters_out;
69 for(
unsigned i = 0;
i <
out.size(); ++
i ) {
73 const float timeReso = timeResos[clusterRef];
74 out[
i].setTime(time, timeReso);
86 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_
void produce(edm::Event &e, const edm::EventSetup &es) override
edm::EDGetTokenT< edm::ValueMap< float > > timeResosTok_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< reco::PFClusterCollection > clustersTok_