Skip to content

Commit b1c1818

Browse files
AllaMaevskayashahor02
authored andcommitted
fix typo in Digitizer
1 parent b367c77 commit b1c1818

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Detectors/FIT/FT0/simulation/src/Digitizer.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void Digitizer::storeBC(BCCache& bc,
276276

277277
// fill triggers
278278

279-
Bool_t is_A_side = (ipmt <= 4 * mGeometry.NCellsA);
279+
Bool_t is_A_side = (ipmt < 4 * mGeometry.NCellsA);
280280
if (!is_time_in_signal_gate) {
281281
continue;
282282
}
@@ -296,12 +296,12 @@ void Digitizer::storeBC(BCCache& bc,
296296
is_C = n_hit_C > 0;
297297
is_Central = summ_ampl_A + summ_ampl_C >= params.mtrg_central_trh;
298298
is_SemiCentral = summ_ampl_A + summ_ampl_C >= params.mtrg_semicentral_trh;
299-
vertex_time = (mean_time_A - mean_time_C) * 0.5;
300-
isVertex = is_A && is_C && (vertex_time > -params.mTime_trg_gate && vertex_time < params.mTime_trg_gate);
301299
uint32_t amplA = is_A ? summ_ampl_A * 0.125 : 0; // sum amplitude A side / 8 (hardware)
302300
uint32_t amplC = is_C ? summ_ampl_C * 0.125 : 0; // sum amplitude C side / 8 (hardware)
303301
uint16_t timeA = is_A ? mean_time_A / n_hit_A : 0; // average time A side
304302
uint16_t timeC = is_C ? mean_time_C / n_hit_C : 0; // average time C side
303+
vertex_time = (timeC - timeA) * 0.5;
304+
isVertex = is_A && is_C && (vertex_time > -params.mTime_trg_gate && vertex_time < params.mTime_trg_gate);
305305

306306
Triggers triggers;
307307
if (nStored > 0) {

0 commit comments

Comments
 (0)