Skip to content

Commit 3468fb2

Browse files
Add files via upload
making the rejection of the rejection of part of the detector more distinctive
1 parent 24189d9 commit 3468fb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longRangeDihadronCor.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +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(cfgRejectOuterRings, bool, false, "Reject events from the outer rings of both FT0A and FT0C detectors")
111-
O2_DEFINE_CONFIGURABLE(cfgRejectInnerRings, bool, false, "Reject events from the inner rings of both FT0A and FT0C detectors")
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")
112112
struct : ConfigurableGroup {
113113
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");
114114
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");
@@ -651,15 +651,15 @@ struct LongRangeDihadronCor {
651651
id = ft0.channelC()[iCh];
652652
id = id + Ft0IndexA;
653653
ampl = ft0.amplitudeC()[iCh];
654-
if ((cfgRejectInsideDetectors && ((id >= kFT0AInnerRingMin && id <= kFT0AInnerRingMax) || (id >= kFT0CInnerRingMin && id <= kFT0CInnerRingMax))) || (cfgRejectOutsideDetectors && ((id >= kFT0AOuterRingMin && id <= kFT0AOuterRingMax) || (id >= kFT0COuterRingMin && id <= kFT0COuterRingMax))))
654+
if ((cfgRejectInsideDetectors && (id >= kFT0CInnerRingMin && id <= kFT0CInnerRingMax)) || (cfgRejectOutsideDetectors && (id >= kFT0COuterRingMin && id <= kFT0COuterRingMax)))
655655
ampl = 0.;
656656
registry.fill(HIST("FT0Amp"), id, ampl);
657657
ampl = ampl / cstFT0RelGain[iCh];
658658
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
659659
} else if (fitType == kFT0A) {
660660
id = ft0.channelA()[iCh];
661661
ampl = ft0.amplitudeA()[iCh];
662-
if ((cfgRejectInsideDetectors && ((id >= kFT0AInnerRingMin && id <= kFT0AInnerRingMax) || (id >= kFT0CInnerRingMin && id <= kFT0CInnerRingMax))) || (cfgRejectOutsideDetectors && ((id >= kFT0AOuterRingMin && id <= kFT0AOuterRingMax) || (id >= kFT0COuterRingMin && id <= kFT0COuterRingMax))))
662+
if ((cfgRejectInsideDetectors && (id >= kFT0AInnerRingMin && id <= kFT0AInnerRingMax)) || (cfgRejectOutsideDetectors && (id >= kFT0AOuterRingMin && id <= kFT0AOuterRingMax)))
663663
ampl = 0.;
664664
registry.fill(HIST("FT0Amp"), id, ampl);
665665
ampl = ampl / cstFT0RelGain[iCh];

0 commit comments

Comments
 (0)