#include <HgtdClusteringTool.h>
Definition at line 16 of file HgtdClusteringTool.h.
◆ HgtdClusteringTool()
ActsTrk::HgtdClusteringTool::HgtdClusteringTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ clusterize()
StatusCode ActsTrk::HgtdClusteringTool::clusterize |
( |
const EventContext & |
ctx, |
|
|
const RawDataCollection & |
RDOs, |
|
|
ClusterContainer & |
container |
|
) |
| const |
|
overridevirtual |
Definition at line 24 of file HgtdClusteringTool.cxx.
31 std::size_t previousSize = container.size();
32 std::vector<xAOD::HGTDCluster*>
toAdd;
33 toAdd.reserve(RDOs.size());
34 for (std::size_t
i(0),
n(RDOs.size());
i <
n; ++
i)
36 container.insert(container.end(),
toAdd.begin(),
toAdd.end());
38 for (std::size_t
i(0),
n(RDOs.size());
i <
n; ++
i) {
39 const auto* rdo = RDOs[
i];
48 Eigen::Matrix<float, 3, 1> loc_pos(si_pos.
xPhi(), si_pos.
xEta(),rdo->getTOA());
53 cov_matrix(0,0) = xWidth * xWidth / 12;
54 cov_matrix(1,1) = yWidth * yWidth / 12;
55 float time_of_arrival_err = 0.035;
56 cov_matrix(2,2) = time_of_arrival_err * time_of_arrival_err;
58 std::vector<Identifier> rdo_list = {rdo_id};
59 std::vector<int> time_over_threshold = {
static_cast<int>(rdo->getTOT())};
68 cluster->
setToTlist(std::move(time_over_threshold));
72 return StatusCode::SUCCESS;
◆ initialize()
StatusCode ActsTrk::HgtdClusteringTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_hgtd_det_mgr
The documentation for this class was generated from the following files:
void setMeasurement(const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
Sets IdentifierHash, local position and local covariance of the measurement.