ATLAS Offline Software
ClusterConversionUtilities.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
9 
11 
15 
16 namespace TrackingUtilities {
17 
19  const InDetDD::HGTD_DetectorElement& element,
20  xAOD::HGTDCluster& xaodCluster)
21  {
22  IdentifierHash idHash = element.identifyHash();
23 
24  auto localPos = indetCluster.localPosition();
25  auto localCov = indetCluster.localCovariance();
26 
27  const float time = indetCluster.time();
28  const float timeResolution = indetCluster.timeResolution();
29 
30  const auto& RDOs = indetCluster.rdoList();
31  const auto& ToTs = indetCluster.totList();
32 
33  // Time to fill the xaod cluster
34  Eigen::Matrix<float,3,1> localPosition = Eigen::Matrix<float,3,1>::Zero();
35  localPosition(0, 0) = localPos.x();
36  localPosition(1, 0) = localPos.y();
37  localPosition(2, 0) = time;
38 
39  Eigen::Matrix<float,3,3> localCovariance = Eigen::Matrix<float,3,3>::Zero();
40  localCovariance(0, 0) = localCov(0, 0);
41  localCovariance(1, 1) = localCov(1, 1);
42  localCovariance(2, 2) = timeResolution * timeResolution;
43 
44  xaodCluster.setMeasurement<3>(idHash, localPosition, localCovariance);
45  xaodCluster.setIdentifier( indetCluster.identify().get_compact() );
46  xaodCluster.setRDOlist(RDOs);
47  xaodCluster.setToTlist(ToTs);
48 
49  return StatusCode::SUCCESS;
50  }
51 
53  const InDetDD::SiDetectorElement& element,
54  xAOD::PixelCluster& xaodCluster)
55  {
56  IdentifierHash idHash = element.identifyHash();
57 
58  auto localPos = indetCluster.localPosition();
59  auto localCov = indetCluster.localCovariance();
60 
61  Eigen::Matrix<float,2,1> localPosition(localPos.x(), localPos.y());
62 
63  Eigen::Matrix<float,2,2> localCovariance;
64  localCovariance.setZero();
65  localCovariance(0, 0) = localCov(0, 0);
66  localCovariance(1, 1) = localCov(1, 1);
67 
68  auto globalPos = indetCluster.globalPosition();
69  Eigen::Matrix<float, 3, 1> globalPosition(globalPos.x(), globalPos.y(), globalPos.z());
70 
71  const auto& RDOs = indetCluster.rdoList();
72  const auto& ToTs = indetCluster.totList();
73  const auto& charges = indetCluster.chargeList();
74  const auto& width = indetCluster.width();
75  auto omegaX = indetCluster.omegax();
76  auto omegaY = indetCluster.omegay();
77  auto isSplit = indetCluster.isSplit();
78  auto splitProbability1 = indetCluster.splitProbability1();
79  auto splitProbability2 = indetCluster.splitProbability2();
80 
81  xaodCluster.setMeasurement<2>(idHash, localPosition, localCovariance);
82  xaodCluster.setIdentifier( indetCluster.identify().get_compact() );
83  xaodCluster.setRDOlist(RDOs);
84  xaodCluster.globalPosition() = globalPosition;
85  xaodCluster.setToTlist(ToTs);
87  xaodCluster.setChargelist(charges);
89  xaodCluster.setLVL1A(indetCluster.LVL1A());
90  xaodCluster.setChannelsInPhiEta(width.colRow()[0], width.colRow()[1]);
91  xaodCluster.setWidthInEta(static_cast<float>(width.widthPhiRZ()[1]));
92  xaodCluster.setOmegas(omegaX, omegaY);
93  xaodCluster.setIsSplit(isSplit);
94  xaodCluster.setSplitProbabilities(splitProbability1, splitProbability2);
95 
96  return StatusCode::SUCCESS;
97  }
98 
99 
101  const InDetDD::SiDetectorElement& element,
102  xAOD::StripCluster& xaodCluster)
103  {
104  static const double one_over_twelve = 1. / 12.;
105  IdentifierHash idHash = element.identifyHash();
106 
107  auto localPos = indetCluster.localPosition();
108 
109  Eigen::Matrix<float,1,1> localPosition;
110  Eigen::Matrix<float,1,1> localCovariance;
111  localCovariance.setZero();
112 
113  if (element.isBarrel()) {
114  localPosition(0, 0) = localPos.x();
115  localCovariance(0, 0) = element.phiPitch() * element.phiPitch() * one_over_twelve;
116  } else {
117  InDetDD::SiCellId cellId = element.cellIdOfPosition(localPos);
118  const InDetDD::StripStereoAnnulusDesign *design = dynamic_cast<const InDetDD::StripStereoAnnulusDesign *>(&element.design());
119  if ( design == nullptr ) {
120  return StatusCode::FAILURE;
121  }
122  InDetDD::SiLocalPosition localInPolar = design->localPositionOfCellPC(cellId);
123  localPosition(0, 0) = localInPolar.xPhi();
124  localCovariance(0, 0) = design->phiPitchPhi() * design->phiPitchPhi() * one_over_twelve;
125  }
126 
127  auto globalPos = indetCluster.globalPosition();
128  Eigen::Matrix<float, 3, 1> globalPosition(globalPos.x(), globalPos.y(), globalPos.z());
129 
130  const auto& RDOs = indetCluster.rdoList();
131  const auto& width = indetCluster.width();
132 
133  xaodCluster.setMeasurement<1>(idHash, localPosition, localCovariance);
134  xaodCluster.setIdentifier( indetCluster.identify().get_compact() );
135  xaodCluster.setRDOlist(RDOs);
136  xaodCluster.globalPosition() = globalPosition;
137  xaodCluster.setChannelsInPhi(width.colRow()[0]);
138 
139  return StatusCode::SUCCESS;
140  }
141 
143  const InDetDD::SiDetectorElement& element,
144  const PixelID& pixelID,
145  InDet::PixelCluster*& indetCluster)
146  {
147  const InDetDD::PixelModuleDesign* design(dynamic_cast<const InDetDD::PixelModuleDesign*>(&element.design()));
148  if (design == nullptr) {
149  return StatusCode::FAILURE;
150  }
151 
152  const auto& locPos = xaodCluster.localPosition<2>();
153  Amg::Vector2D localPosition(locPos(0,0), locPos(1,0));
154 
155  InDetDD::SiLocalPosition centroid(localPosition);
156  const Identifier id = element.identifierOfPosition(centroid);
157 
158  const auto& globalPos = xaodCluster.globalPosition();
159  Amg::Vector3D globalPosition(globalPos(0, 0), globalPos(1, 0), globalPos(2, 0));
160 
161  auto errorMatrix = Amg::MatrixX(2,2);
162  errorMatrix.setIdentity();
163  errorMatrix.fillSymmetric(0, 0, xaodCluster.localCovariance<2>()(0, 0));
164  errorMatrix.fillSymmetric(1, 1, xaodCluster.localCovariance<2>()(1, 1));
165 
166  int colmax = std::numeric_limits<int>::min();
167  int rowmax = std::numeric_limits<int>::min();
168  int colmin = std::numeric_limits<int>::max();
169  int rowmin = std::numeric_limits<int>::max();
170 
171  const std::vector<Identifier>& rod_list_cluster = xaodCluster.rdoList();
172  for (const auto& this_rdo : rod_list_cluster) {
173  const int row = pixelID.phi_index(this_rdo);
174  if (row > rowmax)
175  rowmax = row;
176  if (row < rowmin)
177  rowmin = row;
178 
179  const int col = pixelID.eta_index(this_rdo);
180  if (col > colmax)
181  colmax = col;
182  if (col < colmin)
183  colmin = col;
184  }
185 
186  double etaWidth = design->widthFromColumnRange(colmin, colmax);
187  double phiWidth = design->widthFromRowRange(rowmin, rowmax);
188  InDet::SiWidth width( Amg::Vector2D(xaodCluster.channelsInPhi(), xaodCluster.channelsInEta()),
189  Amg::Vector2D(phiWidth,etaWidth) );
190 
191  indetCluster = new InDet::PixelCluster(id,
192  localPosition,
193  globalPosition,
194  std::vector<Identifier>(xaodCluster.rdoList()),
195  xaodCluster.lvl1a(),
196  std::vector<int>(xaodCluster.totList()),
197  std::vector<float>(xaodCluster.chargeList()),
198  width,
199  &element,
200  std::move(errorMatrix),
201  xaodCluster.omegaX(),
202  xaodCluster.omegaY(),
203  xaodCluster.isSplit(),
204  xaodCluster.splitProbability1(),
205  xaodCluster.splitProbability2());
206 
207  return StatusCode::SUCCESS;
208  }
209 
211  const InDetDD::SiDetectorElement& element,
212  const SCT_ID& stripID,
213  InDet::SCT_Cluster*& indetCluster,
214  double shift)
215  {
216  static const double one_over_twelve = 1. / 12.;
217 
218  bool isBarrel = element.isBarrel();
219  const InDetDD::SCT_ModuleSideDesign* design = nullptr;
220  if (not isBarrel) {
221  design = dynamic_cast<const InDetDD::StripStereoAnnulusDesign*>(&element.design());
222  } else {
223  design = dynamic_cast<const InDetDD::SCT_ModuleSideDesign*>(&element.design());
224  }
225 
226  if (design == nullptr) {
227  return StatusCode::FAILURE;
228  }
229 
230  const auto designShape = design->shape();
231 
232 
233  const auto& rdoList = xaodCluster.rdoList();
234  Identifier id = rdoList.front();
235 
236  const auto& localPos = xaodCluster.localPosition<1>();
237 
238  double pos_x = localPos(0, 0);
239  double pos_y = 0;
240  if (not isBarrel) {
241  const Identifier firstStripId = rdoList.front();
242  int firstStrip = stripID.strip(firstStripId);
243  int stripRow = stripID.row(firstStripId);
244  int clusterSizeInStrips = xaodCluster.channelsInPhi();
245  auto clusterPosition = design->localPositionOfCluster(design->strip1Dim(firstStrip, stripRow), clusterSizeInStrips);
246  pos_x = clusterPosition.xPhi() + shift;
247  pos_y = clusterPosition.xEta();
248  }
249 
250  Amg::Vector2D locpos = Amg::Vector2D( pos_x, pos_y );
251 
252  // Most of the following is taken from what is done in ClusterMakerTool
253  // Need to make this computation instead of using the local pos
254  // with local pos instead some differences w.r.t. reference are observed
255  const auto& firstStrip = stripID.strip(rdoList.front());
256  const auto& lastStrip = stripID.strip(rdoList.back());
257  const auto& row = stripID.row(rdoList.front());
258  const int firstStrip1D = design->strip1Dim (firstStrip, row );
259  const int lastStrip1D = design->strip1Dim( lastStrip, row );
260  const InDetDD::SiCellId cell1(firstStrip1D);
261  const InDetDD::SiCellId cell2(lastStrip1D);
262  const InDetDD::SiLocalPosition firstStripPos( element.rawLocalPositionOfCell(cell1 ));
263  const InDetDD::SiLocalPosition lastStripPos( element.rawLocalPositionOfCell(cell2) );
264  const InDetDD::SiLocalPosition centre( (firstStripPos+lastStripPos) * 0.5 );
265  const double clusterWidth = design->stripPitch() * ( lastStrip - firstStrip + 1 );
266 
267  const std::pair<InDetDD::SiLocalPosition, InDetDD::SiLocalPosition> ends( design->endsOfStrip(centre) );
268  const double stripLength( std::abs(ends.first.xEta() - ends.second.xEta()) );
269 
270  InDet::SiWidth width( Amg::Vector2D(xaodCluster.channelsInPhi(), 1),
271  Amg::Vector2D(clusterWidth, stripLength) );
272 
273  const double col_x = width.colRow().x();
274  const double col_y = width.colRow().y();
275 
276  double scale_factor = 1.;
277  if ( col_x == 1 )
278  scale_factor = 1.05;
279  else if ( col_x == 2 )
280  scale_factor = 0.27;
281 
282  auto errorMatrix = Amg::MatrixX(2,2);
283  errorMatrix.setIdentity();
284  errorMatrix.fillSymmetric(0, 0, scale_factor * scale_factor * width.phiR() * width.phiR() * one_over_twelve);
285  errorMatrix.fillSymmetric(1, 1, width.z() * width.z() / col_y / col_y * one_over_twelve);
286 
287  if( designShape == InDetDD::Trapezoid or
288  designShape == InDetDD::Annulus) {
289  // rotation for endcap SCT
290 
291  // The following is being computed with the local position,
292  // without considering the lorentz shift
293  // So we remove it from the local position
294  Amg::Vector2D local(pos_x - shift, pos_y);
295  double sn = element.sinStereoLocal(local);
296  double sn2 = sn * sn;
297  double cs2 = 1. - sn2;
298  double w = element.phiPitch(local) / element.phiPitch();
299  double v0 = errorMatrix(0,0) * w * w;
300  double v1 = errorMatrix(1,1);
301  errorMatrix.fillSymmetric( 0, 0, cs2 * v0 + sn2 * v1 );
302  errorMatrix.fillSymmetric( 0, 1, sn * std::sqrt(cs2) * (v0 - v1) );
303  errorMatrix.fillSymmetric( 1, 1, sn2 * v0 + cs2 * v1 );
304  }
305 
306  indetCluster = new InDet::SCT_Cluster(id,
307  locpos,
308  std::vector<Identifier>(rdoList),
309  width,
310  &element,
311  std::move(errorMatrix));
312 
313  return StatusCode::SUCCESS;
314  }
315 
317  const InDetDD::HGTD_DetectorElement& element,
318  ::HGTD_Cluster*& indetCluster) {
319 
320  const auto& locPos = xaodCluster.localPosition<3>();
321  Amg::Vector2D localPosition(locPos(0,0), locPos(1,0));
322  float time = locPos(2,0);
323 
324  InDetDD::SiLocalPosition centroid(localPosition);
325  const Identifier id = element.identifierOfPosition(centroid);
326 
327  auto errorMatrix = Amg::MatrixX(2,2);
328  errorMatrix.setIdentity();
329  errorMatrix.fillSymmetric(0, 0, xaodCluster.localCovariance<3>()(0, 0));
330  errorMatrix.fillSymmetric(1, 1, xaodCluster.localCovariance<3>()(1, 1));
331  float time_resolution = std::sqrt(xaodCluster.localCovariance<3>()(2, 2));
332 
333  double etaWidth = 1.3;
334  double phiWidth = 1.3;
335  int channelsPhi = 1;
336  int channelsEta = 1;
337  InDet::SiWidth width( Amg::Vector2D(channelsPhi, channelsEta), Amg::Vector2D(phiWidth, etaWidth) );
338 
339  indetCluster = new ::HGTD_Cluster(id,
340  localPosition,
341  std::vector<Identifier>(xaodCluster.rdoList()),
342  width,
343  &element,
344  std::move(errorMatrix),
345  time,
346  time_resolution,
347  std::vector<int>(xaodCluster.totList()));
348 
349  return StatusCode::SUCCESS;
350  }
351 
352 } // Namespace
353 
354 
InDetDD::SolidStateDetectorElementBase::identifierOfPosition
Identifier identifierOfPosition(const Amg::Vector2D &localPos) const
Full identifier of the cell for a given position: assumes a raw local position (no Lorentz shift)
Definition: SolidStateDetectorElementBase.cxx:217
query_example.row
row
Definition: query_example.py:24
xAOD::PixelCluster_v1::chargeList
const std::vector< float > & chargeList() const
Returns the list of charges of the channels building the cluster.
InDetDD::SCT_ModuleSideDesign::stripPitch
virtual double stripPitch(const SiLocalPosition &chargePos) const =0
give the strip pitch (dependence on position needed for forward)
TrackingUtilities::convertInDetToXaodCluster
StatusCode convertInDetToXaodCluster(const InDet::PixelCluster &indetCluster, const InDetDD::SiDetectorElement &element, xAOD::PixelCluster &xaodCluster)
Definition: ClusterConversionUtilities.cxx:52
xAOD::PixelCluster_v1::setTotalCharge
void setTotalCharge(float totalCharge)
Sets the total charge.
PixelID::phi_index
int phi_index(const Identifier &id) const
Definition: PixelID.h:658
InDetDD::SolidStateDetectorElementBase::cellIdOfPosition
SiCellId cellIdOfPosition(const Amg::Vector2D &localPos) const
As in previous method but returns SiCellId.
Definition: SolidStateDetectorElementBase.cxx:224
xAOD::StripCluster_v1::setChannelsInPhi
void setChannelsInPhi(int channelsInPhi)
Sets the dimensions of the cluster in numbers of channels in phi (x)
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition: EventPrimitives.h:29
max
#define max(a, b)
Definition: cfImp.cxx:41
InDet::PixelCluster::omegay
float omegay() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:197
InDetDD::PixelModuleDesign::widthFromRowRange
double widthFromRowRange(const int rowMin, const int rowMax) const
Method to calculate phi width from a row range.
Definition: PixelModuleDesign.cxx:144
InDetDD::PixelModuleDesign
Definition: PixelModuleDesign.h:48
xAOD::StripCluster_v1::channelsInPhi
int channelsInPhi() const
Returns the dimensions of the cluster in numbers of channels in phi (x), respectively.
xAOD::PixelCluster_v1::rdoList
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.
Definition: PixelCluster_v1.cxx:33
Amg::Vector2D
Eigen::Matrix< double, 2, 1 > Vector2D
Definition: GeoPrimitives.h:48
InDetDD::SCT_ModuleSideDesign
Definition: SCT_ModuleSideDesign.h:40
InDetDD::DetectorDesign::shape
virtual DetectorShape shape() const
Shape of element.
Definition: DetectorDesign.cxx:96
InDet::PixelCluster::isSplit
bool isSplit() const
access mehtods for splitting
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:248
Trk::PrepRawData::localCovariance
const Amg::MatrixX & localCovariance() const
return const ref to the error matrix
xAOD::HGTDCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition: HGTDCluster_v1.cxx:15
xAOD::xAODInDetMeasurement::Utilities::computeTotalToT
int computeTotalToT(const SG::AuxElement &cluster)
Definition: Event/xAOD/xAODInDetMeasurement/Root/Utilities.cxx:22
InDetDD::HGTD_DetectorElement
Definition: HGTD_DetectorElement.h:40
InDet::PixelCluster::splitProbability1
double splitProbability1() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:252
Trk::PrepRawData::rdoList
const std::vector< Identifier > & rdoList() const
return the List of rdo identifiers (pointers)
xAOD::PixelCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition: PixelCluster_v1.cxx:25
xAOD::PixelCluster_v1::setChargelist
void setChargelist(const std::vector< float > &charges)
Sets the list of charges of the channels building the cluster.
TrackingUtilities::convertXaodToInDetCluster
StatusCode convertXaodToInDetCluster(const xAOD::PixelCluster &xaodCluster, const InDetDD::SiDetectorElement &element, const PixelID &pixelID, InDet::PixelCluster *&indetCluster)
Definition: ClusterConversionUtilities.cxx:142
xAOD::HGTDCluster_v1
Definition: HGTDCluster_v1.h:23
xAOD::PixelCluster_v1::setIsSplit
void setIsSplit(bool isSplit)
Sets if the cluster is split or not.
InDetSecVtxTruthMatchUtils::isSplit
bool isSplit(int matchInfo)
Definition: InDetSecVtxTruthMatchTool.h:56
xAOD::PixelCluster_v1::setWidthInEta
void setWidthInEta(float widthInEta)
Sets the width of the cluster in eta (y) direction.
InDet::PixelCluster::totList
const std::vector< int > & totList() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:201
xAOD::PixelCluster_v1::setTotalToT
void setTotalToT(int totalToT)
Sets the total ToT.
InDetDD::SolidStateDetectorElementBase::identifyHash
virtual IdentifierHash identifyHash() const override final
identifier hash (inline)
SCT_CalibAlgs::lastStrip
@ lastStrip
Definition: SCT_CalibNumbers.h:10
xAOD::StripCluster_v1::rdoList
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.
Definition: StripCluster_v1.cxx:33
xAOD::PixelCluster_v1::splitProbability2
float splitProbability2() const
HGTD_Cluster.h
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration.
HGTD_Cluster
Definition: HGTD_Cluster.h:35
xAOD::PixelCluster_v1::setSplitProbabilities
void setSplitProbabilities(float prob1, float prob2)
Sets the splitting probabilities for the cluster.
InDetDD::SiLocalPosition
Definition: SiLocalPosition.h:31
InDetDD::SiLocalPosition::xPhi
double xPhi() const
position along phi direction:
Definition: SiLocalPosition.h:123
InDetDD::SiDetectorElement::phiPitch
double phiPitch() const
Pitch (inline methods)
InDet::PixelCluster::splitProbability2
double splitProbability2() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:256
xAOD::UncalibratedMeasurement_v1::setIdentifier
void setIdentifier(const DetectorIdentType measId)
Sets the full Identifier of the measurement.
InDetDD::PixelModuleDesign::widthFromColumnRange
double widthFromColumnRange(const int colMin, const int colMax) const
Method to calculate eta width from a column range.
Definition: PixelModuleDesign.cxx:132
parseMapping.v0
def v0
Definition: parseMapping.py:149
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDetDD::Annulus
@ Annulus
Definition: DetectorDesign.h:42
SCT_ID::row
int row(const Identifier &id) const
Definition: SCT_ID.h:758
InDetDD::StripStereoAnnulusDesign
Definition: StripStereoAnnulusDesign.h:50
HGTDClusterContainer.h
xAOD::PixelCluster_v1::setToTlist
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
HGTDClusterAuxContainer.h
Trk::RIO_OnTrackType::HGTD_Cluster
@ HGTD_Cluster
Definition: RIO_OnTrack.h:63
PixelID::eta_index
int eta_index(const Identifier &id) const
Definition: PixelID.h:664
TrackingUtilities
Definition: ClusterConversionUtilities.h:26
InDet::PixelCluster::LVL1A
int LVL1A() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:269
xAOD::StripCluster_v1
Definition: StripCluster_v1.h:17
xAOD::HGTDCluster_v1::totList
const std::vector< int > & totList() const
Returns the list of Time Over Threshold of the channels building the cluster.
xAOD::HGTDCluster_v1::setToTlist
void setToTlist(const std::vector< int > &tots)
Sets the list of ToT of the channels building the cluster.
xAOD::UncalibratedMeasurement_v1::localCovariance
ConstMatrixMap< N > localCovariance() const
Returns the local covariance of the measurement.
HGTD_Cluster::timeResolution
virtual float timeResolution() const
Definition: HGTD_Cluster.h:117
InDet::SCT_Cluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/SCT_Cluster.h:34
ClusterConversionUtilities.h
xAOD::UncalibratedMeasurement_v1::localPosition
ConstVectorMap< N > localPosition() const
Returns the local position of the measurement.
min
#define min(a, b)
Definition: cfImp.cxx:40
xAOD::PixelCluster_v1::setLVL1A
void setLVL1A(int lvl1a)
Sets the LVL1 accept.
InDetDD::local
@ local
Definition: InDetDD_Defs.h:16
xAOD::xAODInDetMeasurement::Utilities::computeTotalCharge
float computeTotalCharge(const SG::AuxElement &cluster)
Definition: Event/xAOD/xAODInDetMeasurement/Root/Utilities.cxx:9
Trk::PrepRawData::identify
Identifier identify() const
return the identifier
Utilities.h
xAOD::PixelCluster_v1::globalPosition
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the pixel cluster.
Definition: PixelCluster_v1.cxx:15
InDetDD::StripStereoAnnulusDesign::phiPitchPhi
double phiPitchPhi(const SiLocalPosition &localPosition) const
Definition: StripStereoAnnulusDesign.h:291
Trk::PrepRawData::localPosition
const Amg::Vector2D & localPosition() const
return the local position reference
xAOD::PixelCluster_v1::setOmegas
void setOmegas(float omegax, float omegay)
Sets omegax and omegay, i.e.
InDetDD::SiDetectorElement
Definition: SiDetectorElement.h:109
InDetDD::SiDetectorElement::isBarrel
bool isBarrel() const
xAOD::PixelCluster_v1::omegaX
float omegaX() const
Returns omegax and omegay, i.e.
xAOD::PixelCluster_v1::totList
const std::vector< int > & totList() const
Returns the list of ToT of the channels building the cluster.
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
query_example.col
col
Definition: query_example.py:7
InDetDD::SCT_ModuleSideDesign::localPositionOfCluster
virtual SiLocalPosition localPositionOfCluster(const SiCellId &cellId, int cluserSize) const =0
xAOD::PixelCluster_v1::omegaY
float omegaY() const
InDetDD::SiCellId
Definition: SiCellId.h:29
InDet::PixelCluster
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:49
StripStereoAnnulusDesign.h
InDet::SiCluster::globalPosition
const Amg::Vector3D & globalPosition() const
return global position reference
InDet::SiCluster::width
const InDet::SiWidth & width() const
return width class reference
xAOD::StripCluster_v1::setRDOlist
void setRDOlist(const std::vector< Identifier > &rdolist)
Sets the list of identifiers of the channels building the cluster.
Definition: StripCluster_v1.cxx:25
InDetDD::SolidStateDetectorElementBase::rawLocalPositionOfCell
Amg::Vector2D rawLocalPositionOfCell(const SiCellId &cellId) const
Returns position (center) of cell.
Definition: SolidStateDetectorElementBase.cxx:230
xAOD::PixelCluster_v1
Definition: PixelCluster_v1.h:17
xAOD::UncalibratedMeasurement_v1::setMeasurement
void setMeasurement(const DetectorIDHashType idHash, MeasVector< N > locPos, MeasMatrix< N > locCov)
Sets IdentifierHash, local position and local covariance of the measurement.
Identifier::get_compact
value_type get_compact(void) const
Get the compact id.
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
InDet::PixelCluster::omegax
float omegax() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:193
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
SCT_ID
Definition: SCT_ID.h:68
InDetDD::SCT_ModuleSideDesign::strip1Dim
virtual int strip1Dim(int strip, int row) const override
only relevant for SCT.
Definition: SCT_ModuleSideDesign.h:279
SCT_ID::strip
int strip(const Identifier &id) const
Definition: SCT_ID.h:764
PixelModuleDesign.h
xAOD::PixelCluster_v1::setChannelsInPhiEta
void setChannelsInPhiEta(int channelsInPhi, int channelsInEta)
Sets the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions.
Definition: PixelCluster_v1.cxx:46
InDetDD::SiDetectorElement::sinStereoLocal
double sinStereoLocal(const Amg::Vector2D &localPos) const
Angle of strip in local frame with respect to the etaAxis.
Definition: SiDetectorElement.cxx:288
xAOD::phiWidth
phiWidth
Definition: RingSetConf_v1.cxx:612
HGTD_Cluster::totList
virtual const std::vector< int > & totList() const
Definition: HGTD_Cluster.h:119
InDet::SiWidth
Definition: SiWidth.h:25
xAOD::StripCluster_v1::globalPosition
ConstVectorMap< 3 > globalPosition() const
Returns the global position of the strip cluster.
Definition: StripCluster_v1.cxx:15
python.LArCondContChannels.isBarrel
isBarrel
Definition: LArCondContChannels.py:659
SCT_CalibAlgs::firstStrip
@ firstStrip
Definition: SCT_CalibNumbers.h:10
IdentifierHash
Definition: IdentifierHash.h:38
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200
xAOD::PixelCluster_v1::channelsInEta
int channelsInEta() const
InDetDD::SiDetectorElement::design
virtual const SiDetectorDesign & design() const override final
access to the local description (inline):
InDetDD::StripStereoAnnulusDesign::localPositionOfCellPC
SiLocalPosition localPositionOfCellPC(const SiCellId &cellId) const
This is for debugging only.
Definition: StripStereoAnnulusDesign.cxx:428
PixelID
Definition: PixelID.h:67
xAOD::HGTDCluster_v1::rdoList
const std::vector< Identifier > rdoList() const
Returns the list of identifiers of the channels building the cluster.
Definition: HGTDCluster_v1.cxx:23
InDetDD::SCT_ModuleSideDesign::endsOfStrip
virtual std::pair< SiLocalPosition, SiLocalPosition > endsOfStrip(const SiLocalPosition &position) const override=0
give the ends of strips
HGTD_Cluster::time
virtual float time() const
Definition: HGTD_Cluster.h:115
NSWL1::centroid
Vertex centroid(const Polygon &p)
Definition: GeoUtils.cxx:59
xAOD::PixelCluster_v1::channelsInPhi
int channelsInPhi() const
Returns the dimensions of the cluster in numbers of channels in phi (x) and eta (y) directions,...
xAOD::PixelCluster_v1::splitProbability1
float splitProbability1() const
Returns the splitting probabilities for the cluster.
InDetDD::Trapezoid
@ Trapezoid
Definition: DetectorDesign.h:42
xAOD::PixelCluster_v1::lvl1a
int lvl1a() const
Return the LVL1 accept.
generate::Zero
void Zero(TH1D *hin)
Definition: generate.cxx:32
InDet::PixelCluster::chargeList
const std::vector< float > & chargeList() const
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelCluster.h:209
xAOD::PixelCluster_v1::isSplit
bool isSplit() const
Returns if the cluster is split or not.