Skip to content

Commit 7a584df

Browse files
clang fixes
1 parent ca6267c commit 7a584df

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

PWGJE/Tasks/trackEfficiency.cxx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
/// \author Aimeric Landou <aimeric.landou@cern.ch>
1414
/// \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
1515

16-
17-
#include "Common/Core/TrackSelection.h"
18-
#include "Common/Core/TrackSelectionDefaults.h"
19-
2016
#include "PWGJE/Core/JetDerivedDataUtilities.h"
2117
#include "PWGJE/DataModel/Jet.h"
2218
#include "PWGJE/DataModel/JetReducedData.h"
2319

20+
#include "Common/Core/TrackSelection.h"
21+
#include "Common/Core/TrackSelectionDefaults.h"
22+
2423
#include "Framework/ASoA.h"
2524
#include "Framework/AnalysisTask.h"
2625
#include "Framework/HistogramRegistry.h"
@@ -107,9 +106,10 @@ struct TrackEfficiency {
107106
SplitOkCheckAnyAssocColl, // 1
108107
SplitOkCheckFirstAssocCollOnly // 2
109108
};
110-
109+
111110
template <typename TJetTrack>
112-
bool isAcceptedTrack(TJetTrack const& jetTrack) {
111+
bool isAcceptedTrack(TJetTrack const& jetTrack)
112+
{
113113
if (!useCustomTrackSelection) {
114114
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
115115
return true;
@@ -118,7 +118,7 @@ struct TrackEfficiency {
118118
const auto& aodTrack = jetTrack.template track_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
119119
if (customTrackSelection.IsSelected(aodTrack)) {
120120
return true;
121-
}
121+
}
122122
}
123123
return false;
124124
}
@@ -202,11 +202,11 @@ struct TrackEfficiency {
202202

203203
// customTrackSelection = getGlobalTrackSelectionRun3ITSMatch(itsPattern.value); does this need to be setup?
204204
LOGP(info, "Customizing track selection:");
205-
int dcaSetup = 0; //default dca setup
205+
int dcaSetup = 0; // default dca setup
206206
customTrackSelection = getGlobalTrackSelectionRun3ITSMatch(TrackSelection::GlobalTrackRun3ITSMatching::Run3ITSibAny, dcaSetup); // takes global tracks configuration, then edit some cuts
207207
customTrackSelection.SetEtaRange(-999, 999);
208208
customTrackSelection.SetPtRange(0, 1e10f);
209-
209+
210210
customTrackSelection.SetMinNCrossedRowsTPC(effSystMinNCrossedRowsTPC.value);
211211
customTrackSelection.SetMinNCrossedRowsOverFindableClustersTPC(effSystMinNCrossedRowsOverFindableClustersTPC.value);
212212
customTrackSelection.SetMaxChi2PerClusterTPC(effSystMaxChi2PerClusterTPC.value);
@@ -360,7 +360,7 @@ struct TrackEfficiency {
360360
registry.add("h_trackselplot_dcaxy", "track selection variable: dca XY", {HistType::kTH1F, {{1000, -1.0, 1.0}}});
361361
registry.add("h_trackselplot_dcaz", "track selection variable: dca Z", {HistType::kTH1F, {{1000, -1.0, 1.0}}});
362362

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}}});
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}}});
364364
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}}});
365365
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}}});
366366
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 {
11101110
}
11111111
PROCESS_SWITCH(TrackEfficiency, processMcCollisionsWeighted, "QA for McCollisions in weighted MC", false);
11121112

1113-
void processTrackSelectionHistograms(soa::Join<aod::Tracks, aod::TracksExtra, o2::aod::TracksDCA>::iterator const& track) { // should probably select collisions
1113+
void processTrackSelectionHistograms(soa::Join<aod::Tracks, aod::TracksExtra, o2::aod::TracksDCA>::iterator const& track)
1114+
{ // should probably select collisions
11141115
registry.fill(HIST("h_trackselplot_tpccrossedrows"), track.tpcNClsCrossedRows());
11151116
registry.fill(HIST("h_trackselplot_tpccrossedrowsoverfindable"), track.tpcCrossedRowsOverFindableCls());
1116-
registry.fill(HIST("h_trackselplot_chi2ncls_tpc"), track.tpcChi2NCl ());
1117-
registry.fill(HIST("h_trackselplot_chi2ncls_its"), track.itsChi2NCl ());
1117+
registry.fill(HIST("h_trackselplot_chi2ncls_tpc"), track.tpcChi2NCl());
1118+
registry.fill(HIST("h_trackselplot_chi2ncls_its"), track.itsChi2NCl());
11181119
registry.fill(HIST("h_trackselplot_dcaxy"), track.dcaXY());
11191120
registry.fill(HIST("h_trackselplot_dcaz"), track.dcaZ());
11201121

0 commit comments

Comments
 (0)