@@ -848,13 +848,13 @@ struct CorrSparse {
848848 id = id + Ft0IndexA;
849849 ampl = ft0.amplitudeC ()[iCh];
850850 registry.fill (HIST (" FT0Amp" ), id, ampl);
851- ampl = ampl / cstFT0RelGain[iCh ];
851+ ampl = ampl / cstFT0RelGain[id ];
852852 registry.fill (HIST (" FT0AmpCorrect" ), id, ampl);
853853 } else if (fitType == kFT0A ) {
854854 id = ft0.channelA ()[iCh];
855855 ampl = ft0.amplitudeA ()[iCh];
856856 registry.fill (HIST (" FT0Amp" ), id, ampl);
857- ampl = ampl / cstFT0RelGain[iCh ];
857+ ampl = ampl / cstFT0RelGain[id ];
858858 registry.fill (HIST (" FT0AmpCorrect" ), id, ampl);
859859 } else {
860860 LOGF (fatal, " Cor Index %d out of range" , fitType);
@@ -1091,7 +1091,7 @@ struct CorrSparse {
10911091 for (std::size_t iCh = 0 ; iCh < channelSize; iCh++) {
10921092 int channelID = 0 ;
10931093 float amplitude = 0 .;
1094- getChannelFT0 (tracks2, iCh, channelID, amplitude, corType);
1094+ getChannelWithGain (tracks2, iCh, channelID, amplitude, corType);
10951095
10961096 // reject depending on FT0C/FT0A rings
10971097 if (corType == kFT0C ) {
@@ -1216,7 +1216,7 @@ struct CorrSparse {
12161216 for (std::size_t iCh = 0 ; iCh < channelSize; iCh++) {
12171217 int channelID = 0 ;
12181218 float amplitude = 0 .;
1219- getChannelFT0 (tracks2, iCh, channelID, amplitude, corType);
1219+ getChannelWithGain (tracks2, iCh, channelID, amplitude, corType);
12201220
12211221 // reject depending on FT0C/FT0A rings
12221222 if (corType == kFT0C ) {
@@ -1482,7 +1482,7 @@ struct CorrSparse {
14821482 if (!collision.has_foundFT0 ())
14831483 return ;
14841484 loadAlignParam (bc.timestamp ());
1485- // loadGain(bc);
1485+ loadGain (bc);
14861486 loadCorrection (bc.timestamp ());
14871487
14881488 if ((tpctracks.size () < cfgEventSelection.cfgMinMult || tpctracks.size () >= cfgEventSelection.cfgMaxMult )) {
@@ -1536,7 +1536,7 @@ struct CorrSparse {
15361536 if (!collision.has_foundFT0 ())
15371537 return ;
15381538 loadAlignParam (bc.timestamp ());
1539- // loadGain(bc);
1539+ loadGain (bc);
15401540 loadCorrection (bc.timestamp ());
15411541
15421542 if ((tpctracks.size () < cfgEventSelection.cfgMinMult || tpctracks.size () >= cfgEventSelection.cfgMaxMult )) {
0 commit comments