51 LogDebug(
"VectorHitBuilderEDProducer") <<
"VectorHitBuilderEDProducer::produce() begin";
56 auto outputClustersAccepted = std::make_unique<edmNew::DetSetVector<Phase2TrackerCluster1D>>();
57 auto outputClustersRejected = std::make_unique<edmNew::DetSetVector<Phase2TrackerCluster1D>>();
69 run(clustersHandle, *outputClustersAccepted, *outputClustersRejected, *outputVHAccepted, *outputVHRejected);
71 unsigned int numberOfVectorHits = 0;
72 for (
const auto& dSViter : *outputVHAccepted) {
73 for (
const auto& vh : dSViter) {
75 LogDebug(
"VectorHitBuilderEDProducer") <<
"\t vectorhit in output " << vh;
78 LogDebug(
"VectorHitBuilderEDProducer") <<
"found\n" << numberOfVectorHits <<
" .\n";
81 event.put(
std::move(outputClustersAccepted),
"accepted");
82 event.put(
std::move(outputClustersRejected),
"rejected");
83 event.put(
std::move(outputVHAccepted),
"accepted");
84 event.put(
std::move(outputVHRejected),
"rejected");
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
edm::ESGetToken< VectorHitBuilderAlgorithm, TkPhase2OTCPERecord > stubsBuilderToken_
const VectorHitBuilderAlgorithm * stubsBuilder_
void run(edm::Handle< edmNew::DetSetVector< Phase2TrackerCluster1D >> clusters, edmNew::DetSetVector< Phase2TrackerCluster1D > &clustersAcc, edmNew::DetSetVector< Phase2TrackerCluster1D > &clustersRej, VectorHitCollection &outputAcc, VectorHitCollection &outputRej)
void printClusters(const edmNew::DetSetVector< Phase2TrackerCluster1D > &clusters) const
edmNew::DetSetVector< VectorHit > VectorHitCollection
edm::EDGetTokenT< edmNew::DetSetVector< Phase2TrackerCluster1D > > clusterProducer_