2626
2727using o2::itsmft::Hit;
2828using Segmentation = o2::itsmft::SegmentationAlpide;
29- using SuperSegmentation = o2::its3::SegmentationSuperAlpide;
3029using o2::itsmft::AlpideRespSimMat;
3130using o2::itsmft::PreDigit;
3231
@@ -143,7 +142,7 @@ void Digitizer::fillOutputContainer(uint32_t frameLast)
143142 for (size_t iChip{0 }; iChip < mChips .size (); ++iChip) {
144143 auto & chip = mChips [iChip];
145144 if (constants::detID::isDetITS3 (iChip)) { // Check if this is a chip of ITS3
146- chip.addNoise (mROFrameMin , mROFrameMin , &mParams , SuperSegmentation ::mNRows , SuperSegmentation ::mNCols );
145+ chip.addNoise (mROFrameMin , mROFrameMin , &mParams , SegmentationSuperAlpide ::mNRows , SegmentationSuperAlpide ::mNCols );
147146 } else {
148147 chip.addNoise (mROFrameMin , mROFrameMin , &mParams );
149148 }
@@ -238,8 +237,8 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
238237 if (innerBarrel) {
239238 // transform the point on the curved surface to a flat one
240239 float xFlatE{0 .f }, yFlatE{0 .f }, xFlatS{0 .f }, yFlatS{0 .f };
241- SuperSegmentations [layer].curvedToFlat (xyzLocS.X (), xyzLocS.Y (), xFlatS, yFlatS);
242- SuperSegmentations [layer].curvedToFlat (xyzLocE.X (), xyzLocE.Y (), xFlatE, yFlatE);
240+ mSuperSegmentations [layer].curvedToFlat (xyzLocS.X (), xyzLocS.Y (), xFlatS, yFlatS);
241+ mSuperSegmentations [layer].curvedToFlat (xyzLocE.X (), xyzLocE.Y (), xFlatE, yFlatE);
243242 // update the local coordinates with the flattened ones
244243 xyzLocS.SetXYZ (xFlatS, yFlatS, xyzLocS.Z ());
245244 xyzLocE.SetXYZ (xFlatE, yFlatE, xyzLocE.Z ());
@@ -255,14 +254,14 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
255254 int rowS = -1 , colS = -1 , rowE = -1 , colE = -1 , nSkip = 0 ;
256255 if (innerBarrel) {
257256 // get entrance pixel row and col
258- while (!SuperSegmentations [layer].localToDetector (xyzLocS.X (), xyzLocS.Z (), rowS, colS)) { // guard-ring ?
257+ while (!mSuperSegmentations [layer].localToDetector (xyzLocS.X (), xyzLocS.Z (), rowS, colS)) { // guard-ring ?
259258 if (++nSkip >= nSteps) {
260259 return ; // did not enter to sensitive matrix
261260 }
262261 xyzLocS += step;
263262 }
264263 // get exit pixel row and col
265- while (!SuperSegmentations [layer].localToDetector (xyzLocE.X (), xyzLocE.Z (), rowE, colE)) { // guard-ring ?
264+ while (!mSuperSegmentations [layer].localToDetector (xyzLocE.X (), xyzLocE.Z (), rowE, colE)) { // guard-ring ?
266265 if (++nSkip >= nSteps) {
267266 return ; // did not enter to sensitive matrix
268267 }
@@ -298,8 +297,8 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
298297 rowS = 0 ;
299298 }
300299
301- int maxNrows{innerBarrel ? SuperSegmentation ::mNRows : Segmentation::NRows};
302- int maxNcols{innerBarrel ? SuperSegmentation ::mNCols : Segmentation::NCols};
300+ int maxNrows{innerBarrel ? SegmentationSuperAlpide ::mNRows : Segmentation::NRows};
301+ int maxNcols{innerBarrel ? SegmentationSuperAlpide ::mNCols : Segmentation::NCols};
303302 if (rowE >= maxNrows) {
304303 rowE = maxNrows - 1 ;
305304 }
@@ -327,19 +326,19 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
327326 // take into account that the AlpideSimResponse depth defintion has different min/max boundaries
328327 // although the max should coincide with the surface of the epitaxial layer, which in the chip
329328 // local coordinates has Y = +SensorLayerThickness/2
330- float thickness = innerBarrel ? SuperSegmentation ::mSensorLayerThickness : Segmentation::SensorLayerThickness;
329+ float thickness = innerBarrel ? SegmentationSuperAlpide ::mSensorLayerThickness : Segmentation::SensorLayerThickness;
331330 xyzLocS.SetY (xyzLocS.Y () + mAlpSimResp ->getDepthMax () - thickness / 2 .);
332331 // collect charge in evey pixel which might be affected by the hit
333332 for (int iStep = nSteps; iStep--;) {
334333 // Get the pixel ID
335334 if (innerBarrel) {
336- SuperSegmentations [layer].localToDetector (xyzLocS.X (), xyzLocS.Z (), row, col);
335+ mSuperSegmentations [layer].localToDetector (xyzLocS.X (), xyzLocS.Z (), row, col);
337336 } else {
338337 Segmentation::localToDetector (xyzLocS.X (), xyzLocS.Z (), row, col);
339338 }
340339 if (row != rowPrev || col != colPrev) { // update pixel and coordinates of its center
341340 if (innerBarrel) {
342- if (!SuperSegmentations [layer].detectorToLocal (row, col, cRowPix, cColPix)) {
341+ if (!mSuperSegmentations [layer].detectorToLocal (row, col, cRowPix, cColPix)) {
343342 continue ;
344343 }
345344 } else if (!Segmentation::detectorToLocal (row, col, cRowPix, cColPix)) {
@@ -350,8 +349,8 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
350349 }
351350 bool flipCol = false , flipRow = false ;
352351 // note that response needs coordinates along column row (locX) (locZ) then depth (locY)
353- double rowMax{0 .5f * (innerBarrel ? SuperSegmentation ::mPitchRow : Segmentation::PitchRow)};
354- double colMax{0 .5f * (innerBarrel ? SuperSegmentation ::mPitchCol : Segmentation::PitchCol)};
352+ double rowMax{0 .5f * (innerBarrel ? SegmentationSuperAlpide ::mPitchRow : Segmentation::PitchRow)};
353+ double colMax{0 .5f * (innerBarrel ? SegmentationSuperAlpide ::mPitchCol : Segmentation::PitchCol)};
355354 auto rspmat = mAlpSimResp ->getResponse (xyzLocS.X () - cRowPix, xyzLocS.Z () - cColPix, xyzLocS.Y (), flipRow, flipCol, rowMax, colMax);
356355
357356 xyzLocS += step;
0 commit comments