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