1 #ifndef RecoAlgos_ClusterStorer_h 2 #define RecoAlgos_ClusterStorer_h 49 template <
typename ClusterRefType>
54 template <
typename RecHitType>
62 bool operator<(const ClusterHitRecord<ClusterRefType> &
other)
const {
67 template <
typename RecHitType>
68 void rekey(
const ClusterRefType &newRef);
89 template <
typename HitType,
typename ClusterType>
A struct for clusters associated to hits.
ClusterHitRecord< SiStripRecHit2D::ClusterRef > StripClusterHitRecord
Assuming that the ClusterRef is the same for all SiStripRecHit*:
const ClusterRefType & clusterRef() const
this method is to be able to compare and see if two refs are the same
void addCluster(TrackingRecHitCollection &hits, size_t index)
add cluster of newHit to list (throws if hit is of unknown type)
uint32_t detid_
private => unusable
std::vector< Phase2OTClusterHitRecord > phase2OTClusterRecords_
ClusterHitRecord< SiPixelRecHit::ClusterRef > PixelClusterHitRecord
void processAllClusters(edmNew::DetSetVector< SiPixelCluster > &pixelDsvToFill, edm::RefProd< edmNew::DetSetVector< SiPixelCluster > > refPixelClusters, edmNew::DetSetVector< SiStripCluster > &stripDsvToFill, edm::RefProd< edmNew::DetSetVector< SiStripCluster > > refStripClusters, edmNew::DetSetVector< Phase2TrackerCluster1D > &phase2OTDsvToFill, edm::RefProd< edmNew::DetSetVector< Phase2TrackerCluster1D > > refPhase2OTClusters)
std::vector< PixelClusterHitRecord > pixelClusterRecords_
uint32_t detid() const
returns the detid
ClusterHitRecord< Phase2TrackerRecHit1D::ClusterRef > Phase2OTClusterHitRecord
ClusterHitRecord(const RecHitType &hit, TrackingRecHitCollection &hits, size_t idx)
void clear()
clear records
void processClusters(std::vector< ClusterHitRecord< typename HitType::ClusterRef > > &clusterRecords, edmNew::DetSetVector< ClusterType > &dsvToFill, edm::RefProd< edmNew::DetSetVector< ClusterType > > &refprod)
void rekey(const ClusterRefType &newRef)
TrackingRecHitCollection * hits_
std::vector< StripClusterHitRecord > stripClusterRecords_