Skip to content

Commit 45139ed

Browse files
Changed name convention to hf instead of D0, removed chosenHadron not used variable
1 parent 39cb717 commit 45139ed

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

PWGJE/Tasks/hfFragmentationFunction.cxx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ struct HfFragmentationFunction {
192192

193193
Configurable<float> vertexZCut{"vertexZCut", 10.0f, "Accepted z-vertex range"};
194194
Configurable<std::string> eventSelections{"eventSelections", "sel8", "choose event selection"};
195-
Configurable<std::string> chosenHadron{"chosenHadron", "D0", "choose hadron for analysis: D0 or Lc"};
196195

197196
std::vector<int> eventSelectionBits;
198197

@@ -218,15 +217,15 @@ struct HfFragmentationFunction {
218217
jetCounter->GetXaxis()->SetBinLabel(5, "mcd matched to mcp loop");
219218
jetCounter->GetXaxis()->SetBinLabel(6, "mcp matched to mcd loop");
220219
// D0 candidate histograms from data
221-
registry.add("h_d0_jet_projection", ";z^{D^{0},jet}_{||};dN/dz^{D^{0},jet}_{||}", {HistType::kTH1F, {{1000, 0., 10.}}});
222-
registry.add("h_d0_jet_distance_vs_projection", ";#DeltaR_{D^{0},jet};z^{D^{0},jet}_{||}", {HistType::kTH2F, {{1000, 0., 10.}, {1000, 0., 10.}}});
223-
registry.add("h_d0_jet_distance", ";#DeltaR_{D^{0},jet};dN/d(#DeltaR)", {HistType::kTH1F, {{1000, 0., 10.}}});
224-
registry.add("h_d0_jet_pt", ";p_{T,D^{0} jet};dN/dp_{T,D^{0} jet}", {HistType::kTH1F, {{200, 0., 10.}}});
225-
registry.add("h_d0_jet_eta", ";#eta_{T,D^{0} jet};dN/d#eta_{D^{0} jet}", {HistType::kTH1F, {{250, -5., 5.}}});
226-
registry.add("h_d0_jet_phi", ";#phi_{T,D^{0} jet};dN/d#phi_{D^{0} jet}", {HistType::kTH1F, {{250, -10., 10.}}});
227-
registry.add("h_d0_mass", ";m_{D^{0}} (GeV/c^{2});dN/dm_{D^{0}}", {HistType::kTH1F, {{1000, 0., 10.}}});
228-
registry.add("h_d0_eta", ";#eta_{D^{0}} (GeV/c^{2});dN/d#eta_{D^{0}}", {HistType::kTH1F, {{250, -5., 5.}}});
229-
registry.add("h_d0_phi", ";#phi_{D^{0}} (GeV/c^{2});dN/d#phi_{D^{0}}", {HistType::kTH1F, {{250, -10., 10.}}});
220+
registry.add("h_hf_jet_projection", ";z^{HF,jet}_{||};dN/dz^{HF,jet}_{||}", {HistType::kTH1F, {{1000, 0., 10.}}});
221+
registry.add("h_hf_jet_distance_vs_projection", ";#DeltaR_{HF,jet};z^{HF,jet}_{||}", {HistType::kTH2F, {{1000, 0., 10.}, {1000, 0., 10.}}});
222+
registry.add("h_hf_jet_distance", ";#DeltaR_{HF,jet};dN/d(#DeltaR)", {HistType::kTH1F, {{1000, 0., 10.}}});
223+
registry.add("h_hf_jet_pt", ";p_{T,HF jet};dN/dp_{T,HF jet}", {HistType::kTH1F, {{200, 0., 10.}}});
224+
registry.add("h_hf_jet_eta", ";#eta_{T,HF jet};dN/d#eta_{HF jet}", {HistType::kTH1F, {{250, -5., 5.}}});
225+
registry.add("h_hf_jet_phi", ";#phi_{T,HF jet};dN/d#phi_{HF jet}", {HistType::kTH1F, {{250, -10., 10.}}});
226+
registry.add("h_hf_mass", ";m_{HF} (GeV/c^{2});dN/dm_{HF}", {HistType::kTH1F, {{1000, 0., 10.}}});
227+
registry.add("h_hf_eta", ";#eta_{HF} (GeV/c^{2});dN/d#eta_{HF}", {HistType::kTH1F, {{250, -5., 5.}}});
228+
registry.add("h_hf_phi", ";#phi_{HF} (GeV/c^{2});dN/d#phi_{HF}", {HistType::kTH1F, {{250, -10., 10.}}});
230229
}
231230

232231
void processDummy(aod::TracksIU const&) {}
@@ -263,15 +262,15 @@ struct HfFragmentationFunction {
263262
double axisDistance = jetutilities::deltaR(jet, candidate);
264263

265264
// filling histograms
266-
registry.fill(HIST("h_d0_jet_projection"), zParallel);
267-
registry.fill(HIST("h_d0_jet_distance_vs_projection"), axisDistance, zParallel);
268-
registry.fill(HIST("h_d0_jet_distance"), axisDistance);
269-
registry.fill(HIST("h_d0_jet_pt"), jet.pt());
270-
registry.fill(HIST("h_d0_jet_eta"), jet.eta());
271-
registry.fill(HIST("h_d0_jet_phi"), jet.phi());
272-
registry.fill(HIST("h_d0_mass"), candidate.m());
273-
registry.fill(HIST("h_d0_eta"), candidate.eta());
274-
registry.fill(HIST("h_d0_phi"), candidate.phi());
265+
registry.fill(HIST("h_hf_jet_projection"), zParallel);
266+
registry.fill(HIST("h_hf_jet_distance_vs_projection"), axisDistance, zParallel);
267+
registry.fill(HIST("h_hf_jet_distance"), axisDistance);
268+
registry.fill(HIST("h_hf_jet_pt"), jet.pt());
269+
registry.fill(HIST("h_hf_jet_eta"), jet.eta());
270+
registry.fill(HIST("h_hf_jet_phi"), jet.phi());
271+
registry.fill(HIST("h_hf_mass"), candidate.m());
272+
registry.fill(HIST("h_hf_eta"), candidate.eta());
273+
registry.fill(HIST("h_hf_phi"), candidate.phi());
275274

276275
// filling table
277276
distJetTable(axisDistance,
@@ -284,21 +283,21 @@ struct HfFragmentationFunction {
284283
} // end of jets loop
285284

286285
} // end of process function
287-
void processD0DataChargedSubstructure(aod::JetCollision const& collision,
286+
void processD0DataCharged(aod::JetCollision const& collision,
288287
soa::Join<aod::D0ChargedJets, aod::D0ChargedJetConstituents> const& jets,
289288
aod::CandidatesD0Data const& candidates,
290289
aod::JetTracks const& jettracks) {
291290
analyzeData<soa::Join<aod::D0ChargedJets, aod::D0ChargedJetConstituents>, aod::CandidatesD0Data>(collision, jets, candidates, jettracks);
292291
}
293-
PROCESS_SWITCH(HfFragmentationFunction, processD0DataChargedSubstructure, "charged D0 jet subtructure", false);
292+
PROCESS_SWITCH(HfFragmentationFunction, processD0DataCharged, "Store kinematic charged D0 jet information from measured DATA", false);
294293

295-
void processLcDataChargedSubstructure(aod::JetCollision const& collision,
294+
void processLcDataCharged(aod::JetCollision const& collision,
296295
soa::Join<aod::LcChargedJets, aod::LcChargedJetConstituents> const& jets,
297296
aod::CandidatesLcData const& candidates,
298297
aod::JetTracks const& jettracks) {
299298
analyzeData<soa::Join<aod::LcChargedJets, aod::LcChargedJetConstituents>, aod::CandidatesLcData>(collision, jets, candidates, jettracks);
300299
}
301-
PROCESS_SWITCH(HfFragmentationFunction, processLcDataChargedSubstructure, "charged Lc jet subtructure", false);
300+
PROCESS_SWITCH(HfFragmentationFunction, processLcDataCharged, "Store kinematic charged Lc jet information from measured DATA", false);
302301

303302
void processMcEfficiency(aod::JetMcCollisions const& mccollisions,
304303
aod::JetCollisionsMCD const& collisions,
@@ -470,6 +469,7 @@ struct HfFragmentationFunction {
470469
}
471470
}
472471
PROCESS_SWITCH(HfFragmentationFunction, processMcChargedMatched, "matched MC HF and jets", false);
472+
473473
};
474474

475475
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)