Skip to content

Commit 05f2dd8

Browse files
Merge pull request #30 from alibuild/alibot-cleanup-12451
Please consider the following formatting changes to #12451
2 parents 3ab9242 + 6311959 commit 05f2dd8

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

PWGHF/D2H/DataModel/ReducedDataModel.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,7 @@ DECLARE_SOA_TABLE(HfRedSoftPiPid, "AOD", "HFREDSOFTPIPID",
556556
hf_track_vars_reduced::HasTOF,
557557
hf_track_vars_reduced::HasTPC,
558558
hf_cand_dstar::TPCTOFNSigmaPiSoftPi<hf_cand_dstar::TPCNSigmaPiSoftPi, hf_cand_dstar::TOFNSigmaPiSoftPi>,
559-
hf_cand_dstar::TPCTOFNSigmaKaSoftPi<hf_cand_dstar::TPCNSigmaKaSoftPi, hf_cand_dstar::TOFNSigmaKaSoftPi>
560-
)
559+
hf_cand_dstar::TPCTOFNSigmaKaSoftPi<hf_cand_dstar::TPCNSigmaKaSoftPi, hf_cand_dstar::TOFNSigmaKaSoftPi>)
561560

562561
namespace hf_track_index_reduced
563562
{
@@ -568,7 +567,7 @@ DECLARE_SOA_INDEX_COLUMN_FULL(SoftPi, softPi, int, HfRedSoftPiBases, ""); //! Re
568567
// to call DECLARE_SOA_INDEX_COLUMN_FULL later on
569568
DECLARE_SOA_TABLE(HfRedDStars, "AOD", "HFREDDSTAR", //! Table with 2prong candidate information for reduced workflow
570569
o2::soa::Index<>,
571-
hf_track_index_reduced::Prong0Id, hf_track_index_reduced::Prong1Id, hf_track_index_reduced::Prong2Id,
570+
hf_track_index_reduced::Prong0Id, hf_track_index_reduced::Prong1Id, hf_track_index_reduced::Prong2Id,
572571
hf_track_index_reduced::SoftPiId, hf_track_index_reduced::HfRedCollisionId,
573572
HFTRACKPAR_COLUMNS,
574573
hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex,
@@ -767,7 +766,7 @@ namespace hf_cand_b0_reduced
767766
{
768767
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfRed3Prongs, "_0"); //! Prong0 index
769768
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, HfRedTrackBases, "_1"); //! Prong1 index
770-
DECLARE_SOA_INDEX_COLUMN_FULL(ProngDStar, prongDStar, int, HfRedDStars, ""); //! ProngDStar index
769+
DECLARE_SOA_INDEX_COLUMN_FULL(ProngDStar, prongDStar, int, HfRedDStars, ""); //! ProngDStar index
771770
DECLARE_SOA_INDEX_COLUMN_FULL(ProngSoftPi, prongSoftPi, int, HfRedB0SoftPi, ""); //! ProngSoftPi index
772771
DECLARE_SOA_COLUMN(Prong0MlScoreBkg, prong0MlScoreBkg, float); //! Bkg ML score of the D daughter
773772
DECLARE_SOA_COLUMN(Prong0MlScorePrompt, prong0MlScorePrompt, float); //! Prompt ML score of the D daughter

PWGHF/D2H/TableProducer/candidateCreatorB0Reduced.cxx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ struct HfCandidateCreatorB0Reduced {
120120
df3.setUseAbsDCA(useAbsDCA);
121121
df3.setWeightedFinalPCA(useWeightedFinalPCA);
122122

123-
124123
// histograms
125124
if (doprocessDataDplusPi || doprocessDataDplusPiWithDmesMl) {
126125
registry.add("hMassB0ToDPi", "2-prong candidates;inv. mass (B^{0} #rightarrow D^{#minus}#pi^{#plus} #rightarrow #pi^{#minus}K^{#plus}#pi^{#minus}#pi^{#plus}) (GeV/#it{c}^{2});entries", {HistType::kTH1F, {{500, 3., 8.}}});
@@ -145,10 +144,10 @@ struct HfCandidateCreatorB0Reduced {
145144
/// \param invMass2DPiMax maximum B0 invariant-mass
146145
template <bool withDmesMl, typename Cands, typename Pions, typename Coll>
147146
void runCandidateCreationDStar(Coll const& collision,
148-
Cands const& candsDThisColl,
149-
Pions const& tracksPionThisCollision,
150-
const float& invMass2DPiMin,
151-
const float& invMass2DPiMax)
147+
Cands const& candsDThisColl,
148+
Pions const& tracksPionThisCollision,
149+
const float& invMass2DPiMin,
150+
const float& invMass2DPiMax)
152151
{
153152
auto primaryVertex = getPrimaryVertex(collision);
154153
auto covMatrixPV = primaryVertex.getCov();
@@ -164,7 +163,7 @@ struct HfCandidateCreatorB0Reduced {
164163
std::array<float, 3> pVecSoftPi = softPi.pVector();
165164
auto trackParCovSoftPi = getTrackParCov(softPi);
166165
std::array<float, 3> pVecD = RecoDecay::sumOfVec(pVecD0, pVecSoftPi);
167-
166+
168167
for (const auto& trackPion : tracksPionThisCollision) {
169168
// this track is among daughters
170169
if (trackPion.trackId() == candD.prong0Id() || trackPion.trackId() == candD.prong1Id() || trackPion.trackId() == candD.prong2Id()) {
@@ -173,7 +172,7 @@ struct HfCandidateCreatorB0Reduced {
173172

174173
auto trackParCovPi = getTrackParCov(trackPion);
175174
std::array<float, 3> pVecPion = trackPion.pVector();
176-
175+
177176
// compute invariant mass square and apply selection
178177
auto invMass2DPi = RecoDecay::m2(std::array{pVecD, pVecSoftPi, pVecPion}, std::array{massDstar, massPi, massPi});
179178
if ((invMass2DPi < invMass2DPiMin) || (invMass2DPi > invMass2DPiMax)) {

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ struct HfDataCreatorCharmHadPiReduced {
14121412
tables.hfCand2ProngMl(mlScores[0], mlScores[1], mlScores[2], mlScores[3], mlScores[4], mlScores[5]);
14131413
}
14141414
} else if constexpr (decChannel == DecayChannel::B0ToDstarPi) {
1415-
tables.hfCandDStar(charmHadDauTracks[0].globalIndex(), charmHadDauTracks[1].globalIndex(), charmHadDauTracks[2].globalIndex(),
1415+
tables.hfCandDStar(charmHadDauTracks[0].globalIndex(), charmHadDauTracks[1].globalIndex(), charmHadDauTracks[2].globalIndex(),
14161416
indexHfCandCharm, indexHfReducedCollision,
14171417
trackParCovCharmHad.getX(), trackParCovCharmHad.getAlpha(),
14181418
trackParCovCharmHad.getY(), trackParCovCharmHad.getZ(), trackParCovCharmHad.getSnp(),

PWGHF/D2H/Tasks/taskB0Reduced.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ struct HfTaskB0Reduced {
202202

203203
void init(InitContext&)
204204
{
205-
std::array<bool, 6> processFuncData{doprocessDataDplusPi, doprocessDataDplusPiWithDmesMl, doprocessDataDplusPiWithB0Ml,
205+
std::array<bool, 6> processFuncData{doprocessDataDplusPi, doprocessDataDplusPiWithDmesMl, doprocessDataDplusPiWithB0Ml,
206206
doprocessDataDstarPi, doprocessDataDstarPiWithDmesMl};
207207
if ((std::accumulate(processFuncData.begin(), processFuncData.end(), 0)) > 1) {
208208
LOGP(fatal, "Only one process function for data can be enabled at a time.");
@@ -228,9 +228,9 @@ struct HfTaskB0Reduced {
228228
const AxisSpec axisPtPi{100, 0.f, 10.f};
229229

230230
std::string dMesSpecie{""};
231-
std::array<bool, 9> processFuncDplusPi = {doprocessDataDplusPi, doprocessDataDplusPiWithDmesMl, doprocessDataDplusPiWithB0Ml,
232-
doprocessMcDplusPi, doprocessMcDplusPiWithDecayTypeCheck, doprocessMcDplusPiWithDmesMl,
233-
doprocessMcDplusPiWithDmesMlAndDecayTypeCheck, doprocessMcDplusPiWithB0Ml,
231+
std::array<bool, 9> processFuncDplusPi = {doprocessDataDplusPi, doprocessDataDplusPiWithDmesMl, doprocessDataDplusPiWithB0Ml,
232+
doprocessMcDplusPi, doprocessMcDplusPiWithDecayTypeCheck, doprocessMcDplusPiWithDmesMl,
233+
doprocessMcDplusPiWithDmesMlAndDecayTypeCheck, doprocessMcDplusPiWithB0Ml,
234234
doprocessMcDplusPiWithB0MlAndDecayTypeCheck};
235235
if ((std::accumulate(processFuncDplusPi.begin(), processFuncDplusPi.end(), 0)) > 1) {
236236
dMesSpecie += "D^{#minus}";

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ DECLARE_SOA_TABLE(HfCandB0Base, "AOD", "HFCANDB0BASE",
22402240
// extended table with expression columns that can be used as arguments of dynamic columns
22412241
DECLARE_SOA_EXTENDED_TABLE_USER(HfCandB0Ext, HfCandB0Base, "HFCANDB0EXT",
22422242
hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz);
2243-
2243+
22442244
DECLARE_SOA_TABLE(HfCandB0Prongs, "AOD", "HFCANDB0PRONGS",
22452245
hf_cand_b0::Prong0Id, hf_track_index::Prong1Id);
22462246

0 commit comments

Comments
 (0)