From 88fe599776246dee91c9db14418547c1ec324d65 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sun, 21 Apr 2024 11:49:46 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGUD/TableProducer/DGBCCandProducer.cxx | 2 +- PWGUD/TableProducer/DGCandProducer.cxx | 2 +- PWGUD/TableProducer/SGCandProducer.cxx | 23 ++-- PWGUD/Tasks/SG_FourPi_Analyzer.cxx | 136 ++++++++++++----------- 4 files changed, 85 insertions(+), 78 deletions(-) diff --git a/PWGUD/TableProducer/DGBCCandProducer.cxx b/PWGUD/TableProducer/DGBCCandProducer.cxx index ccb5d0c30ea..bad48bd95cf 100644 --- a/PWGUD/TableProducer/DGBCCandProducer.cxx +++ b/PWGUD/TableProducer/DGBCCandProducer.cxx @@ -347,7 +347,7 @@ struct DGBCCandProducer { track.length(), track.tofExpMom(), track.detectorMap(), - track.itsNCls()); + track.itsNCls()); outputTracksFlag(track.has_collision(), track.isPVContributor()); outputTracksLabel(track.globalIndex()); diff --git a/PWGUD/TableProducer/DGCandProducer.cxx b/PWGUD/TableProducer/DGCandProducer.cxx index d08c5cb4cbe..82d69564eac 100644 --- a/PWGUD/TableProducer/DGCandProducer.cxx +++ b/PWGUD/TableProducer/DGCandProducer.cxx @@ -127,7 +127,7 @@ struct DGCandProducer { track.length(), track.tofExpMom(), track.detectorMap(), - track.itsNCls()); + track.itsNCls()); outputTracksFlag(track.has_collision(), track.isPVContributor()); outputTracksLabel(track.globalIndex()); diff --git a/PWGUD/TableProducer/SGCandProducer.cxx b/PWGUD/TableProducer/SGCandProducer.cxx index c9142938c13..01b8becc7b0 100644 --- a/PWGUD/TableProducer/SGCandProducer.cxx +++ b/PWGUD/TableProducer/SGCandProducer.cxx @@ -33,11 +33,11 @@ struct SGCandProducer { Configurable SGCuts{"SGCuts", {}, "SG event cuts"}; Configurable saveAllTracks{"saveAllTracks", true, "save only PV contributors or all tracks associated to a collision"}; Configurable savenonPVCITSOnlyTracks{"savenonPVCITSOnlyTracks", false, "save non PV contributors with ITS only information"}; - Configurable rejectAtTFBoundary{"rejectAtTFBoundary", true, "reject collisions at a TF boundary"}; - Configurable noITSROFrameBorder{"noITSROFrameBorder", true, "reject ITS RO Frame Border"}; - Configurable noSameBunchPileUp{"noSameBunchPileUp", true, "reject SameBunchPileUp"}; - Configurable IsGoodVertex{"IsGoodVertex", false, "Select FT0 PV vertex matching"}; - Configurable ITSTPCVertex{"ITSTPCVertex", true, "reject ITS-only vertex"}; //if one wants to look at Single Gap pp events + Configurable rejectAtTFBoundary{"rejectAtTFBoundary", true, "reject collisions at a TF boundary"}; + Configurable noITSROFrameBorder{"noITSROFrameBorder", true, "reject ITS RO Frame Border"}; + Configurable noSameBunchPileUp{"noSameBunchPileUp", true, "reject SameBunchPileUp"}; + Configurable IsGoodVertex{"IsGoodVertex", false, "Select FT0 PV vertex matching"}; + Configurable ITSTPCVertex{"ITSTPCVertex", true, "reject ITS-only vertex"}; // if one wants to look at Single Gap pp events // SG selector SGSelector sgSelector; @@ -136,8 +136,7 @@ struct SGCandProducer { track.length(), track.tofExpMom(), track.detectorMap(), - track.itsNCls() - ); + track.itsNCls()); outputTracksFlag(track.has_collision(), track.isPVContributor()); outputTracksLabel(track.globalIndex()); @@ -155,26 +154,26 @@ struct SGCandProducer { { LOGF(debug, " collision %d", collision.globalIndex()); registry.get(HIST("reco/Stat"))->Fill(0., 1.); - //reject collisions at TF boundaries + // reject collisions at TF boundaries if (rejectAtTFBoundary && !collision.selection_bit(aod::evsel::kNoTimeFrameBorder)) { return; } - //reject collisions at ITS RO TF boundaries + // reject collisions at ITS RO TF boundaries if (noITSROFrameBorder && !collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) { return; } // registry.get(HIST("reco/Stat"))->Fill(1., 1.); - //reject Same Bunch PileUp + // reject Same Bunch PileUp if (noSameBunchPileUp && !collision.selection_bit(aod::evsel::kNoSameBunchPileup)) { return; } // registry.get(HIST("reco/Stat"))->Fill(1., 1.); - //check vertex matching to FT0 + // check vertex matching to FT0 if (IsGoodVertex && !collision.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) { return; } // registry.get(HIST("reco/Stat"))->Fill(1., 1.); - //reject ITS Only vertices + // reject ITS Only vertices if (ITSTPCVertex && !collision.selection_bit(aod::evsel::kIsVertexITSTPC)) { return; } diff --git a/PWGUD/Tasks/SG_FourPi_Analyzer.cxx b/PWGUD/Tasks/SG_FourPi_Analyzer.cxx index 4242421b542..1634e82339d 100644 --- a/PWGUD/Tasks/SG_FourPi_Analyzer.cxx +++ b/PWGUD/Tasks/SG_FourPi_Analyzer.cxx @@ -32,7 +32,7 @@ using namespace std; using namespace o2; using namespace o2::aod; -//using namespace o2::aod::track::v001; +// using namespace o2::aod::track::v001; using namespace o2::framework; using namespace o2::framework::expressions; #define mpion 0.1396 @@ -92,9 +92,9 @@ struct SG_FourPi_Analyzer { // Single gap either side TLorentzVector v01; // int truegapSide = sgSelector.trueGap(collision); - //int truegapSide = sgSelector.trueGap(collision, FV0_cut, ZDC_cut); - float FIT_cut[5]={FV0_cut, FT0A_cut, FT0C_cut, FDDA_cut, FDDC_cut}; - //int truegapSide = sgSelector.trueGap(collision, *FIT_cut, ZDC_cut); + // int truegapSide = sgSelector.trueGap(collision, FV0_cut, ZDC_cut); + float FIT_cut[5] = {FV0_cut, FT0A_cut, FT0C_cut, FDDA_cut, FDDC_cut}; + // int truegapSide = sgSelector.trueGap(collision, *FIT_cut, ZDC_cut); int truegapSide = sgSelector.trueGap(collision, FIT_cut[0], FIT_cut[1], FIT_cut[3], ZDC_cut); registry.fill(HIST("GapSide"), gapSide); registry.fill(HIST("TrueGapSide"), truegapSide); @@ -103,70 +103,78 @@ struct SG_FourPi_Analyzer { // Look for D0 and D0bar float sign = 0; for (auto t : tracks) { - //int itsNCls = t.itsNCls(); - int itsNCls = t.uditsNCls(); -// int itsNCls = o2::aod::track::v001::ITSNCls; -// if (t.itsNCls()) {std::cout << t.itsClusterSizes()<; + // if (t.itsNCls()) {std::cout << t.itsClusterSizes()<