16 auto ttClusterDSVForOutput = std::make_unique<edmNew::DetSetVector<TTCluster<Ref_Phase2TrackerDigi_>>>();
17 std::map<DetId, std::vector<Ref_Phase2TrackerDigi_>>
rawHits;
30 for (
auto gd = theTrackerGeom->
dets().begin(); gd != theTrackerGeom->
dets().end(); gd++) {
31 DetId detid = (*gd)->geographicalId();
36 DetId lowerDetid = detid;
41 std::vector<std::vector<Ref_Phase2TrackerDigi_>> lowerHits, upperHits;
44 typename std::map<DetId, std::vector<Ref_Phase2TrackerDigi_>>::const_iterator lowerHitFind =
46 typename std::map<DetId, std::vector<Ref_Phase2TrackerDigi_>>::const_iterator upperHitFind =
53 if (lowerHitFind !=
rawHits.end())
54 theClusterFindingAlgoHandle->Cluster(lowerHits, lowerHitFind->second, isPSP);
55 if (upperHitFind !=
rawHits.end())
56 theClusterFindingAlgoHandle->Cluster(upperHits, upperHitFind->second,
false);
63 for (
unsigned int i = 0;
i < lowerHits.size();
i++) {
67 if (lowerOutputFiller.
empty())
68 lowerOutputFiller.abort();
73 for (
unsigned int i = 0;
i < upperHits.size();
i++) {
77 if (upperOutputFiller.
empty())
78 upperOutputFiller.abort();
92 std::vector<edm::EDGetTokenT<edm::DetSetVector<Phase2TrackerDigi>>>::iterator it;
93 for (it = rawHitTokens.begin(); it != rawHitTokens.end(); ++it) {
96 iEvent.getByToken(*it, HitHandle);
101 for (detsIter = HitHandle->begin(); detsIter != HitHandle->end(); detsIter++) {
102 DetId id = detsIter->id;
103 for (hitsIter = detsIter->data.
begin(); hitsIter != detsIter->data.
end(); hitsIter++) {