File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
PWGCF/EbyEFluctuations/Tasks Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 2323#include " Common/DataModel/EventSelection.h"
2424#include " Common/DataModel/Multiplicity.h"
2525#include " Common/DataModel/TrackSelectionTables.h"
26+ #include " Common/Core/RecoDecay.h"
2627
2728#include " Framework/ASoAHelpers.h"
2829#include " Framework/AnalysisDataModel.h"
3233#include " ReconstructionDataFormats/GlobalTrackID.h"
3334#include " ReconstructionDataFormats/Track.h"
3435
35- #include " TDatabasePDG.h"
36- #include < TPDGCode.h>
37-
3836#include < unordered_set>
3937using std::array;
4038using namespace o2 ;
@@ -222,12 +220,7 @@ struct FactorialMoments {
222220 if (track.pt () > confPtBins.value [2 * iPt] && track.pt () < confPtBins.value [2 * iPt + 1 ]) {
223221 float iphi = track.phi ();
224222 iphi = gRandom ->Gaus (iphi, TMath::TwoPi ());
225-
226- if (iphi < 0 ) {
227- iphi += TMath::TwoPi ();
228- } else if (iphi > TMath::TwoPi ()) {
229- iphi -= TMath::TwoPi ();
230- }
223+ iphi = RecoDecay::constrainAngle (iphi);
231224
232225 mHistArrQA [iPt * 4 ]->Fill (track.eta ());
233226 mHistArrQA [iPt * 4 + 1 ]->Fill (track.pt ());
You can’t perform that action at this time.
0 commit comments