1 #ifndef __PFClusterTimeAssigner__ 2 #define __PFClusterTimeAssigner__ 26 timesTok_ = consumes<edm::ValueMap<float> >(times);
31 produces<reco::PFClusterCollection>();
46 auto clusters_out = std::make_unique<reco::PFClusterCollection>();
55 auto const& times = *timesH;
56 auto const& timeResos = *timeResosH;
58 clusters_out->reserve(
clusters.size());
62 auto&
out = *clusters_out;
63 for (
unsigned i = 0;
i <
out.size(); ++
i) {
65 const float time = times[clusterRef];
66 const float timeReso = timeResos[clusterRef];
78 descriptions.
add(
"particleFlowClusterTimeAssignerDefault",
desc);
T getParameter(std::string const &) const
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_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< reco::PFClusterCollection > clustersTok_