1 #ifndef SimTracker_TrackAssociation_trackHitsToClusterRefs_h
2 #define SimTracker_TrackAssociation_trackHitsToClusterRefs_h
19 template <
typename iter>
21 std::vector<OmniClusterRef> returnValue;
22 for (iter iRecHit = begin; iRecHit !=
end; ++iRecHit) {
27 const SiPixelRecHit *pRHit = dynamic_cast<const SiPixelRecHit *>(rhit);
29 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
30 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
34 const std::type_info &tid =
typeid(*rhit);
38 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
39 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
43 const SiStripRecHit2D *sRHit = dynamic_cast<const SiStripRecHit2D *>(rhit);
45 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
46 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
49 const SiStripRecHit1D *sRHit = dynamic_cast<const SiStripRecHit1D *>(rhit);
51 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
52 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
57 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
58 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
61 const VectorHit *vectorHit = dynamic_cast<const VectorHit *>(rhit);
63 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
64 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
68 auto const &thit = static_cast<BaseTrackerRecHit const &>(*rhit);
69 if (thit.isProjected()) {
71 edm::LogError(
"TrackAssociator") <<
">>> getMatchedClusters: TrackingRecHit not associated to "
72 "any SiStripCluster! subdetid = "
77 edm::LogError(
"TrackAssociator") <<
">>> getMatchedClusters: TrackingRecHit not associated to any "
78 "cluster! subdetid = "