@@ -71,10 +71,11 @@ void Digitizer::init()
7171 constexpr const char * responseFileIB = " $(O2_ROOT)/share/Detectors/Upgrades/ITS3/data/ITS3ChipResponseData/APTSResponseData.root" ;
7272 constexpr const char * responseFileOB = " $(O2_ROOT)/share/Detectors/ITSMFT/data/AlpideResponseData/AlpideResponseData.root" ;
7373 loadSetResponseFunc (" APTS" , responseFileIB, " response1" , responseFileOB, " response1" );
74- mSimRespIBShift = mSimRespIB ->getDepthMax () - 6 .5e- 4f ;
74+ mSimRespIBShift = mSimRespIB ->getDepthMax () + ( float )constants::pixelarray::pixels::apts::responseYShift ;
7575 mSimRespOBShift = mSimRespOB ->getDepthMax () - SegmentationAlpide::SensorLayerThickness / 2 .f ;
76- mSimRespIBScaleX = 0.5 * constants::pixelarray::pixels::apts::pitchX / SegmentationMosaix::PitchRow;
77- mSimRespIBScaleZ = 0.5 * constants::pixelarray::pixels::apts::pitchZ / SegmentationMosaix::PitchCol;
76+ mSimRespIBScaleX = 0 .5f * constants::pixelarray::pixels::apts::pitchX / SegmentationMosaix::PitchRow;
77+ mSimRespIBScaleZ = 0 .5f * constants::pixelarray::pixels::apts::pitchZ / SegmentationMosaix::PitchCol;
78+ mSimRespIBOrientation = true ;
7879 } else {
7980 LOGP (fatal, " ResponseFunction '{}' not implemented!" , func);
8081 }
@@ -401,7 +402,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, uint32_t& maxFr, int evID
401402 if (colDest < 0 || colDest >= colSpan) {
402403 continue ;
403404 }
404- respMatrix[rowDest][colDest] += rspmat->getValue (irow, icol, flipRow, flipCol);
405+ respMatrix[rowDest][colDest] += rspmat->getValue (irow, icol, ((innerBarrel && mSimRespIBOrientation ) ? ! flipRow : flipRow) , flipCol);
405406 }
406407 }
407408 }
0 commit comments