11 const std::string& name,
12 const IInterface* parent)
13 : base_class(
type, name, parent)
21 return StatusCode::SUCCESS;
25 const RawDataCollection& RDOs,
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)
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());
49 Eigen::Matrix<float, 3, 3> cov_matrix= Eigen::Matrix<float, 3, 3>::Zero();
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;
#define ATH_CHECK
Evaluate an expression and check for errors.
This is a "hash" representation of an Identifier.
value_type get_compact() const
Get the compact id.
Class to hold geometrical description of an HGTD detector element.
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.
Identifier for the strip or pixel cell.
Class to represent a position in the natural frame of a silicon sensor, for Pixel and SCT For Pixel: ...
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.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
HGTDCluster_v1 HGTDCluster
Define the version of the pixel cluster class.