@@ -107,6 +107,8 @@ struct LongRangeDihadronCor {
107107 O2_DEFINE_CONFIGURABLE (cfgLocalEfficiency, bool , false , " Use local efficiency object" )
108108 O2_DEFINE_CONFIGURABLE (cfgUseEventWeights, bool , false , " Use event weights for mixed event" )
109109 O2_DEFINE_CONFIGURABLE (cfgDrawEtaPhiDis, bool , false , " draw eta-phi distribution for detectors in used" )
110+ O2_DEFINE_CONFIGURABLE (cfgRejectOutsideDetectors, bool , false , " Rejection of outside ring events of the FT0 detector" )
111+ O2_DEFINE_CONFIGURABLE (cfgRejectInsideDetectors, bool , false , " Rejection of inside ring events of the FT0 detector" )
110112 struct : ConfigurableGroup {
111113 O2_DEFINE_CONFIGURABLE (cfgMultCentHighCutFunction, std::string, " [0] + [1]*x + [2]*x*x + [3]*x*x*x + [4]*x*x*x*x + 10.*([5] + [6]*x + [7]*x*x + [8]*x*x*x + [9]*x*x*x*x)" , " Functional for multiplicity correlation cut" );
112114 O2_DEFINE_CONFIGURABLE (cfgMultCentLowCutFunction, std::string, " [0] + [1]*x + [2]*x*x + [3]*x*x*x + [4]*x*x*x*x - 3.*([5] + [6]*x + [7]*x*x + [8]*x*x*x + [9]*x*x*x*x)" , " Functional for multiplicity correlation cut" );
@@ -639,12 +641,16 @@ struct LongRangeDihadronCor {
639641 id = ft0.channelC ()[iCh];
640642 id = id + Ft0IndexA;
641643 ampl = ft0.amplitudeC ()[iCh];
644+ if ((cfgRejectInsideDetectors && ((id >= 31 && id <= 96 ) || (id >= 143 && id <= 208 ))) || (cfgRejectOutsideDetectors && ((id >= 0 && id <= 30 ) || (id >= 97 && id <= 142 ))))
645+ ampl = 0 .;
642646 registry.fill (HIST (" FT0Amp" ), id, ampl);
643647 ampl = ampl / cstFT0RelGain[iCh];
644648 registry.fill (HIST (" FT0AmpCorrect" ), id, ampl);
645649 } else if (fitType == kFT0A ) {
646650 id = ft0.channelA ()[iCh];
647651 ampl = ft0.amplitudeA ()[iCh];
652+ if ((cfgRejectInsideDetectors && ((id >= 31 && id <= 96 ) || (id >= 143 && id <= 208 ))) || (cfgRejectOutsideDetectors && ((id >= 0 && id <= 30 ) || (id >= 97 && id <= 142 ))))
653+ ampl = 0 .;
648654 registry.fill (HIST (" FT0Amp" ), id, ampl);
649655 ampl = ampl / cstFT0RelGain[iCh];
650656 registry.fill (HIST (" FT0AmpCorrect" ), id, ampl);
0 commit comments