Skip to content

Commit fde67d4

Browse files
committed
MegaLinter fixes
1 parent 7865da0 commit fde67d4

File tree

5 files changed

+32
-36
lines changed

5 files changed

+32
-36
lines changed

PWGDQ/Core/VarManager.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,6 @@ void VarManager::FillEvent(T const& event, float* values)
10571057
values[kPsi2A] = getEventPlane(2, event.q2x0a(), event.q2y0a());
10581058
values[kPsi2B] = getEventPlane(2, event.q2x0b(), event.q2y0b());
10591059
values[kPsi2C] = getEventPlane(2, event.q2x0c(), event.q2y0c());
1060-
10611060
}
10621061

10631062
if constexpr ((fillMap & CollisionMC) > 0) {
@@ -2421,7 +2420,7 @@ void VarManager::FillQVectorFromGFW(C const& collision, A const& compA2, A const
24212420

24222421
// TODO: provide different computations for R
24232422
// Compute the R factor using the 2 sub-events technique for second and third harmonic
2424-
//Compute event planes
2423+
// Compute event planes
24252424
auto Psi2B = getEventPlane(2, values[kQ2X0B], values[kQ2Y0B]);
24262425
auto Psi3B = getEventPlane(3, values[kQ3X0B], values[kQ3Y0B]);
24272426
auto Psi2C = getEventPlane(2, values[kQ2X0C], values[kQ2Y0C]);

PWGDQ/DataModel/ReducedInfoTables.h

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ namespace reducedmft
267267
DECLARE_SOA_INDEX_COLUMN(ReducedEvent, reducedevent); //!
268268
DECLARE_SOA_COLUMN(FilteringFlags, filteringFlags, uint8_t); //!
269269

270-
DECLARE_SOA_COLUMN(Pt, pt, float); //!
271-
DECLARE_SOA_COLUMN(Eta, eta, float); //!
272-
DECLARE_SOA_COLUMN(Phi, phi, float); //!
273-
DECLARE_SOA_COLUMN(Sign, sign, int); //!
270+
DECLARE_SOA_COLUMN(Pt, pt, float); //!
271+
DECLARE_SOA_COLUMN(Eta, eta, float); //!
272+
DECLARE_SOA_COLUMN(Phi, phi, float); //!
273+
DECLARE_SOA_COLUMN(Sign, sign, int); //!
274274
DECLARE_SOA_COLUMN(FwdDcaX, fwdDcaX, float); //!
275275
DECLARE_SOA_COLUMN(FwdDcaY, fwdDcaY, float); //!
276276
DECLARE_SOA_COLUMN(MftClusterSizesAndTrackFlags, mftClusterSizesAndTrackFlags, uint64_t); //!
@@ -442,30 +442,30 @@ DECLARE_SOA_COLUMN(FwdDcaY2, fwdDcaY2, float); //! Y component of forward DCA
442442
// pair information
443443
namespace reducedpair
444444
{
445-
DECLARE_SOA_INDEX_COLUMN(ReducedEvent, reducedevent); //!
446-
DECLARE_SOA_COLUMN(Mass, mass, float); //!
447-
DECLARE_SOA_COLUMN(Pt, pt, float); //!
448-
DECLARE_SOA_COLUMN(Eta, eta, float); //!
449-
DECLARE_SOA_COLUMN(Phi, phi, float); //!
450-
DECLARE_SOA_COLUMN(Sign, sign, int); //!
451-
DECLARE_SOA_COLUMN(FilterMap, filterMap, uint32_t); //!
452-
DECLARE_SOA_COLUMN(McDecision, mcDecision, uint32_t); //!
453-
DECLARE_SOA_COLUMN(Tauz, tauz, float); //! Longitudinal pseudo-proper time of lepton pair (in ns)
454-
DECLARE_SOA_COLUMN(TauzErr, tauzErr, float); //! Error on longitudinal pseudo-proper time of lepton pair (in ns)
455-
DECLARE_SOA_COLUMN(Tauxy, tauxy, float); //! Transverse pseudo-proper time of lepton pair (in ns)
456-
DECLARE_SOA_COLUMN(TauxyErr, tauxyErr, float); //! Error on transverse pseudo-proper time of lepton pair (in ns)
457-
DECLARE_SOA_COLUMN(Lz, lz, float); //! Longitudinal projection of decay length
458-
DECLARE_SOA_COLUMN(Lxy, lxy, float); //! Transverse projection of decay length
459-
DECLARE_SOA_COLUMN(Chi2pca, chi2pca, float); //! Chi2 for PCA of the dilepton
445+
DECLARE_SOA_INDEX_COLUMN(ReducedEvent, reducedevent); //!
446+
DECLARE_SOA_COLUMN(Mass, mass, float); //!
447+
DECLARE_SOA_COLUMN(Pt, pt, float); //!
448+
DECLARE_SOA_COLUMN(Eta, eta, float); //!
449+
DECLARE_SOA_COLUMN(Phi, phi, float); //!
450+
DECLARE_SOA_COLUMN(Sign, sign, int); //!
451+
DECLARE_SOA_COLUMN(FilterMap, filterMap, uint32_t); //!
452+
DECLARE_SOA_COLUMN(McDecision, mcDecision, uint32_t); //!
453+
DECLARE_SOA_COLUMN(Tauz, tauz, float); //! Longitudinal pseudo-proper time of lepton pair (in ns)
454+
DECLARE_SOA_COLUMN(TauzErr, tauzErr, float); //! Error on longitudinal pseudo-proper time of lepton pair (in ns)
455+
DECLARE_SOA_COLUMN(Tauxy, tauxy, float); //! Transverse pseudo-proper time of lepton pair (in ns)
456+
DECLARE_SOA_COLUMN(TauxyErr, tauxyErr, float); //! Error on transverse pseudo-proper time of lepton pair (in ns)
457+
DECLARE_SOA_COLUMN(Lz, lz, float); //! Longitudinal projection of decay length
458+
DECLARE_SOA_COLUMN(Lxy, lxy, float); //! Transverse projection of decay length
459+
DECLARE_SOA_COLUMN(Chi2pca, chi2pca, float); //! Chi2 for PCA of the dilepton
460460
DECLARE_SOA_COLUMN(CosPointingAngle, cosPointingAngle, float); //! Cosine of the pointing angle
461-
DECLARE_SOA_COLUMN(U2Q2, u2q2, float); //! Scalar product between unitary vector with event flow vector (harmonic 2)
462-
DECLARE_SOA_COLUMN(U3Q3, u3q3, float); //! Scalar product between unitary vector with event flow vector (harmonic 3)
463-
DECLARE_SOA_COLUMN(Cos2DeltaPhi, cos2deltaphi, float); //! Cosinus term using event plane angle (harmonic 2)
464-
DECLARE_SOA_COLUMN(Cos3DeltaPhi, cos3deltaphi, float); //! Cosinus term using event plane angle (harmonic 3)
465-
DECLARE_SOA_COLUMN(Psi2A, psi2a, float); //! Event plane for sub-sample A
466-
DECLARE_SOA_COLUMN(Psi2B, psi2b, float); //! Event plane for sub-sample B
467-
DECLARE_SOA_COLUMN(Psi2C, psi2c, float); //! Event plane for sub-sample C
468-
DECLARE_SOA_COLUMN(CollisionId, collisionId, int); //!
461+
DECLARE_SOA_COLUMN(U2Q2, u2q2, float); //! Scalar product between unitary vector with event flow vector (harmonic 2)
462+
DECLARE_SOA_COLUMN(U3Q3, u3q3, float); //! Scalar product between unitary vector with event flow vector (harmonic 3)
463+
DECLARE_SOA_COLUMN(Cos2DeltaPhi, cos2deltaphi, float); //! Cosinus term using event plane angle (harmonic 2)
464+
DECLARE_SOA_COLUMN(Cos3DeltaPhi, cos3deltaphi, float); //! Cosinus term using event plane angle (harmonic 3)
465+
DECLARE_SOA_COLUMN(Psi2A, psi2a, float); //! Event plane for sub-sample A
466+
DECLARE_SOA_COLUMN(Psi2B, psi2b, float); //! Event plane for sub-sample B
467+
DECLARE_SOA_COLUMN(Psi2C, psi2c, float); //! Event plane for sub-sample C
468+
DECLARE_SOA_COLUMN(CollisionId, collisionId, int); //!
469469
// DECLARE_SOA_INDEX_COLUMN(ReducedMuon, reducedmuon2); //!
470470
DECLARE_SOA_DYNAMIC_COLUMN(Px, px, //!
471471
[](float pt, float phi) -> float { return pt * std::cos(phi); });
@@ -504,8 +504,7 @@ DECLARE_SOA_TABLE(DileptonsFlow, "AOD", "RTDILEPTONFLOW", //!
504504
reducedpair::Cos3DeltaPhi,
505505
reducedpair::Psi2A,
506506
reducedpair::Psi2B,
507-
reducedpair::Psi2C
508-
);
507+
reducedpair::Psi2C);
509508

510509
// Dilepton collision information (joined with DileptonsExtra) allowing to connect different tables (cross PWGs)
511510
DECLARE_SOA_TABLE(DileptonsInfo, "AOD", "RTDILEPTONINFO",
@@ -538,8 +537,7 @@ DECLARE_SOA_TABLE(DimuonsAll, "AOD", "RTDIMUONALL", //!
538537
reducedpair::Cos3DeltaPhi,
539538
reducedpair::Psi2A,
540539
reducedpair::Psi2B,
541-
reducedpair::Psi2C
542-
);
540+
reducedpair::Psi2C);
543541

544542
using Dilepton = Dileptons::iterator;
545543
using DileptonExtra = DileptonsExtra::iterator;

PWGDQ/Tasks/dqEfficiency.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ struct AnalysisSameEventPairing {
797797
t2.reducedMCTrack().pt(), t2.reducedMCTrack().eta(), t2.reducedMCTrack().phi(), t2.reducedMCTrack().e(),
798798
t1.reducedMCTrack().vx(), t1.reducedMCTrack().vy(), t1.reducedMCTrack().vz(), t1.reducedMCTrack().vt(),
799799
t2.reducedMCTrack().vx(), t2.reducedMCTrack().vy(), t2.reducedMCTrack().vz(), t2.reducedMCTrack().vt(),
800-
t1.isAmbiguous(), t2.isAmbiguous(), -999., -999., -999., -999.,-999., -999., -999.);
800+
t1.isAmbiguous(), t2.isAmbiguous(), -999., -999., -999., -999., -999., -999., -999.);
801801
}
802802
}
803803

PWGDQ/Tasks/dqFlow.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ struct DQEventQvector {
323323
if (fEventCut->IsSelected(VarManager::fgValues)) {
324324
eventQvector(VarManager::fgValues[VarManager::kQ2X0A], VarManager::fgValues[VarManager::kQ2Y0A], VarManager::fgValues[VarManager::kQ2X0B], VarManager::fgValues[VarManager::kQ2Y0B], VarManager::fgValues[VarManager::kQ2X0C], VarManager::fgValues[VarManager::kQ2Y0C], VarManager::fgValues[VarManager::kMultA], VarManager::fgValues[VarManager::kMultC], VarManager::fgValues[VarManager::kMultC], VarManager::fgValues[VarManager::kQ3X0A], VarManager::fgValues[VarManager::kQ3Y0A], VarManager::fgValues[VarManager::kQ3X0B], VarManager::fgValues[VarManager::kQ3Y0B], VarManager::fgValues[VarManager::kQ3X0C], VarManager::fgValues[VarManager::kQ3Y0C]);
325325
}
326-
327326
}
328327

329328
// Process to fill Q vector using barrel tracks in a reduced event table for barrel/muon tracks flow related analyses Run 2

PWGDQ/Tasks/tableReader.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ struct AnalysisSameEventPairing {
10581058
}
10591059

10601060
if constexpr (eventHasQvector) {
1061-
dileptonFlowList(VarManager::fgValues[VarManager::kU2Q2], VarManager::fgValues[VarManager::kU3Q3], VarManager::fgValues[VarManager::kCos2DeltaPhi], VarManager::fgValues[VarManager::kCos3DeltaPhi],VarManager::fgValues[VarManager::kR2SP],VarManager::fgValues[VarManager::kR2EP],VarManager::fgValues[VarManager::kCentFT0C]);
1061+
dileptonFlowList(VarManager::fgValues[VarManager::kU2Q2], VarManager::fgValues[VarManager::kU3Q3], VarManager::fgValues[VarManager::kCos2DeltaPhi], VarManager::fgValues[VarManager::kCos3DeltaPhi], VarManager::fgValues[VarManager::kR2SP], VarManager::fgValues[VarManager::kR2EP], VarManager::fgValues[VarManager::kCentFT0C]);
10621062
}
10631063

10641064
int iCut = 0;

0 commit comments

Comments
 (0)