Skip to content

Commit 7cc55c2

Browse files
committed
Fix on the init of the ITS3 chip digits container
1 parent 1002dc1 commit 7cc55c2

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Detectors/Upgrades/ITS3/simulation/include/ITS3Simulation/ChipDigitsContainer.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ class ChipDigitsContainer : public o2::itsmft::ChipDigitsContainer
3939
explicit ChipDigitsContainer(UShort_t idx = 0);
4040

4141
/// Returns whether the chip is in the inner barrel (IB)
42+
void setChipIndex(UShort_t idx)
43+
{
44+
o2::itsmft::ChipDigitsContainer::setChipIndex(idx);
45+
innerBarrel = constants::detID::isDetITS3(getChipIndex());
46+
maxRows = innerBarrel ? SegmentationOB::NRows : SegmentationIB::NRows;
47+
maxCols = innerBarrel ? SegmentationOB::NCols : SegmentationIB::NCols;
48+
}
4249
bool isIB() const;
4350
/// Adds noise digits, deleted the one using the itsmft::DigiParams interface
4451
void addNoise(UInt_t rofMin, UInt_t rofMax, const o2::itsmft::DigiParams* params, int maxRows = o2::itsmft::SegmentationAlpide::NRows, int maxCols = o2::itsmft::SegmentationAlpide::NCols) = delete;

Detectors/Upgrades/ITS3/simulation/src/ChipDigitsContainer.cxx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ namespace its3
1717
{
1818

1919
ChipDigitsContainer::ChipDigitsContainer(UShort_t idx)
20-
: o2::itsmft::ChipDigitsContainer(idx),
21-
innerBarrel(constants::detID::isDetITS3(idx)),
22-
maxRows(innerBarrel ? SegmentationOB::NRows : SegmentationIB::NRows),
23-
maxCols(innerBarrel ? SegmentationOB::NCols : SegmentationIB::NCols)
24-
{
25-
}
20+
: o2::itsmft::ChipDigitsContainer(idx){}
2621

2722
bool ChipDigitsContainer::isIB() const
2823
{

Detectors/Upgrades/ITS3/simulation/src/Digitizer.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ void Digitizer::init()
8383
}
8484

8585
mParams.print();
86-
LOGP(info, "IBShift = {} ; OBShift = {}", mSimRespIBShift, mSimRespOBShift);
87-
LOGP(info, "IB-Scale: X={} ; Z={}", mSimRespIBScaleX, mSimRespIBScaleZ);
88-
LOGP(info, "IB-Orientation: {}", mSimRespIBOrientation ? "flipped" : "normal");
86+
LOGP(info, "IB shift = {} ; OB shift = {}", mSimRespIBShift, mSimRespOBShift);
87+
LOGP(info, "IB pixel scale on x = {} ; z = {}", mSimRespIBScaleX, mSimRespIBScaleZ);
88+
LOGP(info, "IB response orientation: {}", mSimRespIBOrientation ? "flipped" : "normal");
8989
mIRFirstSampledTF = o2::raw::HBFUtils::Instance().getFirstSampledTFIR();
9090
}
9191

0 commit comments

Comments
 (0)