1313// / \brief Analysis task for the Phi and K0S rapidity correlations analysis
1414// / \author Stefano Cannito (stefano.cannito@cern.ch)
1515
16- #include < cmath>
1716#include < cstdlib>
17+
18+ #include < cmath>
1819#include < array>
1920#include < vector>
2021#include < algorithm>
@@ -1071,7 +1072,7 @@ struct Phik0shortanalysis {
10711072 if (!selectionPion<true , false >(track, true ))
10721073 continue ;
10731074
1074- dataPhiPionHist .fill (HIST (" h3PiRapidityData" ), multiplicity, track.pt (), track.rapidity (massPi));
1075+ dataPionHist .fill (HIST (" h3PiRapidityData" ), multiplicity, track.pt (), track.rapidity (massPi));
10751076
10761077 if (std::abs (track.rapidity (massPi)) > cfgYAcceptance)
10771078 continue ;
@@ -1339,7 +1340,7 @@ struct Phik0shortanalysis {
13391340 if (std::abs (v0mcparticle.y ()) > cfgYAcceptance)
13401341 continue ;
13411342
1342- mcK0SHist.fill (HIST (" h3RecMCK0S" ), genmultiplicity, v0 .pt (), v0.mK0Short ());
1343+ mcK0SHist.fill (HIST (" h3RecMCK0S" ), genmultiplicity, v0mcparticle .pt (), v0.mK0Short ());
13431344
13441345 std::array<bool , 3 > isCountedMCPhi{false , false , false };
13451346
@@ -1350,19 +1351,19 @@ struct Phik0shortanalysis {
13501351 continue ;
13511352
13521353 if (!isCountedMCPhi.at (0 )) {
1353- mcPhiK0SHist.fill (HIST (" h3RecMCPhiK0SInc" ), genmultiplicity, v0 .pt (), v0.mK0Short ());
1354+ mcPhiK0SHist.fill (HIST (" h3RecMCPhiK0SInc" ), genmultiplicity, v0mcparticle .pt (), v0.mK0Short ());
13541355 isCountedMCPhi.at (0 ) = true ;
13551356 }
13561357 if (std::abs (v0mcparticle.y () - mcParticle.y ()) > cfgFCutOnDeltaY)
13571358 continue ;
13581359 if (!isCountedMCPhi.at (1 )) {
1359- mcPhiK0SHist.fill (HIST (" h3RecMCPhiK0SFCut" ), genmultiplicity, v0 .pt (), v0.mK0Short ());
1360+ mcPhiK0SHist.fill (HIST (" h3RecMCPhiK0SFCut" ), genmultiplicity, v0mcparticle .pt (), v0.mK0Short ());
13601361 isCountedMCPhi.at (1 ) = true ;
13611362 }
13621363 if (std::abs (v0mcparticle.y () - mcParticle.y ()) > cfgSCutOnDeltaY)
13631364 continue ;
13641365 if (!isCountedMCPhi.at (2 )) {
1365- mcPhiK0SHist.fill (HIST (" h3RecMCPhiK0SSCut" ), genmultiplicity, v0 .pt (), v0.mK0Short ());
1366+ mcPhiK0SHist.fill (HIST (" h3RecMCPhiK0SSCut" ), genmultiplicity, v0mcparticle .pt (), v0.mK0Short ());
13661367 isCountedMCPhi.at (2 ) = true ;
13671368 }
13681369 }
@@ -1420,7 +1421,7 @@ struct Phik0shortanalysis {
14201421
14211422 mcPionHist.fill (HIST (" h4PiRapiditySmearing" ), genmultiplicity, track.pt (), track.rapidity (massPi), mcTrack.y ());
14221423
1423- mcPionHist.fill (HIST (" h3RecMCPiTPC" ), genmultiplicity, track .pt (), track.tpcNSigmaPi ());
1424+ mcPionHist.fill (HIST (" h3RecMCPiTPC" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi ());
14241425
14251426 std::array<bool , 3 > isCountedMCPhi{false , false , false };
14261427
@@ -1431,27 +1432,27 @@ struct Phik0shortanalysis {
14311432 continue ;
14321433
14331434 if (!isCountedMCPhi.at (0 )) {
1434- mcPhiPionHist.fill (HIST (" h3RecMCPhiPiTPCInc" ), genmultiplicity, track .pt (), track.tpcNSigmaPi ());
1435+ mcPhiPionHist.fill (HIST (" h3RecMCPhiPiTPCInc" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi ());
14351436 isCountedMCPhi.at (0 ) = true ;
14361437 }
14371438 if (std::abs (mcTrack.y () - mcParticle.y ()) > cfgFCutOnDeltaY)
14381439 continue ;
14391440 if (!isCountedMCPhi.at (1 )) {
1440- mcPhiPionHist.fill (HIST (" h3RecMCPhiPiTPCFCut" ), genmultiplicity, track .pt (), track.tpcNSigmaPi ());
1441+ mcPhiPionHist.fill (HIST (" h3RecMCPhiPiTPCFCut" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi ());
14411442 isCountedMCPhi.at (1 ) = true ;
14421443 }
14431444 if (std::abs (mcTrack.y () - mcParticle.y ()) > cfgSCutOnDeltaY)
14441445 continue ;
14451446 if (!isCountedMCPhi.at (2 )) {
1446- mcPhiPionHist.fill (HIST (" h3RecMCPhiPiTPCSCut" ), genmultiplicity, track .pt (), track.tpcNSigmaPi ());
1447+ mcPhiPionHist.fill (HIST (" h3RecMCPhiPiTPCSCut" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi ());
14471448 isCountedMCPhi.at (2 ) = true ;
14481449 }
14491450 }
14501451
14511452 if (track.pt () >= 0.5 && !track.hasTOF ())
14521453 continue ;
14531454
1454- mcPionHist.fill (HIST (" h4RecMCPiTPCTOF" ), genmultiplicity, track .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
1455+ mcPionHist.fill (HIST (" h4RecMCPiTPCTOF" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
14551456
14561457 isCountedMCPhi = {false , false , false };
14571458
@@ -1462,19 +1463,19 @@ struct Phik0shortanalysis {
14621463 continue ;
14631464
14641465 if (!isCountedMCPhi.at (0 )) {
1465- mcPhiPionHist.fill (HIST (" h4RecMCPhiPiTPCTOFInc" ), genmultiplicity, track .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
1466+ mcPhiPionHist.fill (HIST (" h4RecMCPhiPiTPCTOFInc" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
14661467 isCountedMCPhi.at (0 ) = true ;
14671468 }
14681469 if (std::abs (mcTrack.y () - mcParticle.y ()) > cfgFCutOnDeltaY)
14691470 continue ;
14701471 if (!isCountedMCPhi.at (1 )) {
1471- mcPhiPionHist.fill (HIST (" h4RecMCPhiPiTPCTOFFCut" ), genmultiplicity, track .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
1472+ mcPhiPionHist.fill (HIST (" h4RecMCPhiPiTPCTOFFCut" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
14721473 isCountedMCPhi.at (1 ) = true ;
14731474 }
14741475 if (std::abs (mcTrack.y () - mcParticle.y ()) > cfgSCutOnDeltaY)
14751476 continue ;
14761477 if (!isCountedMCPhi.at (2 )) {
1477- mcPhiPionHist.fill (HIST (" h4RecMCPhiPiTPCTOFSCut" ), genmultiplicity, track .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
1478+ mcPhiPionHist.fill (HIST (" h4RecMCPhiPiTPCTOFSCut" ), genmultiplicity, mcTrack .pt (), track.tpcNSigmaPi (), track.tofNSigmaPi ());
14781479 isCountedMCPhi.at (2 ) = true ;
14791480 }
14801481 }
0 commit comments