24 for(
int i=0;
i < 16; ++
i)
28 for(
int i=0;
i < 16; ++
i)
32 for(
int i=0;
i < 16; ++
i)
44 layeriter != layerrange.second;
54 std::vector<std::pair<TrkrDefs::cluskey, Acts::Vector3>>
TpcClusterMover::processTrack(std::vector<std::pair<TrkrDefs::cluskey,Acts::Vector3>> global_in )
60 std::vector<std::pair<TrkrDefs::cluskey, Acts::Vector3>> global_moved;
62 std::vector<Acts::Vector3> tpc_global_vec;
63 std::vector<TrkrDefs::cluskey> tpc_cluskey_vec;
65 for(
unsigned int i=0;
i< global_in.size(); ++
i)
71 tpc_global_vec.push_back(global_in[
i].second);
72 tpc_cluskey_vec.push_back(global_in[
i].first);
77 global_moved.push_back(std::make_pair(cluskey, global_in[
i].second));
82 if(tpc_global_vec.size() < 3)
85 { std::cout <<
" -- skip this tpc track, not enough clusters: " << tpc_global_vec.size() << std::endl; }
96 for(
unsigned int i=0;
i< tpc_global_vec.size(); ++
i)
110 double cluster_radius = sqrt(global[0] * global[0] + global[1] * global[1]);
127 global_moved.push_back(std::make_pair(cluskey, global_new));
139 if(std::isnan(xplus))
144 std::cout <<
" circle/circle intersection calculation failed, skip this cluster" << std::endl;
145 std::cout <<
" target_radius " << target_radius <<
" fitted R " << R <<
" fitted X0 " << X0 <<
" fitted Y0 " << Y0 << std::endl;
152 if(fabs(xclus - xplus) < 5.0 && fabs(yclus - yplus) < 5.0)