Skip to content

Commit 7f84c8a

Browse files
authored
Corrections after code-check test
1 parent fa93653 commit 7f84c8a

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

‎PWGHF/D2H/Tasks/taskFlattenicityD0Lc.cxx‎

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/// \brief Analysis of D0/Lambda_c yield as a function of flattenicity
1414
/// \author Laszlo Gyulai, laszlo.gyulai@cern.ch
1515

16+
#include "RecoDecay.h"
1617
#include "PWGHF/Core/CentralityEstimation.h"
1718
#include "PWGHF/Core/DecayChannels.h"
1819
#include "PWGHF/Core/HfHelper.h"
@@ -23,22 +24,31 @@
2324
#include "PWGHF/DataModel/TrackIndexSkimmingTables.h"
2425
#include "PWGHF/Utils/utilsEvSelHf.h"
2526

26-
#include "Common/DataModel/Centrality.h"
2727
#include "Common/DataModel/EventSelection.h"
2828
#include "Common/DataModel/Multiplicity.h"
29-
#include "Common/DataModel/PIDResponseTOF.h"
30-
#include "Common/DataModel/PIDResponseTPC.h"
3129
#include "Common/DataModel/TrackSelectionTables.h"
3230

3331
#include <CCDB/BasicCCDBManager.h>
32+
#include <CommonConstants/MathConstants.h>
33+
#include <CommonConstants/PhysicsConstants.h>
34+
#include <DataFormatsFIT/Triggers.h>
3435
#include <Framework/ASoA.h>
3536
#include <Framework/AnalysisDataModel.h>
37+
#include <Framework/AnalysisHelpers.h>
3638
#include <Framework/AnalysisTask.h>
39+
#include <Framework/Configurable.h>
3740
#include <Framework/HistogramRegistry.h>
3841
#include <Framework/HistogramSpec.h>
42+
#include <Framework/InitContext.h>
3943
#include <Framework/runDataProcessing.h>
40-
41-
#include <algorithm>
44+
#include <Rtypes.h>
45+
#include <THnSparse.h>
46+
#include <TPDGCode.h>
47+
48+
#include <cstdint>
49+
#include <bitset>
50+
#include <cstddef>
51+
#include <cmath>
4252
#include <map>
4353
#include <string>
4454
#include <vector>
@@ -1039,6 +1049,7 @@ struct HfTaskFlattenicityD0Lc {
10391049
{
10401050
rhoLatticeFV0.fill(0);
10411051
rhoLatticeFV0Calibrated.fill(0);
1052+
float flat = 9999;
10421053
if (collision.has_foundFV0()) {
10431054
auto fv0 = collision.foundFV0();
10441055
std::bitset<8> fV0Triggers = fv0.triggerMask();
@@ -1068,13 +1079,10 @@ struct HfTaskFlattenicityD0Lc {
10681079
registry.fill(HIST("Flattenicity_calibrated"), 1 - flattenicityFV0Calibrated);
10691080
registry.fill(HIST("Flattenicity"), 1 - flattenicityFV0);
10701081
}
1071-
return 1. - flattenicityFV0;
1072-
} else {
1073-
return 9999;
1074-
}
1075-
} else {
1076-
return 9999;
1082+
flat = 1. - flattenicityFV0;
1083+
}
10771084
}
1085+
return flat;
10781086
}
10791087

10801088
template <typename T, std::size_t S>

0 commit comments

Comments
 (0)