Skip to content

Commit 6b384e0

Browse files
authored
Add files via upload
1 parent 41e4ba1 commit 6b384e0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ 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(cfgRejectFT0AInside, bool, false, "Rejection of inner ring channels of the FT0A detector")
111+
O2_DEFINE_CONFIGURABLE(cfgRejectFT0AOutside, bool, false, "Rejection of outer ring channels of the FT0A detector")
112+
O2_DEFINE_CONFIGURABLE(cfgRejectFT0CInside, bool, false, "Rejection of inner ring channels of the FT0C detector")
113+
O2_DEFINE_CONFIGURABLE(cfgRejectFT0COutside, bool, false, "Rejection of outer ring channels of the FT0C detector")
110114
struct : ConfigurableGroup {
111115
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");
112116
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");
@@ -236,6 +240,16 @@ struct LongRangeDihadronCor {
236240
kTOF,
237241
kITS
238242
};
243+
enum DetectorChannels {
244+
kFT0AInnerRingMin = 0,
245+
kFT0AInnerRingMax = 31,
246+
kFT0AOuterRingMin = 32,
247+
kFT0AOuterRingMax = 95,
248+
kFT0CInnerRingMin = 96,
249+
kFT0CInnerRingMax = 143,
250+
kFT0COuterRingMin = 144,
251+
kFT0COuterRingMax = 207
252+
};
239253
std::array<float, 6> tofNsigmaCut;
240254
std::array<float, 6> itsNsigmaCut;
241255
std::array<float, 6> tpcNsigmaCut;
@@ -639,12 +653,16 @@ struct LongRangeDihadronCor {
639653
id = ft0.channelC()[iCh];
640654
id = id + Ft0IndexA;
641655
ampl = ft0.amplitudeC()[iCh];
656+
if ((cfgRejectFT0CInside && (id >= kFT0CInnerRingMin && id <= kFT0CInnerRingMax)) || (cfgRejectFT0COutside && (id >= kFT0COuterRingMin && id <= kFT0COuterRingMax)))
657+
ampl = 0.;
642658
registry.fill(HIST("FT0Amp"), id, ampl);
643659
ampl = ampl / cstFT0RelGain[iCh];
644660
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
645661
} else if (fitType == kFT0A) {
646662
id = ft0.channelA()[iCh];
647663
ampl = ft0.amplitudeA()[iCh];
664+
if ((cfgRejectFT0AInside && (id >= kFT0AInnerRingMin && id <= kFT0AInnerRingMax)) || (cfgRejectFT0AOutside && (id >= kFT0AOuterRingMin && id <= kFT0AOuterRingMax)))
665+
ampl = 0.;
648666
registry.fill(HIST("FT0Amp"), id, ampl);
649667
ampl = ampl / cstFT0RelGain[iCh];
650668
registry.fill(HIST("FT0AmpCorrect"), id, ampl);

0 commit comments

Comments
 (0)