17 #include <TMatrixFfwd.h>
19 #include <TMatrixTUtils.h>
53 _cluster_map = findNode::getClass<TrkrClusterContainer>(topNode,
"TRKR_CLUSTER");
56 std::cout <<
PHWHERE <<
" ERROR: Can't find node TRKR_CLUSTER" << std::endl;
60 std::set<TrkrDefs::cluskey> discard_set;
62 unsigned int count_discards = 0;
70 for (
auto clusiter = clusRange.first;
71 clusiter != clusRange.second; ++clusiter)
83 std::cout <<
" layer " << layer <<
" cluster : " << cluskey
88 bool discard_cluster =
false;
95 discard_cluster =
true;
106 discard_set.insert(cluskey);
108 std::cout <<
" discard cluster " << cluskey <<
" with ephi " << cluster->
getRPhiError() <<
" adc " << cluster->
getAdc()
114 for(
auto iter = discard_set.begin(); iter != discard_set.end(); ++iter)
124 std::cout <<
"Clusters discarded this event: " << count_discards << std::endl;
182 ROT[0][0] = cos(clusphi);
183 ROT[0][1] = -sin(clusphi);
184 ROT[1][0] = sin(clusphi);
185 ROT[1][1] = cos(clusphi);
188 ERR[1][1] = erphi*erphi;
191 TMatrixF ROT_T(3, 3);
192 ROT_T.Transpose(ROT);
194 TMatrixF COVAR_ERR(3, 3);
195 COVAR_ERR = ROT * ERR * ROT_T;
199 error[
i][
j] = COVAR_ERR[
i][
j];