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) {
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__;
44 edm::LogError(
"TrackAssociator") <<
">>> RecHit does not have an associated cluster!" 45 <<
" file: " << __FILE__ <<
" line: " << __LINE__;
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__;
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 = " ClusterRef cluster() const
bool isNonnull() const
Checks for non-null.
bool isFromDet(TrackingRecHit const &hit)
OmniClusterRef const & stereoClusterRef() const
std::vector< OmniClusterRef > hitsToClusterRefs(iter begin, iter end)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
ClusterRef cluster() const
OmniClusterRef const & monoClusterRef() const
const TrackingRecHit * getHitFromIter(trackingRecHit_iterator iter)
OmniClusterRef const & omniClusterRef() const
SiStripRecHit2D stereoHit() const
ClusterRef cluster() const
SiStripRecHit2D monoHit() const
DetId geographicalId() const