Skip to content

Commit 1661cf1

Browse files
authored
Clang format
Clang format
2 parents 3155823 + 93ff9a1 commit 1661cf1

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

PWGHF/TableProducer/trackIndexSkimCreator.cxx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,8 +1037,8 @@ struct HfTrackIndexSkimCreator {
10371037

10381038
static constexpr int kN2ProngDecays = hf_cand_2prong::DecayType::N2ProngDecays; // number of 2-prong hadron types
10391039
static constexpr int kN3ProngDecays = hf_cand_3prong::DecayType::N3ProngDecays; // number of 3-prong hadron types
1040-
static constexpr int kNCuts2Prong[kN2ProngDecays] = {hf_cuts_presel_2prong::nCutVars, hf_cuts_presel_2prong::nCutVars, hf_cuts_presel_2prong::nCutVars}; // how many different selections are made on 2-prongs
1041-
static constexpr int kNCuts3Prong[kN3ProngDecays] = {hf_cuts_presel_3prong::nCutVars, hf_cuts_presel_3prong::nCutVars, hf_cuts_presel_Ds::nCutVars, hf_cuts_presel_3prong::nCutVars}; // how many different selections are made on 3-prongs
1040+
static constexpr int kNCuts2Prong[kN2ProngDecays] = {hf_cuts_presel_2prong::nCutVars, hf_cuts_presel_2prong::nCutVars, hf_cuts_presel_2prong::nCutVars}; // how many different selections are made on 2-prongs
1041+
static constexpr int kNCuts3Prong[kN3ProngDecays] = {hf_cuts_presel_3prong::nCutVars, hf_cuts_presel_3prong::nCutVars, hf_cuts_presel_Ds::nCutVars, hf_cuts_presel_3prong::nCutVars}; // how many different selections are made on 3-prongs
10421042
static constexpr int kNCutsDstar = 3; // how many different selections are made on Dstars
10431043
std::array<std::array<std::array<double, 2>, 2>, kN2ProngDecays> arrMass2Prong;
10441044
std::array<std::array<std::array<double, 3>, 2>, kN3ProngDecays> arrMass3Prong;
@@ -1271,15 +1271,13 @@ struct HfTrackIndexSkimCreator {
12711271
auto pTBin = findBin(&pTBins3Prong[iDecay3P], pT);
12721272
int deltaMassPhiIndex = cut3Prong[iDecay3P].colmap.find("deltaMassKK")->second;
12731273

1274-
if (TESTBIT(whichHypo[iDecay3P], 0))
1275-
{
1274+
if (TESTBIT(whichHypo[iDecay3P], 0)) {
12761275
double MassPhiKKPi = RecoDecay::m(std::array{pVecTrack0, pVecTrack1}, std::array{arrMass3Prong[iDecay3P][0][0], arrMass3Prong[iDecay3P][0][1]});
12771276
if (std::abs(MassPhiKKPi - massPhi) > cut3Prong[iDecay3P].get(pTBin, deltaMassPhiIndex)) {
12781277
CLRBIT(whichHypo[iDecay3P], 0);
12791278
}
12801279
}
1281-
if (TESTBIT(whichHypo[iDecay3P], 1))
1282-
{
1280+
if (TESTBIT(whichHypo[iDecay3P], 1)) {
12831281
double MassPhiPiKK = RecoDecay::m(std::array{pVecTrack1, pVecTrack2}, std::array{arrMass3Prong[iDecay3P][0][1], arrMass3Prong[iDecay3P][0][2]});
12841282
if (std::abs(MassPhiPiKK - massPhi) > cut3Prong[iDecay3P].get(pTBin, deltaMassPhiIndex)) {
12851283
CLRBIT(whichHypo[iDecay3P], 1);
@@ -2030,7 +2028,7 @@ struct HfTrackIndexSkimCreator {
20302028
// first we build D*+ candidates if enabled
20312029
auto isSelProngPos2 = trackIndexPos2.isSelProng();
20322030
uint8_t isSelectedDstar{0};
2033-
if (doDstar && TESTBIT(isSelected2ProngCand, hf_cand_2prong::DecayType::D0ToPiK) && TESTBIT(whichHypo2Prong[0], 0)) { // the 2-prong decay is compatible with a D0
2031+
if (doDstar && TESTBIT(isSelected2ProngCand, hf_cand_2prong::DecayType::D0ToPiK) && TESTBIT(whichHypo2Prong[0], 0)) { // the 2-prong decay is compatible with a D0
20342032
if (TESTBIT(isSelProngPos2, CandidateType::CandDstar) && trackPos2.globalIndex() != trackPos1.globalIndex()) { // compatible with a soft pion
20352033
if (thisCollId != trackPos2.collisionId()) { // this is not the "default" collision for this track, we have to re-propagate it
20362034
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParVarPos2, 2.f, noMatCorr, &dcaInfoPos2);

0 commit comments

Comments
 (0)