You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// \brief task that creates the histograms necessary for computation of efficiency and purity functions in offline postprocess macros; also can make mcparticle and track QC histograms
15
15
16
-
17
-
#include"Common/Core/TrackSelection.h"
18
-
#include"Common/Core/TrackSelectionDefaults.h"
19
-
20
16
#include"PWGJE/Core/JetDerivedDataUtilities.h"
21
17
#include"PWGJE/DataModel/Jet.h"
22
18
#include"PWGJE/DataModel/JetReducedData.h"
23
19
20
+
#include"Common/Core/TrackSelection.h"
21
+
#include"Common/Core/TrackSelectionDefaults.h"
22
+
24
23
#include"Framework/ASoA.h"
25
24
#include"Framework/AnalysisTask.h"
26
25
#include"Framework/HistogramRegistry.h"
@@ -107,9 +106,10 @@ struct TrackEfficiency {
107
106
SplitOkCheckAnyAssocColl, // 1
108
107
SplitOkCheckFirstAssocCollOnly // 2
109
108
};
110
-
109
+
111
110
template <typename TJetTrack>
112
-
boolisAcceptedTrack(TJetTrack const& jetTrack) {
111
+
boolisAcceptedTrack(TJetTrack const& jetTrack)
112
+
{
113
113
if (!useCustomTrackSelection) {
114
114
if (jetderiveddatautilities::selectTrack(jetTrack, trackSelection) && jetderiveddatautilities::selectTrackDcaZ(jetTrack, trackDcaZmax)) { // if track selection is uniformTrack, dcaZ cuts need to be added as they aren't in the selection so that they can be studied here
115
115
returntrue;
@@ -118,7 +118,7 @@ struct TrackEfficiency {
118
118
constauto& aodTrack = jetTrack.templatetrack_as<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA>>(); // might need the aodTracks to have the TracksExtra table as well; should check; check what is needed for the track selection
119
119
if (customTrackSelection.IsSelected(aodTrack)) {
120
120
returntrue;
121
-
}
121
+
}
122
122
}
123
123
returnfalse;
124
124
}
@@ -202,11 +202,11 @@ struct TrackEfficiency {
202
202
203
203
// customTrackSelection = getGlobalTrackSelectionRun3ITSMatch(itsPattern.value); does this need to be setup?
204
204
LOGP(info, "Customizing track selection:");
205
-
int dcaSetup = 0; //default dca setup
205
+
int dcaSetup = 0; //default dca setup
206
206
customTrackSelection = getGlobalTrackSelectionRun3ITSMatch(TrackSelection::GlobalTrackRun3ITSMatching::Run3ITSibAny, dcaSetup); // takes global tracks configuration, then edit some cuts
registry.add("h2_trackselplot_pt_tpccrossedrows", "track selection variable: pt vs number of tpc crossed rows", {HistType::kTH2F, {{200, 0., 200.},{165, -0.5, 164.5}}});
363
+
registry.add("h2_trackselplot_pt_tpccrossedrows", "track selection variable: pt vs number of tpc crossed rows", {HistType::kTH2F, {{200, 0., 200.},{165, -0.5, 164.5}}});
364
364
registry.add("h2_trackselplot_pt_tpccrossedrowsoverfindable", "track selection variable: pt vs ratio of of tpc crossed rows over number of findable clusters", {HistType::kTH2F, {{200, 0., 200.}, {120, 0.0, 1.2}}});
365
365
registry.add("h2_trackselplot_pt_chi2ncls_tpc", "track selection variable: pt vs Chi2 / cluster for the TPC track segment", {HistType::kTH2F, {{200, 0., 200.}, {100, 0.0, 10.0}}});
366
366
registry.add("h2_trackselplot_pt_chi2ncls_its", "track selection variable: pt vs Chi2 / cluster for the ITS track segment", {HistType::kTH2F, {{200, 0., 200.}, {200, 0.0, 40.0}}});
@@ -1110,11 +1110,12 @@ struct TrackEfficiency {
1110
1110
}
1111
1111
PROCESS_SWITCH(TrackEfficiency, processMcCollisionsWeighted, "QA for McCollisions in weighted MC", false);
0 commit comments