From e543a3642373ffbaf4d66f5e3e36d9f7a02c8bc9 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 3 May 2024 10:44:23 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGUD/Tasks/sgFITAnalyzer.cxx | 39 ++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/PWGUD/Tasks/sgFITAnalyzer.cxx b/PWGUD/Tasks/sgFITAnalyzer.cxx index ef81b996e08..e923b4a4968 100644 --- a/PWGUD/Tasks/sgFITAnalyzer.cxx +++ b/PWGUD/Tasks/sgFITAnalyzer.cxx @@ -33,13 +33,15 @@ using namespace o2; using namespace o2::framework; using namespace o2::framework::expressions; -namespace bcNtr{ - DECLARE_SOA_COLUMN(BC, bc, uint64_t); - DECLARE_SOA_COLUMN(PV, pv, int); - DECLARE_SOA_COLUMN(GS, gs, int); -} -namespace o2::aod { - DECLARE_SOA_TABLE(BcPvGs, "AOD", "BCPVGS", +namespace bcNtr +{ +DECLARE_SOA_COLUMN(BC, bc, uint64_t); +DECLARE_SOA_COLUMN(PV, pv, int); +DECLARE_SOA_COLUMN(GS, gs, int); +} // namespace bcNtr +namespace o2::aod +{ +DECLARE_SOA_TABLE(BcPvGs, "AOD", "BCPVGS", bcNtr::BC, bcNtr::PV, bcNtr::GS); } struct SGFITAnalyzer { @@ -49,7 +51,7 @@ struct SGFITAnalyzer { // configurables Configurable verbose{"Verbose", {}, "Additional print outs"}; ConfigurableAxis ptAxis{"ptAxis", {250, 0.0, 2.5}, "p_T axis"}; - //ConfigurableAxis BCAxis{"BCAxis", {1000000000000, 0.5, 1000000000000.5}, "BC axis"}; + // ConfigurableAxis BCAxis{"BCAxis", {1000000000000, 0.5, 1000000000000.5}, "BC axis"}; ConfigurableAxis BCAxis{"BCAxis", {100000000000, 500000000000.5, 600000000000.5}, "BC axis"}; ConfigurableAxis etaAxis{"etaAxis", {300, -1.5, 1.5}, ""}; ConfigurableAxis sigTPCAxis{"sigTPCAxis", {100, -100.0, 100.0}, ""}; @@ -63,7 +65,7 @@ struct SGFITAnalyzer { Configurable FT0C_cut{"FT0C", 50., "FT0C threshold"}; Configurable FDDA_cut{"FDDA", 10000., "FDDA threshold"}; Configurable FDDC_cut{"FDDC", 10000., "FDDC threshold"}; - //Track Selections + // Track Selections Configurable PV_cut{"PV_cut", 1.0, "Use Only PV tracks"}; Configurable dcaZ_cut{"dcaZ_cut", 2.0, "dcaZ cut"}; Configurable dcaXY_cut{"dcaXY_cut", 0.0, "dcaXY cut (0 for Pt-function)"}; @@ -345,7 +347,7 @@ struct SGFITAnalyzer { using UDCollisionsFull = soa::Join; // UDCollisions // using UDCollisionsFull = soa::Join; // UDCollisions using UDCollisionFull = UDCollisionsFull::iterator; - //using UDTracksFull = soa::Join; + // using UDTracksFull = soa::Join; using UDTracksFull = soa::Join; // using UDTracksFull = soa::Join; @@ -366,8 +368,8 @@ struct SGFITAnalyzer { // select PV contributors Partition PVContributors = aod::udtrack::isPVContributor == true; PVContributors.bindTable(dgtracks); -// if (PVContributors.size() > 50) - // return; + // if (PVContributors.size() > 50) + // return; registry.get(HIST("collisions/multiplicityPVC"))->Fill(PVContributors.size(), 1.); int pv = PVContributors.size(); bool tof = false; @@ -396,19 +398,22 @@ struct SGFITAnalyzer { if (trackselector(t, parameters)) { sign += t.sign(); goodTracks.push_back(a); - if (std::abs(t.tpcNSigmaMu()) < 3) muonTracks.push_back(b); + if (std::abs(t.tpcNSigmaMu()) < 3) + muonTracks.push_back(b); } } if (goodTracks.size() == 2) { for (auto pion : goodTracks) { rho += pion; } - if (sign == 0 && TMath::Abs(rho.Rapidity()) < .9 && rho.M() > .5 && rho.M() < 1.2 && rho.Pt() < 0.1) coh_rho0 = true; + if (sign == 0 && TMath::Abs(rho.Rapidity()) < .9 && rho.M() > .5 && rho.M() < 1.2 && rho.Pt() < 0.1) + coh_rho0 = true; if (muonTracks.size() == 2) { for (auto muon : muonTracks) { jpsi += muon; } - if (sign == 0 && TMath::Abs(jpsi.Rapidity()) < .9 && jpsi.M() > 2.8 && jpsi.M() < 3.35 && jpsi.Pt() < 0.1) coh_jpsi = true; + if (sign == 0 && TMath::Abs(jpsi.Rapidity()) < .9 && jpsi.M() > 2.8 && jpsi.M() < 3.35 && jpsi.Pt() < 0.1) + coh_jpsi = true; } } int pva = 0; @@ -813,8 +818,8 @@ struct SGFITAnalyzer { registry.get(HIST("FIT/BBFDDA"))->Fill(bit - 16, TESTBIT(dgcand.bbFDDApf(), bit)); registry.get(HIST("FIT/BBFDDC"))->Fill(bit - 16, TESTBIT(dgcand.bbFDDCpf(), bit)); } - //Fill Table here - bcNtr(bc,pv,gs); + // Fill Table here + bcNtr(bc, pv, gs); } };