Go to the documentation of this file.
5 template <
class TrackingGeoParams>
7 const SidesArray<std::vector<TrackingGeoParams>> &geoParamsColl) {
10 TrkHits3D =
new TEveStraightLineSet(
"Clusters");
16 TEvePointSet *TrkHits =
nullptr;
19 auto &sideColl = clColl.
at(side);
21 for (
size_t iLayer = 0; iLayer < sideColl.size(); iLayer++) {
22 auto geoParams = geoParamsColl.at(side).at(iLayer);
35 for (
auto &cluster : sideColl.at(iLayer)) {
36 auto longitudinalRange =
LineRange(cluster, geoParams);
37 auto clusterPos = cluster.COGPosition(geoParams);
40 auto lineStart = clusterPos, lineEnd = clusterPos;
41 lineStart[
RefFrame::ToCoo(geoParams.SegmentationDirections().second)] = longitudinalRange.first;
42 lineEnd[
RefFrame::ToCoo(geoParams.SegmentationDirections().second)] = longitudinalRange.second;
64 return {elementPos - 0.5 * elementSize, elementPos + 0.5 * elementSize};
73 float elementSize = geoParams.
MatSize()[axis];
77 return {elementPos - 0.5 * elementSize, elementPos + 0.5 * elementSize};
Point MatPosition(unsigned int matID) const
Get position of a given mat.
Definition: FitGeoParams.h:174
size_t SeedHitIndex() const
Gets the index of the seed hit within the hits vector.
Definition: Cluster.h:77
constexpr std::array< Side, NSides > Sides
Array of all the sides.
Definition: RefFrame.h:121
const AxesArray< int > & NWafersPerBondedLadder() const
Get the number of wafers that make up a ladder.
Definition: ScdGeoParams.h:136
Tracker cluster object for transient data model.
Definition: Cluster.h:30
TEvePointSet * TrkHitsXY
Definition: HWTrackingDetectorEventDisplay.h:34
virtual std::pair< RefFrame::Direction, RefFrame::Direction > SegmentationDirections() const
Return the segmentation directions of the tracking elements.
Definition: TrackingDetectorGeoParams.h:114
CssGeoParams.h CssGeoParams class declaration.
Definition: CaloPDCalibrationAlgo.h:22
Point LadderPosition(unsigned int ladderID) const
Get position of a given ladder.
Definition: ScdGeoParams.cpp:186
constexpr Coo ToCoo(Axis axis)
Associates a coordinate to an axis.
Definition: RefFrame.h:180
TEvePointSet * TrkHitsXZ
Definition: HWTrackingDetectorEventDisplay.h:32
BondingType LadderBonding() const
Definition: ScdGeoParams.h:344
Data structure for single silicon layer geometry parameters.
Definition: FitGeoParams.h:66
const std::vector< Hit > & Hits() const
Gets the hits forming the cluster.
Definition: Cluster.h:56
unsigned int LadderIDFromStripID(unsigned int stripID) const
Retrieves the volume ID of the ladder containing the strip with the given volumeID.
Definition: ScdGeoParams.cpp:191
Axis
Aliases for the axes.
Definition: RefFrame.h:34
constexpr Axis ToAxis(Coo coo)
Associates an axis to a coordinate .
Definition: RefFrame.h:189
TEvePointSet * TrkHitsYZ
Definition: HWTrackingDetectorEventDisplay.h:33
unsigned int MatIDFromChannelID(unsigned int channelID) const
Retrieves the volume ID of the mat containing the sipm with the given channelID.
Definition: FitGeoParams.cpp:34
ContainedClass & at(const RefFrame::Side &side)
Accesses an element with validity check on the element index.
Definition: SidesArray.h:107
TEveStraightLineSet * TrkHits3D
Definition: HWTrackingDetectorEventDisplay.h:36
void ImportClusters(const ClustersColl &clColl, const SidesArray< std::vector< TrackingGeoParams >> &geoParamsColl)
Definition: HWTrackingDetectorEventDisplay.hpp:6
const AxesArray< float > & MatSize() const
Get the dimensions of the single mat.
Definition: FitGeoParams.h:135
std::pair< float, float > LineRange([[maybe_unused]] const Cluster &cl, [[maybe_unused]] const TrackingGeoParams &geoParams)=delete
Data structure for single silicon layer geometry parameters.
Definition: ScdGeoParams.h:35
An array that accepts side as subscripts.
Definition: SidesArray.h:72
const AxesArray< float > & WaferSize() const
Get the dimensions of the single wafer.
Definition: ScdGeoParams.h:179