@@ -240,6 +240,9 @@ struct LfTaskLambdaSpinCorr {
240240 // STAR method
241241 double cosThetaDiff = proton1LambdaRF.Vect ().Unit ().Dot (proton2LambdaRF.Vect ().Unit ());
242242
243+ auto lowptcut = 0.5 ;
244+ auto highptcut = 10.0 ;
245+
243246 if (datatype == 1 ) {
244247 if (tag1 && tag3)
245248 histos.fill (HIST (" hSparseLambdaLambdaMC" ), particle1.M (), particle2.M (), cosThetaDiff, centrality, particlepair.M ());
@@ -248,7 +251,7 @@ struct LfTaskLambdaSpinCorr {
248251 if (tag2 && tag4)
249252 histos.fill (HIST (" hSparseAntiLambdaAntiLambdaMC" ), particle1.M (), particle2.M (), cosThetaDiff, centrality, particlepair.M ());
250253 } else {
251- if (particle1.Pt () > 0.5 && particle1.Pt () < 10.0 && particle2.Pt () > 0.5 && particle2.Pt () < 10.0 ) {
254+ if (particle1.Pt () > lowptcut && particle1.Pt () < highptcut && particle2.Pt () > lowptcut && particle2.Pt () < highptcut ) {
252255 if (tag1 && tag3)
253256 histos.fill (HIST (" hSparseLambdaLambda" ), particle1.M (), particle2.M (), cosThetaDiff, centrality, particlepair.M ());
254257 if (tag1 && tag4)
@@ -479,7 +482,7 @@ struct LfTaskLambdaSpinCorr {
479482 void processMC (CollisionMCTrueTable::iterator const & /* TrueCollision*/ , CollisionMCRecTableCentFT0C const & RecCollisions, TrackMCTrueTable const & GenParticles, FilTrackMCRecTable const & /* RecTracks*/ , V0TrackCandidatesMC const & V0s)
480483 {
481484
482- for (auto & RecCollision : RecCollisions) {
485+ for (const auto & RecCollision : RecCollisions) {
483486 if (!RecCollision.sel8 ()) {
484487 continue ;
485488 }
@@ -488,7 +491,7 @@ struct LfTaskLambdaSpinCorr {
488491 continue ;
489492 }
490493
491- if (TMath::Abs (RecCollision.posZ ()) > cfgCutVertex) {
494+ if (std::abs (RecCollision.posZ ()) > cfgCutVertex) {
492495 continue ;
493496 }
494497
@@ -586,8 +589,8 @@ struct LfTaskLambdaSpinCorr {
586589 }
587590
588591 // *******generated****************
589- for (auto & mcParticle : GenParticles) {
590- if (TMath::Abs (mcParticle.y ()) > confV0Rap) {
592+ for (const auto & mcParticle : GenParticles) {
593+ if (std::abs (mcParticle.y ()) > confV0Rap) {
591594 continue ;
592595 }
593596 if (std::abs (mcParticle.pdgCode ()) != PDG_t::kLambda0 ) {
@@ -606,7 +609,7 @@ struct LfTaskLambdaSpinCorr {
606609 continue ;
607610 }
608611
609- for (auto kCurrentDaughter : kDaughters ) {
612+ for (const auto & kCurrentDaughter : kDaughters ) {
610613
611614 if (std::abs (kCurrentDaughter .pdgCode ()) != PDG_t::kProton && std::abs (kCurrentDaughter .pdgCode ()) != PDG_t::kPiPlus ) {
612615 continue ;
@@ -636,8 +639,8 @@ struct LfTaskLambdaSpinCorr {
636639 antiLambdadummymc = antiProtonmc + pionmc;
637640 }
638641
639- for (auto & mcParticle2 : GenParticles) {
640- if (TMath::Abs (mcParticle2.y ()) > confV0Rap) {
642+ for (const auto & mcParticle2 : GenParticles) {
643+ if (std::abs (mcParticle2.y ()) > confV0Rap) {
641644 continue ;
642645 }
643646 if (std::abs (mcParticle2.pdgCode ()) != PDG_t::kLambda0 ) {
@@ -654,7 +657,7 @@ struct LfTaskLambdaSpinCorr {
654657 continue ;
655658 }
656659
657- for (auto kCurrentDaughter2 : kDaughters2 ) {
660+ for (const auto & kCurrentDaughter2 : kDaughters2 ) {
658661 if (std::abs (kCurrentDaughter2 .pdgCode ()) != PDG_t::kProton && std::abs (kCurrentDaughter2 .pdgCode ()) != PDG_t::kPiPlus ) {
659662 continue ;
660663 }
0 commit comments