Definition at line 32 of file ShallowRechitClustersProducer.cc.
35 int size = clustermap.size();
36 auto strip = std::make_unique<std::vector<float>>(
size, -10000);
37 auto merr = std::make_unique<std::vector<float>>(
size, -10000);
38 auto localx = std::make_unique<std::vector<float>>(
size, -10000);
39 auto localy = std::make_unique<std::vector<float>>(
size, -10000);
40 auto localxerr = std::make_unique<std::vector<float>>(
size, -1);
41 auto localyerr = std::make_unique<std::vector<float>>(
size, -1);
42 auto globalx = std::make_unique<std::vector<float>>(
size, -10000);
43 auto globaly = std::make_unique<std::vector<float>>(
size, -10000);
44 auto globalz = std::make_unique<std::vector<float>>(
size, -10000);
51 for (
auto const& ds : *
recHits) {
52 for (
auto const&
hit : ds) {
53 shallow::CLUSTERMAP::iterator cluster =
54 clustermap.find(std::make_pair(
hit.geographicalId().rawId(),
hit.cluster()->firstStrip()));
55 if (cluster != clustermap.end()) {
57 dynamic_cast<const StripGeomDetUnit*>(theTrackerGeometry->idToDet(
hit.geographicalId()));
58 unsigned int i = cluster->second;
62 localx->at(
i) =
hit.localPosition().
x();
63 localy->at(
i) =
hit.localPosition().
y();
64 localxerr->at(
i) =
sqrt(
hit.localPositionError().xx());
65 localyerr->at(
i) =
sqrt(
hit.localPositionError().yy());
66 globalx->at(
i) = theStripDet->
toGlobal(
hit.localPosition()).
x();
67 globaly->at(
i) = theStripDet->
toGlobal(
hit.localPosition()).
y();
68 globalz->at(
i) = theStripDet->
toGlobal(
hit.localPosition()).
z();
References clusters_token_, Exception, geomToken_, edm::EventSetup::getHandle(), mps_fire::i, iEvent, shallow::make_cluster_map(), Topology::measurementError(), eostools::move(), Prefix, rec_hits_tokens_, FastTrackerRecHitMaskProducer_cfi::recHits, findQualityFiles::size, StripGeomDetUnit::specificTopology(), mathSSE::sqrt(), digitizers_cfi::strip, StripTopology::strip(), Suffix, GeomDet::toGlobal(), x, hit::x, y, hit::y, and z.