@@ -40,7 +40,7 @@ using namespace o2::aod;
4040using namespace o2 ::framework;
4141using namespace o2 ::framework::expressions;
4242
43- namespace o2 ::aod
43+ namespace o2
4444{
4545namespace charm_polarisation
4646{
@@ -57,13 +57,12 @@ enum DecayChannel : uint8_t {
5757 NChannels
5858};
5959} // namespace charm_polarisation
60- } // namespace o2::aod
60+ } // namespace o2
6161
6262struct HfTaskDstarPolarisationInJet {
6363
6464 float massPi{0 .f };
6565 float massKaon{0 .f };
66- float massProton{0 .f };
6766 float massDstar{0 .f };
6867
6968 float bkgRotationAngleStep{0 .f };
@@ -129,13 +128,8 @@ struct HfTaskDstarPolarisationInJet {
129128 eventSelectionBits = jetderiveddatautilities::initialiseEventSelectionBits (eventSelections.value );
130129
131130 // / check process functions
132- const int nProcesses =
133- static_cast <int >(doprocessDstar) +
134- static_cast <int >(doprocessDstarWithMl) +
135- static_cast <int >(doprocessDstarMc) +
136- static_cast <int >(doprocessDstarMcWithMl);
137- // std::array<int, 4> processes = {doprocessDstar, doprocessDstarWithMl, doprocessDstarMc, doprocessDstarMcWithMl};
138- // const int nProcesses = std::accumulate(processes.begin(), processes.end(), 0);
131+ std::array<int , 4 > processes = {doprocessDstar, doprocessDstarWithMl, doprocessDstarMc, doprocessDstarMcWithMl};
132+ const int nProcesses = std::accumulate (processes.begin (), processes.end (), 0 );
139133 if (nProcesses > 1 ) {
140134 LOGP (fatal, " Only one process function should be enabled at a time, please check your configuration" );
141135 }
@@ -168,7 +162,6 @@ struct HfTaskDstarPolarisationInJet {
168162 }
169163
170164 massPi = o2::constants::physics::MassPiPlus;
171- massProton = o2::constants::physics::MassProton;
172165 massKaon = o2::constants::physics::MassKaonCharged;
173166 massDstar = o2::constants::physics::MassDStar;
174167 bkgRotationAngleStep = (nBkgRotations > 1 ) ? (maxRotAngleMultByPi - minRotAngleMultByPi) * constants::math::PI / (nBkgRotations - 1 ) : 0 .;
@@ -699,7 +692,7 @@ struct HfTaskDstarPolarisationInJet {
699692 ptBhadMother = candidate.ptBhadMotherPart ();
700693 int pdgBhadMother = candidate.pdgBhadMotherPart ();
701694 // For unknown reasons there are charm hadrons coming directly from beauty diquarks without an intermediate B-hadron which have an unreasonable correlation between the pT of the charm hadron and the beauty mother. We also remove charm hadrons from quarkonia.
702- if (origin == RecoDecay::OriginType::NonPrompt && (pdgBhadMother == 5101 || pdgBhadMother == 5103 || pdgBhadMother == 5201 || pdgBhadMother == 5203 || pdgBhadMother == 5301 || pdgBhadMother == 5303 || pdgBhadMother == 5401 || pdgBhadMother == 5403 || pdgBhadMother == 5503 || pdgBhadMother == 553 || pdgBhadMother == 555 || pdgBhadMother == 553 || pdgBhadMother == 557 )) { // o2-linter: disable=pdg/explicit-code, magic-number (constants not in the PDG header)
695+ if (origin == RecoDecay::OriginType::NonPrompt && (pdgBhadMother == 5101 || pdgBhadMother == 5103 || pdgBhadMother == 5201 || pdgBhadMother == 5203 || pdgBhadMother == 5301 || pdgBhadMother == 5303 || pdgBhadMother == 5401 || pdgBhadMother == 5403 || pdgBhadMother == 5503 || pdgBhadMother == 553 || pdgBhadMother == 555 || pdgBhadMother == 557 )) { // o2-linter: disable=pdg/explicit-code, magic-number (constants not in the PDG header)
703696 return isCandidateInSignalRegion;
704697 }
705698 }
0 commit comments