Skip to content

Commit 73686dc

Browse files
Merge pull request #20 from alibuild/alibot-cleanup-9308
Please consider the following formatting changes to AliceO2Group#9308
2 parents 84fdec8 + 0558247 commit 73686dc

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

PWGLF/TableProducer/Strangeness/sigma0builder.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ using namespace o2::framework;
5555
using namespace o2::framework::expressions;
5656
using std::array;
5757
using dauTracks = soa::Join<aod::DauTrackExtras, aod::DauTrackTPCPIDs>;
58-
//using V0DerivedMCDatas = soa::Join<aod::V0Cores, aod::V0CollRefs, aod::V0Extras, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0MCDatas>;
58+
// using V0DerivedMCDatas = soa::Join<aod::V0Cores, aod::V0CollRefs, aod::V0Extras, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0MCDatas>;
5959
using V0DerivedMCDatas = soa::Join<aod::V0Cores, aod::V0CollRefs, aod::V0Extras, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0MCMothers, aod::V0CoreMCLabels, aod::V0LambdaMLScores, aod::V0AntiLambdaMLScores, aod::V0GammaMLScores>;
6060
using V0StandardDerivedDatas = soa::Join<aod::V0Cores, aod::V0CollRefs, aod::V0Extras, aod::V0TOFPIDs, aod::V0TOFNSigmas, aod::V0LambdaMLScores, aod::V0AntiLambdaMLScores, aod::V0GammaMLScores>;
6161

@@ -423,7 +423,7 @@ struct sigma0builder {
423423

424424
// Check if MC data and populate fIsMC, fIsPi0
425425
if constexpr (requires { gamma1.motherMCPartId(); gamma2.motherMCPartId(); }) {
426-
if (gamma1.has_v0MCCore() && gamma2.has_v0MCCore()){
426+
if (gamma1.has_v0MCCore() && gamma2.has_v0MCCore()) {
427427
fIsMC = true;
428428
auto gamma1MC = gamma1.template v0MCCore_as<soa::Join<aod::V0MCCores, aod::V0MCCollRefs>>();
429429
auto gamma2MC = gamma2.template v0MCCore_as<soa::Join<aod::V0MCCores, aod::V0MCCollRefs>>();
@@ -784,7 +784,7 @@ struct sigma0builder {
784784

785785
if (GammaY < 0.5) { // rapidity selection
786786
histos.fill(HIST("MC/h2dPtVsCentrality_GammaBeforeSel"), centrality, gamma.pt()); // isgamma
787-
histos.fill(HIST("MC/h2dGammaPtResolution"), gamma.pt(), gamma.pt() - RecoDecay::pt(array{gammaMC.pxMC(), gammaMC.pyMC()})); // pT resolution
787+
histos.fill(HIST("MC/h2dGammaPtResolution"), gamma.pt(), gamma.pt() - RecoDecay::pt(array{gammaMC.pxMC(), gammaMC.pyMC()})); // pT resolution
788788

789789
if (gammaMC.pdgCodeMother() == 3212) {
790790
histos.fill(HIST("MC/h2dPtVsCentrality_GammaSigma0"), centrality, gamma.pt()); // isgamma from sigma

PWGLF/Tasks/Strangeness/sigmaanalysis.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ struct sigmaanalysis {
396396
histos.fill(HIST("GeneralQA/hCandidateAnalysisSelection"), 10.);
397397
if ((cand.photonRadius() < PhotonMinRadius) || (cand.photonRadius() > PhotonMaxRadius))
398398
return false;
399-
float photonRZLineCut = TMath::Abs(cand.photonZconv())*TMath::Tan(2 * TMath::ATan(TMath::Exp(-PhotonMaxDauEta))) - PhotonLineCutZ0;
399+
float photonRZLineCut = TMath::Abs(cand.photonZconv()) * TMath::Tan(2 * TMath::ATan(TMath::Exp(-PhotonMaxDauEta))) - PhotonLineCutZ0;
400400
histos.fill(HIST("GeneralQA/hPhotonZ"), cand.photonZconv());
401401
histos.fill(HIST("GeneralQA/h2dRZCut"), cand.photonRadius(), photonRZLineCut);
402402
histos.fill(HIST("GeneralQA/h2dRZPlane"), cand.photonRadius(), cand.photonZconv());
@@ -548,11 +548,11 @@ struct sigmaanalysis {
548548
histos.fill(HIST("MC/hPtGammaCand_AfterSel"), sigma.photonPt());
549549
histos.fill(HIST("MC/hPtSigmaCand_AfterSel"), sigma.sigmapT());
550550

551-
if (sigma.photonCandPDGCode() == 22){
551+
if (sigma.photonCandPDGCode() == 22) {
552552
histos.fill(HIST("MC/hPtTrueGamma_AfterSel"), sigma.photonPt());
553-
histos.fill(HIST("MC/h3dGammaPtResolution"), sigma.photonPt(), TMath::Abs((sigma.photonMCPt()-sigma.photonPt())/sigma.photonMCPt()), sigma.photonMass()); // pT resolution
553+
histos.fill(HIST("MC/h3dGammaPtResolution"), sigma.photonPt(), TMath::Abs((sigma.photonMCPt() - sigma.photonPt()) / sigma.photonMCPt()), sigma.photonMass()); // pT resolution
554554
}
555-
555+
556556
// For Lambda PID Studies
557557
if (fLambdaTPCTOFQA && (sigma.lambdaAlpha() > 0)) {
558558
histos.fill(HIST("MC/hPtLambdaCand_AfterSel"), sigma.lambdaPt());
@@ -561,7 +561,7 @@ struct sigmaanalysis {
561561

562562
if (sigma.lambdaCandPDGCode() == 3122) {
563563
histos.fill(HIST("MC/hPtTrueLambda_AfterSel"), sigma.lambdaPt());
564-
histos.fill(HIST("MC/h3dLambdaPtResolution"), sigma.lambdaPt(), TMath::Abs((sigma.lambdaMCPt() - sigma.lambdaPt())/sigma.lambdaMCPt()), sigma.lambdaMass()); // pT resolution
564+
histos.fill(HIST("MC/h3dLambdaPtResolution"), sigma.lambdaPt(), TMath::Abs((sigma.lambdaMCPt() - sigma.lambdaPt()) / sigma.lambdaMCPt()), sigma.lambdaMass()); // pT resolution
565565
histos.fill(HIST("MC/h3dTPCvsTOFNSigma_TrueLambdaPr"), sigma.lambdaPosPrTPCNSigma(), sigma.lambdaPrTOFNSigma(), sigma.lambdaPt());
566566
histos.fill(HIST("MC/h3dTPCvsTOFNSigma_TrueLambdaPi"), sigma.lambdaNegPiTPCNSigma(), sigma.lambdaPiTOFNSigma(), sigma.lambdaPt());
567567
}
@@ -604,7 +604,7 @@ struct sigmaanalysis {
604604
histos.fill(HIST("MC/hMassSigma0"), sigma.sigmaMass());
605605
histos.fill(HIST("MC/hPtSigma0"), sigma.sigmapT());
606606
histos.fill(HIST("MC/h3dMassSigma0"), sigma.sigmaCentrality(), sigma.sigmapT(), sigma.sigmaMass());
607-
histos.fill(HIST("MC/h3dSigma0PtResolution"), sigma.sigmapT(), TMath::Abs((sigma.sigmaMCPt()-sigma.sigmapT())/sigma.sigmaMCPt()), sigma.sigmaMass()); // pT resolution
607+
histos.fill(HIST("MC/h3dSigma0PtResolution"), sigma.sigmapT(), TMath::Abs((sigma.sigmaMCPt() - sigma.sigmapT()) / sigma.sigmaMCPt()), sigma.sigmaMass()); // pT resolution
608608

609609
} else {
610610
// TPC + TOF PID Selections

0 commit comments

Comments
 (0)