Skip to content

Commit 6158093

Browse files
committed
Move up sign getter
1 parent 8004c29 commit 6158093

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGHF/TableProducer/candidateCreatorXicToXiPiPi.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,9 @@ struct HfCandidateCreatorXicToXiPiPi {
589589
auto trackCharmBachelor0 = rowTrackIndexXicPlus.prong0_as<TracksWCovExtraPidPrPi>();
590590
auto trackCharmBachelor1 = rowTrackIndexXicPlus.prong1_as<TracksWCovExtraPidPrPi>();
591591

592+
// sign of charm baryon
593+
int8_t const signXic = casc.sign() < 0 ? +1 : -1;
594+
592595
// if enabled, apply selections of software trigger
593596
float pPiFromLambda{}, pPrFromLambda{}, nSigTpcBachelorPi{}, nSigTofBachelorPi{}, nSigTpcPiFromLambda{}, nSigTofPiFromLambda{}, nSigTpcPrFromLambda{}, nSigTofPrFromLambda{};
594597
if (softTrigCuts.applySoftwareTrigSelections) {
@@ -717,9 +720,6 @@ struct HfCandidateCreatorXicToXiPiPi {
717720
}
718721

719722
//---------------------calculate physical parameters of XicPlus candidate----------------------
720-
// sign of charm baryon
721-
int8_t const signXic = casc.sign() < 0 ? +1 : -1;
722-
723723
// transport XicPlus daughters to XicPlus decay vertex (secondary vertex)
724724
float secondaryVertex[3] = {0.};
725725
secondaryVertex[0] = kfXicPlus.GetX();

0 commit comments

Comments
 (0)