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;
59 _hitsets = findNode::getClass<TrkrHitSetContainer>(topNode,
"TRKR_HITSET");
62 std::cout <<
PHWHERE <<
"ERROR: Can't find node TRKR_HITSET" << std::endl;
66 std::set<TrkrDefs::cluskey> discard_set;
68 unsigned int count_discards = 0;
74 hitsetitr != hitsetrange.second;
79 for (clusiter = clusRange.first;
80 clusiter != clusRange.second; ++clusiter)
92 std::cout <<
" layer " << layer <<
" cluster : " << cluskey
97 bool discard_cluster =
false;
104 discard_cluster =
true;
115 discard_set.insert(cluskey);
117 std::cout <<
" discard cluster " << cluskey <<
" with ephi " << cluster->
getRPhiError() <<
" adc " << cluster->
getAdc()
123 for(
auto iter = discard_set.begin(); iter != discard_set.end(); ++iter)
133 std::cout <<
"Clusters discarded this event: " << count_discards << std::endl;
191 ROT[0][0] =
cos(clusphi);
192 ROT[0][1] = -sin(clusphi);
193 ROT[1][0] = sin(clusphi);
194 ROT[1][1] =
cos(clusphi);
197 ERR[1][1] = erphi*erphi;
200 TMatrixF ROT_T(3, 3);
201 ROT_T.Transpose(ROT);
203 TMatrixF COVAR_ERR(3, 3);
204 COVAR_ERR = ROT * ERR * ROT_T;
208 error[i][j] = COVAR_ERR[i][j];