@@ -73,6 +73,7 @@ struct hJetAnalysis {
7373
7474 HistogramRegistry registry{" registry" ,
7575 {{" hNtrig" , " number of triggers;trigger type;entries" , {HistType::kTH1F , {{2 , 0 , 2 }}}},
76+ {" hZvtxSelected" , " Z vertex position;Z_{vtx};entries" , {HistType::kTH1F , {{80 , -20 , 20 }}}},
7677 {" hPtTrack" , " Track p_{T};p_{T};entries" , {HistType::kTH1F , {{200 , 0 , 200 }}}},
7778 {" hEtaTrack" , " Track #eta;#eta;entries" , {HistType::kTH1F , {{100 , -1.0 , 1.0 }}}},
7879 {" hPhiTrack" , " Track #phi;#phi;entries" , {HistType::kTH1F , {{160 , -1.0 , 7.0 }}}},
@@ -429,6 +430,7 @@ struct hJetAnalysis {
429430 if (!jetderiveddatautilities::selectCollision (collision, eventSelection)) {
430431 return ;
431432 }
433+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ ());
432434 fillHistograms (jets, jetsWTA, tracks);
433435 }
434436 PROCESS_SWITCH (hJetAnalysis, processData, " process data" , true );
@@ -441,6 +443,7 @@ struct hJetAnalysis {
441443 if (!jetderiveddatautilities::selectCollision (collision, eventSelection)) {
442444 return ;
443445 }
446+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ ());
444447 fillHistograms (jets, jetsWTA, tracks);
445448 }
446449 PROCESS_SWITCH (hJetAnalysis, processMCD, " process MC detector level" , false );
@@ -453,6 +456,7 @@ struct hJetAnalysis {
453456 if (!jetderiveddatautilities::selectCollision (collision, eventSelection)) {
454457 return ;
455458 }
459+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ (), collision.mcCollision ().weight ());
456460 fillHistograms (jets, jetsWTA, tracks, collision.mcCollision ().weight ());
457461 }
458462 PROCESS_SWITCH (hJetAnalysis, processMCDWeighted, " process MC detector level with event weights" , false );
@@ -462,9 +466,10 @@ struct hJetAnalysis {
462466 soa::Filtered<soa::Join<aod::Charged1MCParticleLevelJets, aod::Charged1MCParticleLevelJetConstituents, aod::Charged1MCParticleLevelJetsMatchedToChargedMCParticleLevelJets>> const & jetsWTA,
463467 JetParticles const & particles)
464468 {
465- if (collision.posZ () < vertexZCut) { // For some reason declaring a filter doesnt work
469+ if (std::abs ( collision.posZ ()) > vertexZCut) {
466470 return ;
467471 }
472+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ ());
468473 fillMCPHistograms (jets, jetsWTA, particles);
469474 }
470475 PROCESS_SWITCH (hJetAnalysis, processMCP, " process MC particle level" , false );
@@ -474,9 +479,10 @@ struct hJetAnalysis {
474479 soa::Filtered<soa::Join<aod::Charged1MCParticleLevelJets, aod::Charged1MCParticleLevelJetConstituents, aod::Charged1MCParticleLevelJetsMatchedToChargedMCParticleLevelJets>> const & jetsWTA,
475480 JetParticles const & particles)
476481 {
477- if (collision.posZ () < vertexZCut) {
482+ if (std::abs ( collision.posZ ()) > vertexZCut) {
478483 return ;
479484 }
485+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ (), collision.weight ());
480486 fillMCPHistograms (jets, jetsWTA, particles, collision.weight ());
481487 }
482488 PROCESS_SWITCH (hJetAnalysis, processMCPWeighted, " process MC particle level with event weights" , false );
@@ -493,6 +499,7 @@ struct hJetAnalysis {
493499 if (!jetderiveddatautilities::selectCollision (collision, eventSelection)) {
494500 return ;
495501 }
502+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ ());
496503 const auto & mcpjetsWTACut = mcpjetsWTA.sliceBy (PartJetsPerCollision, collision.mcCollisionId ());
497504 for (const auto & mcdjet : mcdjets) {
498505 fillMatchedHistograms (mcdjet, mcdjetsWTA, mcpjetsWTACut, mcpjets);
@@ -512,6 +519,7 @@ struct hJetAnalysis {
512519 if (!jetderiveddatautilities::selectCollision (collision, eventSelection)) {
513520 return ;
514521 }
522+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ ());
515523 const auto & mcpjetsWTACut = mcpjetsWTA.sliceBy (PartJetsPerCollision, collision.mcCollisionId ());
516524 for (const auto & mcdjet : mcdjets) {
517525 fillMatchedHistograms (mcdjet, mcdjetsWTA, mcpjetsWTACut, mcpjets, mcdjet.eventWeight ());
@@ -531,6 +539,7 @@ struct hJetAnalysis {
531539 if (!jetderiveddatautilities::selectCollision (collision, eventSelection)) {
532540 return ;
533541 }
542+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ ());
534543 const auto & mcpjetsWTACut = mcpjetsWTA.sliceBy (PartJetsPerCollision, collision.mcCollisionId ());
535544 bool ishJetEvent = false ;
536545 for (auto & track : tracks) {
@@ -559,6 +568,7 @@ struct hJetAnalysis {
559568 if (!jetderiveddatautilities::selectCollision (collision, eventSelection)) {
560569 return ;
561570 }
571+ registry.fill (HIST (" hZvtxSelected" ), collision.posZ ());
562572 const auto & mcpjetsWTACut = mcpjetsWTA.sliceBy (PartJetsPerCollision, collision.mcCollisionId ());
563573 bool ishJetEvent = false ;
564574 for (auto & track : tracks) {
0 commit comments