1 #ifndef RECOHGCAL_TICL_TRACKSTERSPCA_H 2 #define RECOHGCAL_TICL_TRACKSTERSPCA_H 23 const edm::ValueMap<std::pair<float, float>> &layerClustersTime,
27 bool energyWeight =
true,
33 const edm::ValueMap<std::pair<float, float>> &layerClustersTime,
37 const edm::ValueMap<std::pair<float, float>> &layerClustersTime,
41 std::vector<std::pair<DetId, float>> thisclusterHits = LC.
hitsAndFractions();
52 std::vector<std::vector<unsigned>>
result;
55 for (
unsigned i = 0;
i <
N; ++
i) {
std::vector< std::vector< unsigned > > sortByLayer(const Trackster &ts, const std::vector< reco::CaloCluster > &layerClusters, const hgcal::RecHitTools &rhtools)
const std::vector< std::pair< DetId, float > > & hitsAndFractions() const
unsigned getLayerFromLC(const reco::CaloCluster &LC, const hgcal::RecHitTools &rhtools)
void assignPCAtoTracksters(std::vector< Trackster > &tracksters, const std::vector< reco::CaloCluster > &layerClusters, const edm::ValueMap< std::pair< float, float >> &layerClustersTime, double z_limit_em, hgcal::RecHitTools const &rhTools, bool computeLocalTime=false, bool energyWeight=true, bool clean=false, int minLayer=10, int maxLayer=10)
static void clean(char *s)
std::pair< float, float > computeLocalTracksterTime(const Trackster &trackster, const std::vector< reco::CaloCluster > &layerClusters, const edm::ValueMap< std::pair< float, float >> &layerClustersTime, const Eigen::Vector3f &barycenter, size_t N)
std::pair< float, float > computeTracksterTime(const Trackster &trackster, const edm::ValueMap< std::pair< float, float >> &layerClustersTime, size_t N)
std::vector< unsigned int > & vertices()