@@ -357,7 +357,6 @@ struct Kstarqa {
357357 hInvMass.add (" MCcorrections/hSignalLossNumerator" , " Kstar generated after event selection" , kTH2F , {{ptAxis}, {multiplicityAxis}});
358358 hInvMass.add (" MCcorrections/hImpactParameterRec" , " Impact parameter in reconstructed MC" , kTH1F , {impactParAxis});
359359 hInvMass.add (" MCcorrections/MultiplicityRec" , " Multiplicity in generated MC with at least 1 reconstruction" , kTH1F , {multiplicityAxis});
360- hInvMass.add (" MCcorrections/MultiplicityRec2" , " Multiplicity in reconstructed MC" , kTH1F , {multiplicityAxis});
361360 hInvMass.add (" MCcorrections/hImpactParameterGen" , " Impact parameter in generated MC" , kTH1F , {impactParAxis});
362361 hInvMass.add (" MCcorrections/MultiplicityGen" , " Multiplicity in generated MC" , kTH1F , {multiplicityAxis});
363362 hInvMass.add (" MCcorrections/hImpactParametervsMultiplicity" , " Impact parameter vs multiplicity in reconstructed MC" , kTH2F , {{impactParAxis}, {multiplicityAxis}});
@@ -385,10 +384,10 @@ struct Kstarqa {
385384
386385 hInvMass.add (" CorrFactors/h2dGenKstar" , " Centrality vs p_{T}" , kTH2D , {{101 , 0 .0f , 101 .0f }, ptAxis});
387386 hInvMass.add (" CorrFactors/h3dGenKstarVsMultMCVsMultiplicity" , " MC centrality vs centrality vs p_{T}" , kTH3D , {axisNch, {101 , 0 .0f , 101 .0f }, ptAxis});
388- hInvMass.add (" CorrFactors/hSignalLossDenominator3D " , " Kstar generated before event selection" , kTH3F , {{ptAxis}, {multiplicityAxis}, axisNch});
389- hInvMass.add (" CorrFactors/hSignalLossNumerator3D " , " Kstar generated after event selection" , kTH3F , {{ptAxis}, {multiplicityAxis}, axisNch});
390- hInvMass.add (" CorrFactors/MultiplicityRec2D " , " Multiplicity in generated MC with at least 1 reconstruction" , kTH2F , {{multiplicityAxis}, axisNch});
391- hInvMass.add (" CorrFactors/MultiplicityGen2D " , " Multiplicity in generated MC" , kTH2F , {{multiplicityAxis}, axisNch});
387+ hInvMass.add (" CorrFactors/hSignalLossDenominator " , " Kstar generated before event selection" , kTH2F , {{ptAxis}, {axisNch} });
388+ hInvMass.add (" CorrFactors/hSignalLossNumerator " , " Kstar generated after event selection" , kTH2F , {{ptAxis}, {axisNch} });
389+ hInvMass.add (" CorrFactors/MultiplicityRec " , " Multiplicity in generated MC with at least 1 reconstruction" , kTH1F , {axisNch});
390+ hInvMass.add (" CorrFactors/MultiplicityGen " , " Multiplicity in generated MC" , kTH1F , {axisNch});
392391 }
393392
394393 rEventSelection.add (" tracksCheckData" , " No. of events in the data" , kTH1I , {{10 , 0 , 10 }});
@@ -1743,7 +1742,6 @@ struct Kstarqa {
17431742 if (isSelectedEvent) {
17441743 hInvMass.fill (HIST (" MCcorrections/hImpactParameterRec" ), impactPar);
17451744 hInvMass.fill (HIST (" MCcorrections/MultiplicityRec" ), multiplicityGen);
1746- hInvMass.fill (HIST (" MCcorrections/MultiplicityRec2" ), multiplicityRec);
17471745 hInvMass.fill (HIST (" MCcorrections/hImpactParametervsMultiplicity" ), impactPar, multiplicity1);
17481746 }
17491747
@@ -1762,19 +1760,21 @@ struct Kstarqa {
17621760
17631761 void processEvSigLossFactors (McCollisionMults::iterator const & mcCollision, soa::SmallGroups<EventCandidatesMC> const & collisions, LabeledTracks const &, aod::McParticles const & mcParticles)
17641762 {
1765- hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), mcCollision.multMCNParticlesEta08 (), 0.5 );
1763+ auto multiplicityNch = -1 ;
1764+ multiplicityNch = mcCollision.multMCNParticlesEta05 ();
1765+ hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), multiplicityNch, 0.5 );
17661766
1767- if (std::abs (mcCollision.posZ ()) > selectionConfig.cutzvertex )
1767+ if (selectionConfig. checkVzEvSigLoss && std::abs (mcCollision.posZ ()) > selectionConfig.cutzvertex )
17681768 return ;
17691769
1770- hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), mcCollision. multMCNParticlesEta08 () , 1.5 );
1770+ hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), multiplicityNch , 1.5 );
17711771
17721772 if (selectionConfig.isINELgt0 && !mcCollision.isInelGt0 ()) {
17731773 return ;
17741774 }
1775- hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), mcCollision. multMCNParticlesEta08 () , 2.5 );
1775+ hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), multiplicityNch , 2.5 );
17761776
1777- float multiplicity = 100 . 5f ;
1777+ float multiplicity = - 1.0 ;
17781778 bool isSelectedEvent = false ;
17791779
17801780 for (auto const & collision : collisions) {
@@ -1800,11 +1800,11 @@ struct Kstarqa {
18001800 // auto multiplicityGen = -1;
18011801 // multiplicityGen = mcCollision.centFT0M();
18021802
1803- hInvMass.fill (HIST (" CorrFactors/hMultiplicityVsMultMC" ), multiplicity, mcCollision. multMCNParticlesEta08 () );
1803+ hInvMass.fill (HIST (" CorrFactors/hMultiplicityVsMultMC" ), multiplicity, multiplicityNch );
18041804 hInvMass.fill (HIST (" CorrFactors/hNrecInGen" ), collisions.size ());
1805- hInvMass.fill (HIST (" CorrFactors/MultiplicityGen2D " ), multiplicity, mcCollision. multMCNParticlesEta08 () );
1805+ hInvMass.fill (HIST (" CorrFactors/MultiplicityGen " ), multiplicityNch );
18061806 if (isSelectedEvent) {
1807- hInvMass.fill (HIST (" CorrFactors/MultiplicityRec2D " ), multiplicity, mcCollision. multMCNParticlesEta08 () );
1807+ hInvMass.fill (HIST (" CorrFactors/MultiplicityRec " ), multiplicityNch );
18081808 }
18091809
18101810 for (const auto & mcParticle : mcParticles) {
@@ -1850,10 +1850,10 @@ struct Kstarqa {
18501850 mother = daughter1 + daughter2; // Kstar meson
18511851
18521852 hInvMass.fill (HIST (" CorrFactors/h2dGenKstar" ), multiplicity, mother.Pt ());
1853- hInvMass.fill (HIST (" CorrFactors/h3dGenKstarVsMultMCVsMultiplicity" ), mcCollision. multMCNParticlesEta08 () , multiplicity, mother.Pt ());
1854- hInvMass.fill (HIST (" CorrFactors/hSignalLossDenominator3D " ), mother.pt (), multiplicity, mcCollision. multMCNParticlesEta08 () );
1853+ hInvMass.fill (HIST (" CorrFactors/h3dGenKstarVsMultMCVsMultiplicity" ), multiplicityNch , multiplicity, mother.Pt ());
1854+ hInvMass.fill (HIST (" CorrFactors/hSignalLossDenominator " ), mother.pt (), multiplicityNch );
18551855 if (isSelectedEvent) {
1856- hInvMass.fill (HIST (" CorrFactors/hSignalLossNumerator3D " ), mother.pt (), multiplicity, mcCollision. multMCNParticlesEta08 () );
1856+ hInvMass.fill (HIST (" CorrFactors/hSignalLossNumerator " ), mother.pt (), multiplicityNch );
18571857 }
18581858 }
18591859 }
@@ -1862,7 +1862,7 @@ struct Kstarqa {
18621862 if (collisions.size () == 0 )
18631863 return ;
18641864
1865- hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), mcCollision. multMCNParticlesEta08 () , 3.5 );
1865+ hInvMass.fill (HIST (" CorrFactors/hGenEvents" ), multiplicityNch , 3.5 );
18661866 }
18671867 PROCESS_SWITCH (Kstarqa, processEvSigLossFactors, " Process Event and Signal loss" , false );
18681868
@@ -2171,7 +2171,7 @@ struct Kstarqa {
21712171 hInvMass.fill (HIST (" hAllRecCollisions" ), multiplicity);
21722172 hInvMass.fill (HIST (" hAllRecCollisionsCalib" ), multiplicityRec);
21732173
2174- if (!selectionEvent (collision, false )) { // don't fill event cut histogram
2174+ if (!selectionEvent (collision, true )) { // don't fill event cut histogram
21752175 return ;
21762176 }
21772177
@@ -3079,15 +3079,13 @@ struct Kstarqa {
30793079 } else {
30803080 multiplicity1 = RecCollision.centFT0M (); // default
30813081 }
3082-
30833082 isSelectedEvent = true ;
30843083 }
30853084
30863085 // Event loss
30873086 if (isSelectedEvent) {
30883087 hInvMass.fill (HIST (" MCcorrections/hImpactParameterRec" ), impactPar);
30893088 hInvMass.fill (HIST (" MCcorrections/MultiplicityRec" ), multiplicityGen);
3090- hInvMass.fill (HIST (" MCcorrections/MultiplicityRec2" ), multiplicityRec);
30913089 hInvMass.fill (HIST (" MCcorrections/hImpactParametervsMultiplicity" ), impactPar, multiplicity1);
30923090 }
30933091
0 commit comments