@@ -61,18 +61,9 @@ struct JetHFFilterTask {
6161 Configurable<float > jetLcChR{" jetLcChR" , 0.6 , " jet resolution parameter for charged Lc jet for low pt trigger" };
6262
6363 Configurable<float > vertexZCut{" vertexZCut" , 10 .0f , " Accepted z-vertex range" };
64- Configurable<bool > fillTHns{" fillTHns" , true , " fill THn histograms" };
65-
66- Configurable<std::vector<double >> jetRadiiPlot{" jetRadiiPlot" , std::vector<double >{0.2 , 0.4 , 0.6 }, " jet resolution parameters" };
6764
6865 void init (o2::framework::InitContext&)
6966 {
70- auto jetRadiiPlotBins = (std::vector<double >)jetRadiiPlot;
71- if (jetRadiiPlotBins.size () > 1 ) {
72- jetRadiiPlotBins.push_back (jetRadiiPlotBins[jetRadiiPlotBins.size () - 1 ] + (TMath::Abs (jetRadiiPlotBins[jetRadiiPlotBins.size () - 1 ] - jetRadiiPlotBins[jetRadiiPlotBins.size () - 2 ])));
73- } else {
74- jetRadiiPlotBins.push_back (jetRadiiPlotBins[jetRadiiPlotBins.size () - 1 ] + 0.1 );
75- }
7667 registry.add (" h_d0jet_pt" , " D^{0} - tagged jet pT;#it{p}_{T,jet} (GeV/#it{c});entries" , {HistType::kTH1F , {{200 , 0 ., 200 .}}});
7768 registry.add (" h_d0jet_pt_lowpt" , " D^{0} - tagged jet pT;#it{p}_{T,jet} (GeV/#it{c});entries" , {HistType::kTH1F , {{200 , 0 ., 200 .}}});
7869 registry.add (" h_d0jet_pt_highpt" , " D^{0} - tagged jet pT;#it{p}_{T,jet} (GeV/#it{c});entries" , {HistType::kTH1F , {{200 , 0 ., 200 .}}});
@@ -81,58 +72,40 @@ struct JetHFFilterTask {
8172 registry.add (" h_lcjet_pt_lowpt" , " #Lambda^{+}_{c} - tagged jet pT;#it{p}_{T,jet} (GeV/#it{c});entries" , {HistType::kTH1F , {{200 , 0 ., 200 .}}});
8273 registry.add (" h_lcjet_pt_highpt" , " #Lambda^{+}_{c} - tagged jet pT;#it{p}_{T,jet} (GeV/#it{c});entries" , {HistType::kTH1F , {{200 , 0 ., 200 .}}});
8374
84- // these might end up being too big
85- registry.add (" d0Thn" , " Thn for D^{0}-tagged jets" , {HistType::kTHnC , {{jetRadiiPlotBins, " " }, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {200 , 0 ., 200 .}, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {100 , -1.0 , 1.0 }, {1700 , 1.3 , 3.0 }}});
86- registry.add (" d0Thn_witheventcuts" , " Thn for D^{0}-tagged jets with event cuts" , {HistType::kTHnC , {{jetRadiiPlotBins, " " }, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {200 , 0 ., 200 .}, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {100 , -1.0 , 1.0 }, {1700 , 1.3 , 3.0 }}});
87- registry.add (" lcThn" , " Thn for #Lambda^{+}_{c}-tagged jets" , {HistType::kTHnC , {{jetRadiiPlotBins, " " }, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {200 , 0 ., 200 .}, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {100 , -1.0 , 1.0 }, {1700 , 1.3 , 3.0 }}});
88- registry.add (" lcThn_witheventcuts" , " Thn for #Lambda^{+}_{c}-tagged jets with event cuts" , {HistType::kTHnC , {{jetRadiiPlotBins, " " }, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {200 , 0 ., 200 .}, {200 , 0 ., 200 .}, {100 , -1.0 , 1.0 }, {160 , -1.0 , 7 .}, {100 , -1.0 , 1.0 }, {1700 , 1.3 , 3.0 }}});
89- // radius, JetPt, JetEta, Jet Phi, Jet Ntracks, HF pT, HF Eta, HF Phi, HF Y, HF Mass
75+ registry.add (" h_collisions" , " Collision ;entries" , {HistType::kTH1F , {{5 , 0.0 , 5.0 }}});
9076 }
9177
9278 void processJets (soa::Join<JetCollisions, aod::EvSels>::iterator const & collision, soa::Join<o2::aod::D0ChargedJets, o2::aod::D0ChargedJetConstituents> const & d0Jets, CandidatesD0Data const & d0Candidates, soa::Join<o2::aod::LcChargedJets, o2::aod::LcChargedJetConstituents> const & lcJets, CandidatesLcData const & lcCandidates, JetTracks const & tracks)
9379 {
80+ registry.fill (HIST (" h_collisions" ), 0.5 );
9481 bool keepEvent[kAllObjects ]{false };
9582 for (auto const & d0Jet : d0Jets) {
96- if (fillTHns) {
97- for (auto const & d0Candidate : d0Jet.hfcandidates_as <CandidatesD0Data>()) {
98- registry.fill (HIST (" d0Thn" ), d0Jet.r () / 100.0 , d0Jet.pt (), d0Jet.eta (), d0Jet.phi (), d0Jet.tracksIds ().size () + d0Jet.hfcandidatesIds ().size (), d0Candidate.pt (), d0Candidate.eta (), d0Candidate.phi (), d0Candidate.y (), d0Candidate.m ());
99- if (collision.posZ () < vertexZCut && collision.sel8 () && collision.selection_bit (o2::aod::evsel::kNoTimeFrameBorder )) {
100- registry.fill (HIST (" d0Thn_witheventcuts" ), d0Jet.r () / 100.0 , d0Jet.pt (), d0Jet.eta (), d0Jet.phi (), d0Jet.tracksIds ().size () + d0Jet.hfcandidatesIds ().size (), d0Candidate.pt (), d0Candidate.eta (), d0Candidate.phi (), d0Candidate.y (), d0Candidate.m ());
101- }
102- break ;
103- }
104- }
10583 if (d0Jet.r () == round (jetD0ChR * 100 .0f )) {
10684 registry.fill (HIST (" h_d0jet_pt" ), d0Jet.pt ());
10785 if (d0Jet.pt () >= jetD0ChLowPtThreshold) {
10886 keepEvent[kJetD0ChLowPt ] = true ;
10987 registry.fill (HIST (" h_d0jet_pt_lowpt" ), d0Jet.pt ());
88+ registry.fill (HIST (" h_collisions" ), 1.5 );
11089 }
11190 if (d0Jet.pt () >= jetD0ChHighPtThreshold) {
11291 keepEvent[kJetD0ChHighPt ] = true ;
11392 registry.fill (HIST (" h_d0jet_pt_highpt" ), d0Jet.pt ());
93+ registry.fill (HIST (" h_collisions" ), 2.5 );
11494 }
11595 }
11696 }
11797 for (auto const & lcJet : lcJets) {
118- if (fillTHns) {
119- for (auto const & lcCandidate : lcJet.hfcandidates_as <CandidatesLcData>()) {
120- registry.fill (HIST (" lcThn" ), lcJet.r () / 100.0 , lcJet.pt (), lcJet.eta (), lcJet.phi (), lcJet.tracksIds ().size () + lcJet.hfcandidatesIds ().size (), lcCandidate.pt (), lcCandidate.eta (), lcCandidate.phi (), lcCandidate.y (), lcCandidate.m ());
121- if (collision.posZ () < vertexZCut && collision.sel8 () && collision.selection_bit (o2::aod::evsel::kNoTimeFrameBorder )) {
122- registry.fill (HIST (" lcThn_witheventcuts" ), lcJet.r () / 100.0 , lcJet.pt (), lcJet.eta (), lcJet.phi (), lcJet.tracksIds ().size () + lcJet.hfcandidatesIds ().size (), lcCandidate.pt (), lcCandidate.eta (), lcCandidate.phi (), lcCandidate.y (), lcCandidate.m ());
123- }
124- break ;
125- }
126- }
12798 if (lcJet.r () == round (jetLcChR * 100 .0f )) {
12899 registry.fill (HIST (" h_lcjet_pt" ), lcJet.pt ());
129100 if (lcJet.pt () >= jetLcChLowPtThreshold) {
130101 keepEvent[kJetLcChLowPt ] = true ;
131102 registry.fill (HIST (" h_lcjet_pt_lowpt" ), lcJet.pt ());
103+ registry.fill (HIST (" h_collisions" ), 3.5 );
132104 }
133105 if (lcJet.pt () >= jetLcChHighPtThreshold) {
134106 keepEvent[kJetLcChHighPt ] = true ;
135107 registry.fill (HIST (" h_lcjet_pt_highpt" ), lcJet.pt ());
108+ registry.fill (HIST (" h_collisions" ), 4.5 );
136109 }
137110 }
138111 }
0 commit comments