1 #ifndef SimTracker_TrackAssociation_trackHitsToClusterRefs_h
2 #define SimTracker_TrackAssociation_trackHitsToClusterRefs_h
20 template <
typename iter>
22 std::vector<OmniClusterRef> returnValue;
23 for (iter iRecHit = begin; iRecHit !=
end; ++iRecHit) {
28 const SiPixelRecHit *pRHit = dynamic_cast<const SiPixelRecHit *>(rhit);
30 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
31 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
35 const std::type_info &tid =
typeid(*rhit);
39 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
40 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
44 const SiStripRecHit2D *sRHit = dynamic_cast<const SiStripRecHit2D *>(rhit);
46 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
47 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
50 const SiStripRecHit1D *sRHit = dynamic_cast<const SiStripRecHit1D *>(rhit);
52 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
53 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
58 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
59 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
62 const VectorHit *vectorHit = dynamic_cast<const VectorHit *>(rhit);
64 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
65 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
69 auto const &thit = static_cast<BaseTrackerRecHit const &>(*rhit);
70 if (thit.isProjected()) {
72 edm::LogError(
"TrackAssociator") <<
">>> getMatchedClusters: TrackingRecHit not associated to "
73 "any SiStripCluster! subdetid = "
78 edm::LogError(
"TrackAssociator") <<
">>> getMatchedClusters: TrackingRecHit not associated to any "
79 "cluster! subdetid = "