1 #ifndef RecoAlgos_ClusterStorer_h
2 #define RecoAlgos_ClusterStorer_h
46 template<
typename ClusterRefType>
51 template<
typename RecHitType>
59 bool operator<(const ClusterHitRecord<ClusterRefType> &other)
const
65 template <
typename RecHitType>
66 void rekey(
const ClusterRefType &newRef)
const;
86 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*:
void rekey(const ClusterRefType &newRef) const
void addCluster(TrackingRecHitCollection &hits, size_t index)
add cluster of newHit to list (throws if hit is of unknown type)
const ClusterRefType & clusterRef() const
this method is to be able to compare and see if two refs are the same
ClusterHitRecord< Phase2TrackerRecHit1D::CluRef > Phase2OTClusterHitRecord
uint32_t detid_
private => unusable
std::vector< Phase2OTClusterHitRecord > phase2OTClusterRecords_
ClusterHitRecord< SiPixelRecHit::ClusterRef > PixelClusterHitRecord
std::vector< PixelClusterHitRecord > pixelClusterRecords_
ClusterHitRecord(const RecHitType &hit, TrackingRecHitCollection &hits, size_t idx)
uint32_t detid() const
returns the detid
void clear()
clear records
void processClusters(std::vector< ClusterHitRecord< typename HitType::ClusterRef > > &clusterRecords, edmNew::DetSetVector< ClusterType > &dsvToFill, edm::RefProd< edmNew::DetSetVector< ClusterType > > &refprod)
TrackingRecHitCollection * hits_
void processAllClusters(edmNew::DetSetVector< SiPixelCluster > &pixelDsvToFill, edm::RefProd< edmNew::DetSetVector< SiPixelCluster > > refPixelClusters, edmNew::DetSetVector< SiStripCluster > &stripDsvToFill, edm::RefProd< edmNew::DetSetVector< SiStripCluster > > refStripClusters)
std::vector< StripClusterHitRecord > stripClusterRecords_