Skip to content

Commit cbc0620

Browse files
Add files via upload
1 parent 711bad4 commit cbc0620

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,12 @@ 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 inside ring channels of the FT0A detector")
111-
O2_DEFINE_CONFIGURABLE(cfgRejectFT0AOutside, bool, false, "Rejection of outside ring channels of the FT0A detector")
112-
O2_DEFINE_CONFIGURABLE(cfgRejectFT0CInside, bool, false, "Rejection of inside ring channels of the FT0C detector")
113-
O2_DEFINE_CONFIGURABLE(cfgRejectFT0COutside, bool, false, "Rejection of outside ring channels of the FT0C detector")
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")
114+
O2_DEFINE_CONFIGURABLE(cfgRemapFT0ADeadChannels, bool, false, "Remap FT0A channels 60, 61, 62, 63 to amplitudes from 28,30,29,31 respectively")
115+
O2_DEFINE_CONFIGURABLE(cfgRemapFT0CDeadChannels, bool, false, "Remap FT0C channels 177->145, 176->144, 178->146, 179->147, 139->115")
114116
struct : ConfigurableGroup {
115117
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");
116118
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");
@@ -653,6 +655,18 @@ struct LongRangeDihadronCor {
653655
id = ft0.channelC()[iCh];
654656
id = id + Ft0IndexA;
655657
ampl = ft0.amplitudeC()[iCh];
658+
if (cfgRemapFT0CDeadChannels) {
659+
if (id == 177)
660+
ampl = ft0.amplitudeC()[145];
661+
else if (id == 176)
662+
ampl = ft0.amplitudeC()[144];
663+
else if (id == 178)
664+
ampl = ft0.amplitudeC()[146];
665+
else if (id == 179)
666+
ampl = ft0.amplitudeC()[147];
667+
else if (id == 139)
668+
ampl = ft0.amplitudeC()[115];
669+
}
656670
if ((cfgRejectFT0CInside && (id >= kFT0CInnerRingMin && id <= kFT0CInnerRingMax)) || (cfgRejectFT0COutside && (id >= kFT0COuterRingMin && id <= kFT0COuterRingMax)))
657671
ampl = 0.;
658672
registry.fill(HIST("FT0Amp"), id, ampl);
@@ -661,6 +675,16 @@ struct LongRangeDihadronCor {
661675
} else if (fitType == kFT0A) {
662676
id = ft0.channelA()[iCh];
663677
ampl = ft0.amplitudeA()[iCh];
678+
if (cfgRemapFT0ADeadChannels) {
679+
if (id == 60)
680+
ampl = ft0.amplitudeA()[92];
681+
else if (id == 61)
682+
ampl = ft0.amplitudeA()[93];
683+
else if (id == 62)
684+
ampl = ft0.amplitudeA()[94];
685+
else if (id == 63)
686+
ampl = ft0.amplitudeA()[95];
687+
}
664688
if ((cfgRejectFT0AInside && (id >= kFT0AInnerRingMin && id <= kFT0AInnerRingMax)) || (cfgRejectFT0AOutside && (id >= kFT0AOuterRingMin && id <= kFT0AOuterRingMax)))
665689
ampl = 0.;
666690
registry.fill(HIST("FT0Amp"), id, ampl);

0 commit comments

Comments
 (0)