Skip to content

Commit a5a28f6

Browse files
committed
PWGUD: O2 linter v2
1 parent 92b29fa commit a5a28f6

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

PWGUD/Tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ o2physics_add_dpl_workflow(polarisation-rho
135135
COMPONENT_NAME Analysis)
136136

137137
o2physics_add_dpl_workflow(upc-jpsi-corr
138-
SOURCES upcJpsiCentralBarrelCorr.cxx
138+
SOURCES upcJpsiCorr.cxx
139139
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::DGPIDSelector
140140
COMPONENT_NAME Analysis)
141141

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ DECLARE_SOA_COLUMN(TrackPt2, trackPt2, double);
9494
DECLARE_SOA_COLUMN(TrackEta2, trackEta2, double);
9595
DECLARE_SOA_COLUMN(TrackPhi2, trackPhi2, double);
9696
} // namespace tree
97-
DECLARE_SOA_TABLE(tree, "AOD", "TREE",
97+
DECLARE_SOA_TABLE(Tree, "AOD", "TREE",
9898
tree::RunNumber, tree::GlobalBC,
9999
tree::PosX, tree::PosY, tree::PosZ, tree::TotalFT0AmplitudeA, tree::TotalFT0AmplitudeC, tree::TotalFV0AmplitudeA, tree::TotalFDDAmplitudeA, tree::TotalFDDAmplitudeC,
100100
tree::TimeFT0A, tree::TimeFT0C, tree::TimeFV0A, tree::TimeFDDA, tree::TimeFDDC,
@@ -134,7 +134,7 @@ DECLARE_SOA_COLUMN(TrackPt2, trackPt2, double);
134134
DECLARE_SOA_COLUMN(TrackEta2, trackEta2, double);
135135
DECLARE_SOA_COLUMN(TrackPhi2, trackPhi2, double);
136136
} // namespace tree_mc
137-
DECLARE_SOA_TABLE(treeMC, "AOD", "TREEMC",
137+
DECLARE_SOA_TABLE(TreeMC, "AOD", "TREEMC",
138138
tree_mc::GlobalBC,
139139
tree_mc::JpsiPt, tree_mc::JpsiEta, tree_mc::JpsiPhi, tree_mc::JpsiRap, tree_mc::JpsiM, tree_mc::JpsiPhiRandom, tree_mc::JpsiPhiCharge, tree_mc::JpsiPhiCS, tree_mc::JpsiCosThetaCS,
140140
tree_mc::TrackSign1, tree_mc::TrackPt1, tree_mc::TrackEta1, tree_mc::TrackPhi1,
@@ -177,7 +177,7 @@ struct UpcJpsiCorr {
177177
Configurable<bool> tofAtLeastOneProton{"tofAtLeastOneProton", false, "at least one candidate track has TOF hits"};
178178
Configurable<bool> tofBothProtons{"tofBothProtons", false, "both candidate protons have TOF hits"};
179179
Configurable<bool> tofOneProton{"tofOneProton", false, "one candidate proton has TOF hits"};
180-
Configurable<bool> dcaCut{"dcacut", false, "DCA cut from run2."};
180+
Configurable<bool> dcaCut{"dcaCut", false, "DCA cut from run2."};
181181
Configurable<bool> newCutTPC{"newCutTPC", false, "New cuts for TPC quality tracks."};
182182
Configurable<float> etaCut{"etaCut", 0.9f, "acceptance cut per track"};
183183
Configurable<float> cutPtTrack{"cutPtTrack", 0.1f, "pT cut per track"};
@@ -203,10 +203,10 @@ struct UpcJpsiCorr {
203203
// SG cuts
204204
Configurable<int> whichGapSide{"whichGapSide", 2, {"0 for side A, 1 for side C, 2 for both sides"}};
205205
Configurable<bool> useTrueGap{"useTrueGap", true, {"Calculate gapSide for a given FV0/FT0/ZDC thresholds"}};
206-
Configurable<float> cutMyGapSideFV0{"FV0", 100, "FV0A threshold for SG selector"};
207-
Configurable<float> cutMyGapSideFT0A{"FT0A", 200., "FT0A threshold for SG selector"};
208-
Configurable<float> cutMyGapSideFT0C{"FT0C", 100., "FT0C threshold for SG selector"};
209-
Configurable<float> cutMyGapSideZDC{"ZDC", 1000., "ZDC threshold for SG selector"};
206+
Configurable<float> cutMyGapSideFV0{"cutMyGapSideFV0", 100, "FV0A threshold for SG selector"};
207+
Configurable<float> cutMyGapSideFT0A{"cutMyGapSideFT0A", 200., "FT0A threshold for SG selector"};
208+
Configurable<float> cutMyGapSideFT0C{"cutMyGapSideFT0C", 100., "FT0C threshold for SG selector"};
209+
Configurable<float> cutMyGapSideZDC{"cutMyGapSideZDC", 1000., "ZDC threshold for SG selector"};
210210

211211
// process cuts
212212
Configurable<bool> doMuons{"doMuons", true, "Provide muon plots."};
@@ -245,8 +245,8 @@ struct UpcJpsiCorr {
245245
"rTGdaugCand",
246246
{}};
247247

248-
HistogramRegistry rJPsiToDaug{
249-
"rJPsiToDaug",
248+
HistogramRegistry rJpsiToDaug{
249+
"rJpsiToDaug",
250250
{}};
251251

252252
HistogramRegistry rCorrelation{
@@ -556,7 +556,7 @@ struct UpcJpsiCorr {
556556
rStatistics.get<TH1>(HIST("Statistics/hCutCounterTracks"))->Fill(11);
557557
return false;
558558
}
559-
if (track.tpcChi2NCl() > TPCChi2NCls) {
559+
if (track.tpcChi2NCl() > tpcChi2NCls) {
560560
rStatistics.get<TH1>(HIST("Statistics/hCutCounterTracks"))->Fill(12);
561561
return false; // TPC chi2
562562
}
@@ -813,7 +813,7 @@ struct UpcJpsiCorr {
813813
onon = true;
814814
neutronClass = 0;
815815
}
816-
if (collision.energyCommonZNA() > znEnergyCut && std::abs(collision.timeZNA()) < ZNtimeCut && collision.energyCommonZNC() > znEnergyCut && std::abs(collision.timeZNC()) < znTimeCut) {
816+
if (collision.energyCommonZNA() > znEnergyCut && std::abs(collision.timeZNA()) < znTimeCut && collision.energyCommonZNC() > znEnergyCut && std::abs(collision.timeZNC()) < znTimeCut) {
817817
xnxn = true;
818818
neutronClass = 1;
819819
}
@@ -1168,15 +1168,15 @@ struct UpcJpsiCorr {
11681168

11691169
std::array<double, 3> mother = {trkDaughter1.px() + trkDaughter2.px(), trkDaughter1.py() + trkDaughter2.py(), trkDaughter1.pz() + trkDaughter2.pz()};
11701170

1171-
if (TOFBothProtons) {
1171+
if (tofBothProtons) {
11721172
if (!trkDaughter1.hasTOF() || !trkDaughter2.hasTOF())
11731173
return;
11741174
}
1175-
if (TOFOneProton) {
1175+
if (tofOneProton) {
11761176
if ((trkDaughter1.hasTOF() && trkDaughter2.hasTOF()) || (!trkDaughter1.hasTOF() && !trkDaughter2.hasTOF()))
11771177
return;
11781178
}
1179-
if (TOFAtLeastOneProton) {
1179+
if (tofAtLeastOneProton) {
11801180
if (!trkDaughter1.hasTOF() && !trkDaughter2.hasTOF())
11811181
return;
11821182
}
@@ -1368,6 +1368,6 @@ struct UpcJpsiCorr {
13681368
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
13691369
{
13701370
return WorkflowSpec{
1371-
adaptAnalysisTask<UpcJpsiCorr>(cfgc, TaskName{"upc-jpsi-corr"}),
1371+
adaptAnalysisTask<UpcJpsiCorr>(cfgc),
13721372
};
13731373
}

0 commit comments

Comments
 (0)