Skip to content

Commit e63b492

Browse files
Add files via upload
Added option to reject the inside or the outside of the detector ring of FT0
1 parent d266d8d commit e63b492

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)