1 #ifndef SimTracker_TrackAssociation_trackHitsToClusterRefs_h
2 #define SimTracker_TrackAssociation_trackHitsToClusterRefs_h
15 namespace track_associator {
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
bool isNonnull() const
Checks for non-null.
bool isFromDet(TrackingRecHit const &hit)
static constexpr auto TID
OmniClusterRef const & stereoClusterRef() const
std::vector< OmniClusterRef > hitsToClusterRefs(iter begin, iter end)
Log< level::Error, false > LogError
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
static constexpr auto TOB
const TrackingRecHit * getHitFromIter(trackingRecHit_iterator iter)
OmniClusterRef const & omniClusterRef() const
SiStripRecHit2D stereoHit() const
ClusterRef cluster() const
static constexpr auto TIB
SiStripRecHit2D monoHit() const
OmniClusterRef const & firstClusterRef() const override
DetId geographicalId() const
ClusterRef cluster() const
static constexpr auto TEC