Skip to content

Commit 6409649

Browse files
AllaMaevskayashahor02
authored andcommitted
fixed typo in reco
1 parent 448a2c7 commit 6409649

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Detectors/FIT/FT0/base/files/Sim2DataChannels.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
51 50 48 49
44
46 47 44 45
55
41 43 40 42
6-
61 63 62 60
6+
63 61 62 60
77
15 14 13 12
88
11 10 8 9
99
5 7 4 6

Detectors/FIT/FT0/reconstruction/src/CollisionTimeRecoTask.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ o2::ft0::RecPoints CollisionTimeRecoTask::process(o2::ft0::Digit const& bcd,
4545
int nch = inChData.size();
4646
const auto parInv = DigitizationParameters::Instance().mMV_2_NchannelsInverse;
4747
for (int ich = 0; ich < nch; ich++) {
48-
int offsetChannel = getOffset(ich, inChData[ich].QTCAmpl);
49-
48+
int offsetChannel = getOffset(int(inChData[ich].ChId), inChData[ich].QTCAmpl);
5049
outChData[ich] = o2::ft0::ChannelDataFloat{inChData[ich].ChId,
5150
(inChData[ich].CFDTime - offsetChannel) * Geometry::ChannelWidth,
52-
(float)inChData[ich].QTCAmpl * parInv,
51+
(float)inChData[ich].QTCAmpl,
5352
inChData[ich].ChainQTC};
5453

5554
// only signals with amplitude participate in collision time
@@ -59,6 +58,7 @@ o2::ft0::RecPoints CollisionTimeRecoTask::process(o2::ft0::Digit const& bcd,
5958
ndigitsA++;
6059
} else {
6160
sideCtime += outChData[ich].CFDTime;
61+
LOG(DEBUG) << "cfd " << outChData[ich].ChId << " dig " << 13.2 * inChData[ich].CFDTime << " rec " << outChData[ich].CFDTime << " amp " << (float)inChData[ich].QTCAmpl << " offset " << offsetChannel;
6262
ndigitsC++;
6363
}
6464
}

Detectors/FIT/FV0/reconstruction/src/BaseRecoTask.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ RP BaseRecoTask::process(o2::fv0::BCData const& bcd,
5151
int nch = inChData.size();
5252
for (int ich = 0; ich < nch; ich++) {
5353
LOG(debug) << " channel " << ich << " / " << nch;
54-
int offsetChannel = getChannelOffset(ich);
54+
int offsetChannel = getChannelOffset(inChData[ich].pmtNumber);
5555

5656
outChData[ich] = o2::fv0::ChannelDataFloat{inChData[ich].pmtNumber,
5757
(inChData[ich].time - offsetChannel) * DigitizationConstant::TIME_PER_TDCCHANNEL,

0 commit comments

Comments
 (0)