Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Acts/Clusterization/TimedClusterization.hpp"
27 cl.tots.push_back(
cell.TOT);
28 cl.times.push_back(
cell.TOA);
35 const std::string&
name,
49 return StatusCode::SUCCESS;
53 const RawDataCollection& RDOs,
54 ClusterContainer& container)
const
58 cells.reserve(RDOs.size());
61 cells.emplace_back(-1,
69 ATH_MSG_DEBUG(
"Clustering on " << RDOs.size() <<
" RDOs using time information");
71 Acts::Ccl::createClusters<CellCollection, ClusterCollection, 2>
76 std::size_t previousSizeContainer = container.size();
77 std::vector<xAOD::HGTDCluster*>
toAdd;
81 container.insert(container.end(),
toAdd.begin(),
toAdd.end());
88 return StatusCode::SUCCESS;
95 if (cluster.ids.empty())
return StatusCode::SUCCESS;
100 for (
size_t i = 0;
i < cluster.ids.size();
i++) {
108 tot_time += cluster.times[
i];
111 pos_acc /= cluster.ids.size();
112 tot_time /= cluster.ids.size();
115 Eigen::Matrix<float, 3, 1> loc_pos(pos_acc.
xPhi(), pos_acc.
xEta(), tot_time);
118 constexpr
float xWidth = 1.3;
119 constexpr
float yWidth = 1.3;
120 cov_matrix(0,0) = xWidth * xWidth / 12 / cluster.ids.size();
121 cov_matrix(1,1) = yWidth * yWidth / 12 / cluster.ids.size();
122 constexpr
float time_of_arrival_err = 0.035;
123 cov_matrix(2,2) = time_of_arrival_err * time_of_arrival_err / cluster.ids.size();
129 xaodcluster.
setIdentifier(cluster.ids.front().get_compact());
130 xaodcluster.
setRDOlist(std::move(cluster.ids));
131 xaodcluster.
setToTlist(std::move(cluster.tots));
133 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
SiCellId cellIdFromIdentifier(const Identifier &identifier) const override final
SiCellId from Identifier.
virtual SiLocalPosition localPositionOfCell(const SiCellId &cellId) const
readout or diode id -> position.
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
int eta_index(const Identifier &id) const
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
const HGTD_ModuleDesign & design() const override final
access to the local description:
double xPhi() const
position along phi direction:
int phi_index(const Identifier &id) const
void setIdentifier(const DetectorIdentType measId)
Sets the full Identifier of the measurement.
double xEta() const
position along eta direction:
::StatusCode StatusCode
StatusCode definition for legacy code.
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
InDetDD::HGTD_DetectorElement * getDetectorElement(const Identifier &id) const
access to individual elements : via Identifier
void setMeasurement(const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
Sets IdentifierHash, local position and local covariance of the measurement.
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]