80 {
82
83
84 std::size_t previousSize = container.size();
85 std::vector<xAOD::HGTDCluster*>
toAdd;
87 for (std::size_t
i(0),
n(RDOs.
size()); i < n; ++i)
89 container.insert(container.end(),
toAdd.begin(),
toAdd.end());
90
91 for (std::size_t
i(0),
n(RDOs.
size()); i < n; ++i) {
92 const auto* rdo = RDOs[
i];
94 const InDetDD::HGTD_DetectorElement* element =
m_hgtd_det_mgr->getDetectorElement(rdo_id);
95
97
99
101 Eigen::Matrix<float, 3, 3> cov_matrix= Eigen::Matrix<float, 3, 3>::Zero();
102
104
105 float xWidth = 1.3;
106 float yWidth = 1.3;
107 cov_matrix(0,0) = xWidth * xWidth / 12;
108 cov_matrix(1,1) = yWidth * yWidth / 12;
109 float time_of_arrival_err = 0.035;
110 cov_matrix(2,2) = time_of_arrival_err * time_of_arrival_err;
111
112 std::vector<Identifier> rdo_list = {rdo_id};
113 std::vector<int> time_over_threshold = {static_cast<int>(rdo->getToT())};
114
116
117
122 cluster->
setToTlist(std::move(time_over_threshold));
123 }
124
125
126 return StatusCode::SUCCESS;
127 }
size_type size() const noexcept
Returns the number of elements in the collection.
const Identifier & identify() const
const IdentifierHash & identifierHash() const
value_type get_compact() const
Get the compact id.
SiCellId cellIdFromIdentifier(const Identifier &identifier) const override final
SiCellId from Identifier.
const HGTD_ModuleDesign & design() const override final
access to the local description:
virtual SiLocalPosition localPositionOfCell(const SiCellId &cellId) const
readout or diode id -> position.
double xPhi() const
position along phi direction:
double xEta() const
position along eta direction:
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
void setMeasurement(const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
Sets IdentifierHash, local position and local covariance of the measurement.
void setIdentifier(const DetectorIdentType measId)
Sets the full Identifier of the measurement.
HGTDCluster_v1 HGTDCluster
Define the version of the pixel cluster class.