10 #include "Utilities/func/MathUtil.h" 12 #include "TGeoManager.h" 32 const int nPro = prongs.size();
39 std::map< uint32_t , std::map< int, int > > proIdx ;
41 for(
int iPro = 0; iPro < nPro; ++iPro){
44 for(
unsigned int iCell = 0; iCell < prongs[iPro].NCell(); ++iCell ){
50 for(
int jPro = iPro+1; jPro < nPro; ++jPro){
53 for(
unsigned int jCell = 0 ; jCell < prongs[jPro].NCell(); ++jCell){
57 proIdx[ ihit->
Channel() ][ iPro ] = iCell;
58 proIdx[ ihit->
Channel() ][ jPro ] = jCell;
69 for(
auto &
cmap : proIdx){
71 int nsharedprongs =
cmap.second.size();
73 for(
auto & pmap :
cmap.second){
75 prongs[pmap.first].SetWeight(pmap.second, 1./nsharedprongs);
WeightSharedHitsAlg(const WeightSharedHitsParams ¶ms)
Collect Geo headers and supply basic geometry functions.
Fuzzy k-Means prong-finding algorithm.
cmap::CMap class source code
void GetWeights(std::vector< rb::WeightedProng > &prong)