27 const std::vector<TotemRPDigi> &digi,
28 std::vector<TotemRPCluster> &
clusters) {
38 int cluster_beg = -16;
44 cur_strip =
i->stripNumber();
45 bool non_continuity = (cur_strip != prev_strip + 1);
48 cluster_beg = cur_strip;
50 }
else if (non_continuity) {
51 cluster_end = prev_strip;
52 clusters.push_back(
TotemRPCluster((uint16_t)cluster_beg, (uint16_t)cluster_end));
54 cluster_beg = cur_strip;
57 prev_strip = cur_strip;
61 cluster_end = prev_strip;
62 clusters.push_back(
TotemRPCluster((uint16_t)cluster_beg, (uint16_t)cluster_end));
65 return clusters.size();
T getParameter(std::string const &) const
TotemRPClusterProducerAlgorithm(const edm::ParameterSet ¶m)
Cluster of TOTEM RP strip hits.
~TotemRPClusterProducerAlgorithm()
const edm::ParameterSet & param_
TotemRPDigiSet strip_digi_set_
input digi set, strip by strip
int buildClusters(unsigned int detId, const std::vector< TotemRPDigi > &digi, std::vector< TotemRPCluster > &clusters)