14 : Suffix(iConfig.getParameter<
std::
string>(
"Suffix")),
17 std::vector<edm::InputTag> rec_hits_tags = iConfig.
getParameter<std::vector<edm::InputTag>>(
"InputTags");
18 for (
auto itag : rec_hits_tags) {
24 produces<std::vector<float>>(
Prefix +
"localx" +
Suffix);
25 produces<std::vector<float>>(
Prefix +
"localy" +
Suffix);
26 produces<std::vector<float>>(
Prefix +
"localxerr" +
Suffix);
27 produces<std::vector<float>>(
Prefix +
"localyerr" +
Suffix);
28 produces<std::vector<float>>(
Prefix +
"globalx" +
Suffix);
29 produces<std::vector<float>>(
Prefix +
"globaly" +
Suffix);
30 produces<std::vector<float>>(
Prefix +
"globalz" +
Suffix);
36 int size = clustermap.size();
37 auto strip = std::make_unique<std::vector<float>>(
size, -10000);
38 auto merr = std::make_unique<std::vector<float>>(
size, -10000);
39 auto localx = std::make_unique<std::vector<float>>(
size, -10000);
40 auto localy = std::make_unique<std::vector<float>>(
size, -10000);
41 auto localxerr = std::make_unique<std::vector<float>>(
size, -1);
42 auto localyerr = std::make_unique<std::vector<float>>(
size, -1);
43 auto globalx = std::make_unique<std::vector<float>>(
size, -10000);
44 auto globaly = std::make_unique<std::vector<float>>(
size, -10000);
45 auto globalz = std::make_unique<std::vector<float>>(
size, -10000);
53 for (
auto const& ds : *
recHits) {
54 for (
auto const&
hit : ds) {
55 shallow::CLUSTERMAP::iterator cluster =
56 clustermap.find(std::make_pair(
hit.geographicalId().rawId(),
hit.cluster()->firstStrip()));
57 if (cluster != clustermap.end()) {
59 dynamic_cast<const StripGeomDetUnit*>(theTrackerGeometry->idToDet(
hit.geographicalId()));
60 unsigned int i = cluster->second;
64 localx->at(
i) =
hit.localPosition().
x();
65 localy->at(
i) =
hit.localPosition().
y();
66 localxerr->at(
i) =
sqrt(
hit.localPositionError().xx());
67 localyerr->at(
i) =
sqrt(
hit.localPositionError().yy());
68 globalx->at(
i) = theStripDet->
toGlobal(
hit.localPosition()).
x();
69 globaly->at(
i) = theStripDet->
toGlobal(
hit.localPosition()).
y();
70 globalz->at(
i) = theStripDet->
toGlobal(
hit.localPosition()).
z();