Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion PWGJE/Tasks/dijetFinderQA.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
{
eventSelection = jetderiveddatautilities::initialiseEventSelectionBits(static_cast<std::string>(eventSelections));
trackSelection = jetderiveddatautilities::initialiseTrackSelection(static_cast<std::string>(trackSelections));
// Add histogram for event counts

auto dijetMassTemp = 0.0;
while (dijetMassTemp <= 2 * jetPtMax) {
Expand All @@ -85,17 +86,21 @@
}

AxisSpec dijetMassAxis = {dijetMassBins, "M_{jj} (GeV/#it{c}^2)"};
AxisSpec eventCountAxis = {{0.5, 1.5}, "events"};

if (doprocessDijetMCP) {
registry.add("h_part_dijet_mass", "Dijet invariant mass;;entries", {HistType::kTH1F, {dijetMassAxis}});
registry.add("hColCounterFinal_MCP", "Event count;;entries", {HistType::kTH1F, {eventCountAxis}});
}

if (doprocessDijetMCD) {
registry.add("h_detec_dijet_mass", "Dijet invariant mass;;entries", {HistType::kTH1F, {dijetMassAxis}});
registry.add("hColCounterFinal_MCD", "Event count;;entries", {HistType::kTH1F, {eventCountAxis}});
}

if (doprocessDijetData) {
registry.add("h_data_dijet_mass", "Dijet invariant mass;;entries", {HistType::kTH1F, {dijetMassAxis}});
registry.add("hColCounterFinal_Data", "Event count;;entries", {HistType::kTH1F, {eventCountAxis}});
}

if (doprocessDijetMCMatched) {
Expand Down Expand Up @@ -175,8 +180,18 @@
}
PROCESS_SWITCH(DijetFinderQATask, processDummy, "dummy", false);

void processDijetMCP(soa::Filtered<aod::JetMcCollisions>::iterator const&, soa::Filtered<aod::ChargedMCParticleLevelJets> const& jets)
void processDijetMCP(soa::Filtered<aod::JetMcCollisions>::iterator const&, soa::Filtered<aod::ChargedMCParticleLevelJets> const& jets, soa::SmallGroups<aod::JetCollisionsMCD> const& collisions)
{
if (collisions.size() == 0) {
return;
}
for (auto& collision : collisions) {
if (fabs(collision.posZ()) > vertexZCut || !jetderiveddatautilities::selectCollision(collision, eventSelection))

Check failure on line 189 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
return;
}

registry.fill(HIST("hColCounterFinal_MCP"), 1);

std::vector<std::array<double, 3>> jetPtcuts;
for (auto& jet : jets) {
jetPtcuts.push_back({jet.pt(), jet.eta(), jet.phi()});
Expand All @@ -188,14 +203,14 @@

for (size_t i = 1; i < jetPtcuts.size() && !found_pair; i++) {
auto& candidate_jet = jetPtcuts[i];
Double_t dphi = fabs(leading_jet[2] - candidate_jet[2]);

Check failure on line 206 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
Double_t deta = fabs(leading_jet[1] - candidate_jet[1]);

Check failure on line 207 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
Double_t condition = fabs(dphi - M_PI);

Check failure on line 208 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

if (condition < setPhiCut * M_PI) {
Double_t pt1 = leading_jet[0];
Double_t pt2 = candidate_jet[0];
Double_t dijet_mass = sqrt(2 * pt1 * pt2 * (cosh(deta) - cos(dphi)));

Check failure on line 213 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
fillMassHistogramsMCP(dijet_mass);
found_pair = true;
}
Expand All @@ -209,6 +224,9 @@
if (!jetderiveddatautilities::selectCollision(collision, eventSelection)) {
return;
}

registry.fill(HIST("hColCounterFinal_MCD"), 1);

std::vector<std::array<double, 3>> jetPtcuts;
for (auto& jet : jets) {
jetPtcuts.push_back({jet.pt(), jet.eta(), jet.phi()});
Expand All @@ -220,14 +238,14 @@

for (size_t i = 1; i < jetPtcuts.size() && !found_pair; i++) {
auto& candidate_jet = jetPtcuts[i];
Double_t dphi = fabs(leading_jet[2] - candidate_jet[2]);

Check failure on line 241 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
Double_t deta = fabs(leading_jet[1] - candidate_jet[1]);

Check failure on line 242 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
Double_t condition = fabs(dphi - M_PI);

Check failure on line 243 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

if (condition < setPhiCut * M_PI) {
Double_t pt1 = leading_jet[0];
Double_t pt2 = candidate_jet[0];
Double_t dijet_mass = sqrt(2 * pt1 * pt2 * (cosh(deta) - cos(dphi)));

Check failure on line 248 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
fillMassHistogramsMCD(dijet_mass);
found_pair = true;
}
Expand All @@ -242,6 +260,9 @@
return;
}

// Fill event count histogram
registry.fill(HIST("hColCounterFinal_Data"), 1);

std::vector<std::array<double, 3>> jetPtcuts;
for (auto& jet : jets) {
jetPtcuts.push_back({jet.pt(), jet.eta(), jet.phi()});
Expand All @@ -253,7 +274,7 @@

for (size_t i = 1; i < jetPtcuts.size() && !found_pair; i++) {
auto& candidate_jet = jetPtcuts[i];
Double_t dphi = fabs(leading_jet[2] - candidate_jet[2]);

Check failure on line 277 in PWGJE/Tasks/dijetFinderQA.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
Double_t deta = fabs(leading_jet[1] - candidate_jet[1]);
Double_t condition = fabs(dphi - M_PI);

Expand Down
Loading