1 #ifndef SimTracker_TrackAssociation_trackHitsToClusterRefs_h
2 #define SimTracker_TrackAssociation_trackHitsToClusterRefs_h
18 template <
typename iter>
20 std::vector<OmniClusterRef> returnValue;
21 for (iter iRecHit =
begin; iRecHit !=
end; ++iRecHit) {
26 const SiPixelRecHit *pRHit = dynamic_cast<const SiPixelRecHit *>(rhit);
28 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
29 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
33 const std::type_info &tid =
typeid(*rhit);
37 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
38 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
42 const SiStripRecHit2D *sRHit = dynamic_cast<const SiStripRecHit2D *>(rhit);
44 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
45 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
48 const SiStripRecHit1D *sRHit = dynamic_cast<const SiStripRecHit1D *>(rhit);
50 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
51 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
56 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!"
57 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
60 auto const &thit = static_cast<BaseTrackerRecHit const &>(*rhit);
61 if (thit.isProjected()) {
63 edm::LogError(
"TrackAssociator") <<
">>> getMatchedClusters: TrackingRecHit not associated to "
64 "any SiStripCluster! subdetid = "
69 edm::LogError(
"TrackAssociator") <<
">>> getMatchedClusters: TrackingRecHit not associated to any "
70 "cluster! subdetid = "