|
13 | 13 | /// \file jetChargedV2.cxx |
14 | 14 | /// \brief This file contains the implementation for the Charged Jet v2 analysis in the ALICE experiment |
15 | 15 |
|
| 16 | +#include "PWGJE/Core/FastJetUtilities.h" |
| 17 | +#include "PWGJE/Core/JetDerivedDataUtilities.h" |
| 18 | +#include "PWGJE/Core/JetFinder.h" |
| 19 | +#include "PWGJE/Core/JetFindingUtilities.h" |
| 20 | +#include "PWGJE/DataModel/Jet.h" |
| 21 | + |
| 22 | +#include "Common/Core/EventPlaneHelper.h" |
| 23 | +#include "Common/Core/TrackSelection.h" |
| 24 | +#include "Common/Core/TrackSelectionDefaults.h" |
| 25 | +#include "Common/DataModel/EventSelection.h" |
| 26 | +#include "Common/DataModel/Qvectors.h" |
| 27 | +#include "Common/DataModel/TrackSelectionTables.h" |
| 28 | +#include "EventFiltering/filterTables.h" |
| 29 | + |
| 30 | +#include "CommonConstants/PhysicsConstants.h" |
| 31 | +#include "Framework/ASoA.h" |
| 32 | +#include "Framework/ASoAHelpers.h" |
| 33 | +#include "Framework/AnalysisDataModel.h" |
| 34 | +#include "Framework/AnalysisTask.h" |
| 35 | +#include "Framework/HistogramRegistry.h" |
| 36 | +#include "Framework/O2DatabasePDGPlugin.h" |
| 37 | +#include "Framework/RunningWorkflowInfo.h" |
| 38 | +#include "Framework/StaticFor.h" |
| 39 | +#include "Framework/runDataProcessing.h" |
| 40 | + |
16 | 41 | #include <TComplex.h> |
17 | 42 | #include <TH1F.h> |
18 | 43 | #include <TH2D.h> |
|
21 | 46 | #include <TMath.h> |
22 | 47 | #include <TRandom3.h> |
23 | 48 | #include <TVector2.h> |
| 49 | + |
24 | 50 | #include <algorithm> |
25 | 51 | #include <chrono> |
26 | 52 | #include <cmath> |
27 | 53 | #include <string> |
28 | 54 | #include <vector> |
29 | 55 |
|
30 | | -#include "Framework/ASoA.h" |
31 | | -#include "Framework/ASoAHelpers.h" |
32 | | -#include "Framework/AnalysisDataModel.h" |
33 | | -#include "Framework/AnalysisTask.h" |
34 | | -#include "Framework/HistogramRegistry.h" |
35 | | -#include "Framework/O2DatabasePDGPlugin.h" |
36 | | -#include "Framework/RunningWorkflowInfo.h" |
37 | | -#include "Framework/StaticFor.h" |
38 | | -#include "Framework/runDataProcessing.h" |
39 | | - |
40 | | -#include "Common/Core/EventPlaneHelper.h" |
41 | | -#include "Common/Core/TrackSelection.h" |
42 | | -#include "Common/Core/TrackSelectionDefaults.h" |
43 | | -#include "Common/DataModel/EventSelection.h" |
44 | | -#include "Common/DataModel/Qvectors.h" |
45 | | -#include "Common/DataModel/TrackSelectionTables.h" |
46 | | -#include "CommonConstants/PhysicsConstants.h" |
47 | | - |
48 | | -#include "EventFiltering/filterTables.h" |
49 | | - |
50 | | -#include "PWGJE/Core/FastJetUtilities.h" |
51 | | -#include "PWGJE/Core/JetDerivedDataUtilities.h" |
52 | | -#include "PWGJE/Core/JetFinder.h" |
53 | | -#include "PWGJE/Core/JetFindingUtilities.h" |
54 | | -#include "PWGJE/DataModel/Jet.h" |
55 | | - |
56 | 56 | using namespace o2; |
57 | 57 | using namespace o2::framework; |
58 | 58 | using namespace o2::framework::expressions; |
@@ -476,6 +476,22 @@ struct JetChargedV2 { |
476 | 476 | return TMath::Gamma(nDF / 2., x / 2.); |
477 | 477 | } |
478 | 478 |
|
| 479 | + // leading jet fill |
| 480 | + template <typename T> |
| 481 | + void fillLeadingJetQA(T const& jets, double& leadingJetPt, double& leadingJetPhi, double& leadingJetEta) |
| 482 | + { |
| 483 | + for (const auto& jet : jets) { |
| 484 | + if (jet.pt() > leadingJetPt) { |
| 485 | + leadingJetPt = jet.pt(); |
| 486 | + leadingJetEta = jet.eta(); |
| 487 | + leadingJetPhi = jet.phi(); |
| 488 | + } |
| 489 | + } |
| 490 | + registry.fill(HIST("leadJetPt"), leadingJetPt); |
| 491 | + registry.fill(HIST("leadJetPhi"), leadingJetPhi); |
| 492 | + registry.fill(HIST("leadJetEta"), leadingJetEta); |
| 493 | + } |
| 494 | + |
479 | 495 | // MCP leading jet fill |
480 | 496 | template <typename T> |
481 | 497 | void fillLeadingJetQAMCP(T const& jets, double& leadingJetPt, double& leadingJetPhi, double& leadingJetEta) |
@@ -790,6 +806,11 @@ struct JetChargedV2 { |
790 | 806 | } |
791 | 807 | registry.fill(HIST("h_collisions"), 2.5); |
792 | 808 |
|
| 809 | + double leadingJetPt = -1; |
| 810 | + double leadingJetPhi = -1; |
| 811 | + double leadingJetEta = -1; |
| 812 | + fillLeadingJetQA(jets, leadingJetPt, leadingJetPhi, leadingJetEta); |
| 813 | + |
793 | 814 | double ep2 = 0.; |
794 | 815 | double ep3 = 0.; |
795 | 816 | int cfgNmodA = 2; |
@@ -1042,6 +1063,11 @@ struct JetChargedV2 { |
1042 | 1063 | fillJetAreaSubHistograms(jet, collision.centrality(), collision.rho()); |
1043 | 1064 | } |
1044 | 1065 |
|
| 1066 | + double leadingJetPt = -1; |
| 1067 | + double leadingJetPhi = -1; |
| 1068 | + double leadingJetEta = -1; |
| 1069 | + fillLeadingJetQA(jets, leadingJetPt, leadingJetPhi, leadingJetEta); |
| 1070 | + |
1045 | 1071 | double ep2 = 0.; |
1046 | 1072 | double ep3 = 0.; |
1047 | 1073 | int cfgNmodA = 2; |
|
0 commit comments