Skip to content

Commit fb549b3

Browse files
authored
[PWGHF] Fix sparses filling in B reduced tasks (#11648)
1 parent 93dfe3e commit fb549b3

File tree

2 files changed

+44
-14
lines changed

2 files changed

+44
-14
lines changed

PWGHF/D2H/Tasks/taskB0Reduced.cxx

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,31 @@
1515
/// \author Alexandre Bigot <alexandre.bigot@cern.ch>, IPHC Strasbourg
1616
/// \author Fabrizio Grosa <fabrizio.grosa@cern.ch>, CERN
1717

18+
#include "PWGHF/Core/HfHelper.h"
19+
#include "PWGHF/D2H/DataModel/ReducedDataModel.h"
20+
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
21+
#include "PWGHF/DataModel/CandidateSelectionTables.h"
22+
23+
#include "Common/Core/RecoDecay.h"
24+
1825
#include "Framework/AnalysisTask.h"
1926
#include "Framework/HistogramRegistry.h"
2027
#include "Framework/runDataProcessing.h"
21-
#include "Common/Core/RecoDecay.h"
28+
#include <Framework/ASoA.h>
29+
#include <Framework/AnalysisHelpers.h>
30+
#include <Framework/Configurable.h>
31+
#include <Framework/Expressions.h>
32+
#include <Framework/HistogramSpec.h>
33+
#include <Framework/InitContext.h>
2234

23-
#include "PWGHF/Core/HfHelper.h"
24-
#include "PWGHF/Core/SelectorCuts.h"
25-
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
26-
#include "PWGHF/DataModel/CandidateSelectionTables.h"
27-
#include "PWGHF/D2H/DataModel/ReducedDataModel.h"
35+
#include <TH3.h>
36+
#include <TString.h>
37+
38+
#include <Rtypes.h>
39+
40+
#include <array>
41+
#include <cstdint>
42+
#include <numeric>
2843

2944
using namespace o2;
3045
using namespace o2::aod;
@@ -506,7 +521,7 @@ struct HfTaskB0Reduced {
506521
}
507522
}
508523
if (fillSparses) {
509-
if constexpr (withDmesMl) {
524+
if constexpr (doMc) {
510525
if (isSignal) {
511526
if constexpr (withDmesMl) {
512527
registry.fill(HIST("hMassPtCutVarsRecSig"), invMassB0, ptCandB0, candidate.decayLength(), candidate.decayLengthXY() / candidate.errorDecayLengthXY(), candidate.impactParameterProduct(), candidate.cpa(), invMassD, ptD, candidate.prong0MlScoreBkg(), candidate.prong0MlScoreNonprompt());

PWGHF/D2H/Tasks/taskBsReduced.cxx

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,31 @@
1414
///
1515
/// \author Fabio Catalano <fabio.catalano@cern.ch>, CERN
1616

17+
#include "PWGHF/Core/HfHelper.h"
18+
#include "PWGHF/D2H/DataModel/ReducedDataModel.h"
19+
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
20+
#include "PWGHF/DataModel/CandidateSelectionTables.h"
21+
22+
#include "Common/Core/RecoDecay.h"
23+
1724
#include "Framework/AnalysisTask.h"
1825
#include "Framework/HistogramRegistry.h"
1926
#include "Framework/runDataProcessing.h"
20-
#include "Common/Core/RecoDecay.h"
27+
#include <Framework/ASoA.h>
28+
#include <Framework/AnalysisHelpers.h>
29+
#include <Framework/Configurable.h>
30+
#include <Framework/Expressions.h>
31+
#include <Framework/HistogramSpec.h>
32+
#include <Framework/InitContext.h>
2133

22-
#include "PWGHF/Core/HfHelper.h"
23-
#include "PWGHF/Core/SelectorCuts.h"
24-
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
25-
#include "PWGHF/DataModel/CandidateSelectionTables.h"
26-
#include "PWGHF/D2H/DataModel/ReducedDataModel.h"
34+
#include <TH3.h>
35+
#include <TString.h>
36+
37+
#include <Rtypes.h>
38+
39+
#include <array>
40+
#include <cstdint>
41+
#include <numeric>
2742

2843
using namespace o2;
2944
using namespace o2::aod;
@@ -453,7 +468,7 @@ struct HfTaskBsReduced {
453468
}
454469
}
455470
if (fillSparses) {
456-
if constexpr (withDmesMl) {
471+
if constexpr (doMc) {
457472
if (isSignal) {
458473
if constexpr (withDmesMl) {
459474
registry.fill(HIST("hMassPtCutVarsRecSig"), invMassBs, ptCandBs, candidate.decayLength(), candidate.decayLengthXY() / candidate.errorDecayLengthXY(), candidate.impactParameterProduct(), candidate.cpa(), invMassDs, ptDs, candidate.prong0MlScoreBkg(), candidate.prong0MlScoreNonprompt());

0 commit comments

Comments
 (0)