@@ -81,7 +81,7 @@ static constexpr float DcaMaxTPCSigma = 1.f;
8181static constexpr float DcaTrkPtCut = 0 .4f ;
8282
8383// Spectra task
84- struct tofSpectra {
84+ struct SpectraTOF {
8585 struct : ConfigurableGroup {
8686 Configurable<float > cfgCutVertex{" cfgCutVertex" , 10 .0f , " Accepted z-vertex range" };
8787 Configurable<int > cfgINELCut{" cfgINELCut" , 0 , " INEL event selection: 0 sel, 1 INEL>0" };
@@ -427,7 +427,7 @@ struct tofSpectra {
427427 // Filling DCA info with the TPC+TOF PID
428428 bool isDCAPureSample = (std::sqrt (nsigmaTOF * nsigmaTOF + nsigmaTPC * nsigmaTPC) < DcaMaxCombinedSigma);
429429 if (track.pt () <= DcaTrkPtCut) {
430- isDCAPureSample = (fabs (nsigmaTPC) < DcaMaxTPCSigma);
430+ isDCAPureSample = (std:: fabs (nsigmaTPC) < DcaMaxTPCSigma);
431431 }
432432 if (isDCAPureSample) {
433433 if (enableDCAxyzHistograms) {
@@ -757,7 +757,7 @@ struct tofSpectra {
757757 }
758758
759759 } // end of the process function
760- PROCESS_SWITCH (tofSpectra , processStandard, " Standard data processor" , true );
760+ PROCESS_SWITCH (SpectraTOF , processStandard, " Standard data processor" , true );
761761
762762 template <typename CollisionType, bool isMC = false >
763763 float getMultiplicity (const CollisionType& collision)
@@ -1146,16 +1146,11 @@ struct tofSpectra {
11461146 }
11471147 const auto & mcCollision = collision.mcCollision_as <GenMCCollisions>();
11481148 const auto & particlesInCollision = mcParticles.sliceByCached (aod::mcparticle::mcCollisionId, mcCollision.globalIndex (), cache);
1149- if (evselOptions.cfgINELCut .value == 1 ) {
1149+ if (evselOptions.cfgINELCut .value == EvSelInelGt0Cut ) {
11501150 if (!o2::pwglf::isINELgt0mc (particlesInCollision, pdgDB)) {
11511151 continue ;
11521152 }
11531153 }
1154- if (evselOptions.cfgINELCut .value == 2 ) {
1155- if (!o2::pwglf::isINELgt1mc (particlesInCollision, pdgDB)) {
1156- continue ;
1157- }
1158- }
11591154
11601155 if (isEventSelected<false , false >(collision)) {
11611156 histos.fill (HIST (" MC/MultiplicityRecoEv" ), getMultiplicityMC (mcCollision));
@@ -1205,8 +1200,8 @@ struct tofSpectra {
12051200 }
12061201 }
12071202 }
1208- PROCESS_SWITCH (tofSpectra , processMC, " Process MC" , false );
1203+ PROCESS_SWITCH (SpectraTOF , processMC, " Process MC" , false );
12091204
12101205}; // end of spectra task
12111206
1212- WorkflowSpec defineDataProcessing (ConfigContext const & cfgc) { return WorkflowSpec{adaptAnalysisTask<tofSpectra >(cfgc)}; }
1207+ WorkflowSpec defineDataProcessing (ConfigContext const & cfgc) { return WorkflowSpec{adaptAnalysisTask<SpectraTOF >(cfgc)}; }
0 commit comments