16 auto ttClusterDSVForOutput = std::make_unique<edmNew::DetSetVector<TTCluster<Ref_Phase2TrackerDigi_>>>();
17 std::map<DetId, std::vector<Ref_Phase2TrackerDigi_>>
rawHits;
28 for (
auto gd = theTrackerGeom->
dets().begin(); gd != theTrackerGeom->
dets().end(); gd++) {
29 DetId detid = (*gd)->geographicalId();
34 DetId lowerDetid = detid;
39 std::vector<std::vector<Ref_Phase2TrackerDigi_>> lowerHits, upperHits;
42 typename std::map<DetId, std::vector<Ref_Phase2TrackerDigi_>>::const_iterator lowerHitFind =
44 typename std::map<DetId, std::vector<Ref_Phase2TrackerDigi_>>::const_iterator upperHitFind =
51 if (lowerHitFind !=
rawHits.end())
52 theClusterFindingAlgoHandle->Cluster(lowerHits, lowerHitFind->second, isPSP);
53 if (upperHitFind !=
rawHits.end())
54 theClusterFindingAlgoHandle->Cluster(upperHits, upperHitFind->second,
false);
61 for (
unsigned int i = 0;
i < lowerHits.size();
i++) {
65 if (lowerOutputFiller.
empty())
66 lowerOutputFiller.abort();
71 for (
unsigned int i = 0;
i < upperHits.size();
i++) {
75 if (upperOutputFiller.
empty())
76 upperOutputFiller.abort();
90 std::vector<edm::EDGetTokenT<edm::DetSetVector<Phase2TrackerDigi>>>::iterator it;
91 for (it = rawHitTokens.begin(); it != rawHitTokens.end(); ++it) {
94 iEvent.getByToken(*it, HitHandle);
99 for (detsIter = HitHandle->begin(); detsIter != HitHandle->end(); detsIter++) {
100 DetId id = detsIter->id;
101 for (hitsIter = detsIter->data.
begin(); hitsIter != detsIter->data.
end(); hitsIter++) {