Skip to content

Commit b937a7b

Browse files
committed
cleaned up a few bits
1 parent 21e4da2 commit b937a7b

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

PWGUD/Tasks/upcRhoAnalysis.cxx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
///
12-
/// \brief task for analysis of rho in UPCs using UD tables (from SG producer)
13-
/// includes event tagging based on ZN information, track selection, reconstruction,
12+
/// \brief Task for analysis of rho in UPCs using UD tables (from SG producer).
13+
/// Includes event tagging based on ZN information, track selection, reconstruction,
1414
/// and also some basic stuff for decay phi anisotropy studies
1515
/// \author Jakub Juracka, jakub.juracka@cern.ch
1616
/// \file upcRhoAnalysis.cxx
1717

18-
#include "Common/DataModel/PIDResponse.h"
19-
// #include "Common/Core/RecoDecay.h" // need to use something from this to restrict angle ranges
20-
2118
#include "PWGUD/Core/UPCTauCentralBarrelHelperRL.h"
2219
#include "PWGUD/DataModel/UDTables.h"
2320

21+
#include "Common/DataModel/PIDResponse.h"
22+
2423
#include "Framework/AnalysisDataModel.h"
2524
#include "Framework/AnalysisTask.h"
2625
#include "Framework/runDataProcessing.h"
@@ -526,11 +525,7 @@ struct UpcRhoAnalysis {
526525
{
527526
double dPhi = p1.Phi() - p2.Phi();
528527
dPhi = std::fmod(dPhi + o2::constants::math::PI, o2::constants::math::TwoPI) - o2::constants::math::PI; // normalize to (-pi, pi)
529-
// if (dPhi > o2::constants::math::PI)
530-
// dPhi -= o2::constants::math::TwoPI;
531-
// else if (dPhi < -o2::constants::math::PI)
532-
// dPhi += o2::constants::math::TwoPI;
533-
return dPhi; // calculate delta phi in (-pi, pi)
528+
return dPhi;
534529
}
535530

536531
float getPhiRandom(const std::vector<ROOT::Math::PxPyPzMVector>& cutTracksLVs) // decay phi anisotropy
@@ -580,7 +575,7 @@ struct UpcRhoAnalysis {
580575
return;
581576

582577
int neutronClass = -1;
583-
bool xnxn = false, onon = false, xnon = false, onxn = false; // note: On == 0n...
578+
bool xnxn = false, onon = false, xnon = false, onxn = false;
584579
float energyCommonZNA = collision.energyCommonZNA(), energyCommonZNC = collision.energyCommonZNC();
585580
float timeZNA = collision.timeZNA(), timeZNC = collision.timeZNC();
586581
if (std::isinf(energyCommonZNA))

0 commit comments

Comments
 (0)