13 std::vector<edm::ParameterSet>
cuts = iConfig.
getParameter<std::vector<edm::ParameterSet> >(
"cuts");
16 info.depth =
cut.getParameter<
double>(
"depth");
17 info.minE =
cut.getParameter<
double>(
"minEnergy");
18 info.maxE =
cut.getParameter<
double>(
"maxEnergy");
19 info.minTime =
cut.getParameter<
double>(
"minTime");
20 info.maxTime =
cut.getParameter<
double>(
"maxTime");
21 info.endcap =
cut.getParameter<
bool>(
"endcap");
25 produces<reco::PFClusterCollection>();
26 produces<reco::PFClusterCollection>(
"OOT");
32 auto out = std::make_unique<reco::PFClusterCollection>();
33 auto outOOT = std::make_unique<reco::PFClusterCollection>();
35 for (
const auto& cluster : *
clusters) {
36 const double energy = cluster.energy();
37 const double time = cluster.time();
38 const double depth = cluster.depth();
41 if (energy < info.minE || energy >
info.maxE)
43 if (depth < 0.9 * info.depth || depth > 1.1 *
info.depth)
51 out->push_back(cluster);
53 outOOT->push_back(cluster);